From 32fbdb9fba94061ddb5848ec981c8694bdad9dd6 Mon Sep 17 00:00:00 2001 From: Markos Fragkakis Date: Fri, 16 Sep 2016 13:56:18 +0300 Subject: [PATCH] svgo param can now be an absolute/relative path to svgo. If not, trying out local node_modules, then global --- lib/svgeez/sprite_builder.rb | 32 ++++++++++++++++++++++++++++++-- lib/svgeez/version.rb | 2 +- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/lib/svgeez/sprite_builder.rb b/lib/svgeez/sprite_builder.rb index 39c19ee..aa48f00 100644 --- a/lib/svgeez/sprite_builder.rb +++ b/lib/svgeez/sprite_builder.rb @@ -43,7 +43,7 @@ def build_destination_file_contents destination_file_contents = "#{collect_source_files_contents.join}" if svgo_use? && svgo_installed? - destination_file_contents = `cat <