Closed kevinansfield closed 14 years ago
Confirmed with version 0.4.3 also.
Uninstalling the Rails 3.0 gems resolves the issue
Ive been working on jammit for rails 3... I'ts preliminary so far, but I'll try go get a new version out and work with the maintainer
try this
./script/rails plugin install git://github.com/samgranieri/jammit.git -r rails3
running the jammit gem from the binary included in the above also fails with:
imac-home ~/code/rails/yougotpapped/vendor/plugins/jammit/bin (master)☢ : ./jammit /Users/kev/code/rails/yougotpapped/vendor/plugins/jammit/lib/jammit/compressor.rb:27: undefined method `kilobytes' for 32:Fixnum (NoMethodError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /Users/kev/code/rails/yougotpapped/vendor/plugins/jammit/lib/jammit/dependencies.rb:18 from /Users/kev/code/rails/yougotpapped/vendor/plugins/jammit/lib/jammit.rb:144:in `require' from /Users/kev/code/rails/yougotpapped/vendor/plugins/jammit/lib/jammit.rb:144 from ./../lib/jammit/command_line.rb:2:in `require' from ./../lib/jammit/command_line.rb:2 from ./jammit:3:in `require' from ./jammit:3
As a workaround, I've added "gem 'activesupport', '2.3.5'" to line 13 in lib/jammit/dependencies.rb
Note: This is not a rails 3.0 project, it's using 2.3.4. The issue I'm having is just getting jammit to run during a capistrano deployment.
Thanks, folks. Until we get simultaneous Rails 2/3 support figured out, I've added an explicit gem dependency on a 2.x version of rails. If you pull from master, you should be good to go for the time being.
After installing the Rails 3.0 beta gems, jammit fails to run with the following error: