Not working on 1.9.2 #23

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

3 participants

@brian-pantano

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

compressor = YUI::JavaScriptCompressor.new(:munge => 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
command'
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
streamify'
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

'

@Syr3f

Works fine on my 1.9.2-p180

@stevecrozz
Collaborator

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

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