Closed tomasdev closed 11 years ago
guard :concat,
:type => "js",
:files => %w(),
:input_dir => "scripts",
:output => "js/app"
This syntax does compile but doesn't work either.
You must specify the file names like:
:files => %w(jquery underscore)
On 01/apr/2013, at 07:23, Tomas notifications@github.com wrote:
guard :concat, :type => "js", :files => %w(), :input_dir => "scripts", :output => "js/app" This syntax does compile but doesn't work either.
\ Reply to this email directly or view it on GitHub.
@makevoid I've tried that, didn't work either. Ruby say's there's a parsing error BEFORE :files
, just right after type:
I tested today with ruby 1.8 and it works, this is the full syntax (translated from the new hash to 1.8 one):
guard :concat, :type => "js", :files => %w(b a), :input_dir => "public/js", :output => "public/js/all"
this example is taken from the spec folder, I created a ruby1.8 branch where the test runs, clone it and see run.rb
https://github.com/makevoid/guard-concat/tree/ruby1.8/spec
If you have an error let me know (posting the stacktrace please)
also consider upgrading to 1.9 - 2.0 ;)
Thanks, you were right, it was a ruby 1.8 bug. But the point is nor 1.9 nor 2.0 are available for Lion (not ML)
to change ruby version you can always download ruby from ruby-lang.org and compile it from source (./configure && make && sudo make install) or use a manager like rvm or rbenv
anyway the gem should work correctly even with 1.8