Not working on 1.9.2 #23

brian-pantano opened this Issue Jan 14, 2012 · 2 comments

3 participants


ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

compressor = => true)
=> #"utf-8", :line_break=>nil, :munge=>true, :optimize=>true, :preserve_semicolons=>false}, @command="java -jar /usr/local/rvm/gems/ruby-1.9.2-p290/gems/yui-compressor-0.9.6/lib/yui/../yuicompressor-2.4.4.jar --type js --charset utf-8">
compressor.compress('(function () { var foo = {}; foo["bar"] = "baz"; })()')
NoMethodError: undefined method map' for #<String:0x0000000530ea30>
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/yui-compressor-0.9.6/lib/yui/compressor.rb:29:in
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/yui-compressor-0.9.6/lib/yui/compressor.rb:68:in block in compress'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/yui-compressor-0.9.6/lib/yui/compressor.rb:117:in
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/yui-compressor-0.9.6/lib/yui/compressor.rb:66:in compress'
from (irb):8
from /usr/local/rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in



Works fine on my 1.9.2-p180


I made sure to include this version of ruby in my most recent tests when I added windows compatibility:

It is passing the test suite now, so I think this issue is now moot. Please reopen if you continue having this issue.

@stevecrozz stevecrozz closed this Jul 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment