documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.io/jammit/
MIT License
1.16k stars 197 forks source link

Jammit + Rails 3.1 breaks #177

Closed masterkain closed 13 years ago

masterkain commented 13 years ago
$ bundle exec jammit
/Users/kain/.rvm/gems/ruby-1.9.2-p180/bundler/gems/jammit-caf1c68d15c5/lib/jammit.rb:71:in `load_configuration': uninitialized constant Jammit::RAILS_ENV (NameError)
    from /Users/kain/.rvm/gems/ruby-1.9.2-p180/bundler/gems/jammit-caf1c68d15c5/lib/jammit.rb:128:in `package!'
    from /Users/kain/.rvm/gems/ruby-1.9.2-p180/bundler/gems/jammit-caf1c68d15c5/lib/jammit/command_line.rb:29:in `initialize'
    from /Users/kain/.rvm/gems/ruby-1.9.2-p180/bundler/gems/jammit-caf1c68d15c5/bin/jammit:5:in `new'
    from /Users/kain/.rvm/gems/ruby-1.9.2-p180/bundler/gems/jammit-caf1c68d15c5/bin/jammit:5:in `<top (required)>'
    from /Users/kain/.rvm/gems/ruby-1.9.2-p180/bin/jammit:21:in `load'
    from /Users/kain/.rvm/gems/ruby-1.9.2-p180/bin/jammit:21:in `<main>'
jashkenas commented 13 years ago

There's a commit that should use a safer fallback check for RAILS_ENV.