{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/032c903298e7896dcfefa01793accd3e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"032c903298e7896dcfefa01793accd3e","url":"https://api.github.com/users/buruzaemon","login":"buruzaemon","id":498577},"assignee":null,"labels":[],"updated_at":"2011-11-17T10:46:13Z","comments":3,"closed_at":"2011-11-17T10:46:13Z","url":"https://api.github.com/repos/fnando/i18n-js/issues/64","body":"When attempting to run `rake i18n:js:setup` on JRuby 1.6.4, the following error is occurring:\r\n\r\n    C:\\Temp\\foobar>jruby -S rake i18n:js:setup --trace\r\n    ** Invoke i18n:js:setup (first_time)\r\n    ** Invoke environment (first_time)\r\n    ** Execute environment\r\n    rake aborted!\r\n    undefined method `assets' for #<Rails::Application::Configuration:0xdd67cf>\r\n    org/jruby/RubyKernel.java:238:in `method_missing'\r\n    C:/skunkworx/jruby/jruby-1.6.4/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/railtie/configuration.rb:77:in `method_missing'  \r\n    C:/skunkworx/jruby/jruby-1.6.4/lib/ruby/gems/1.8/gems/i18n-js-2.1.0/lib/i18n-js/railtie.rb:9:in `Railtie'\r\n    ....\r\n\r\nI believe that this error is stemming from an assumption that the gem is being used with Rails 3.1. \r\nPlease see line 9 in `lib/i18n-js/railtie.rb`:\r\n\r\n    app.config.middleware.use(Middleware) if Rails.env.development? && !Rails.configuration.assets.enabled\r\n\r\n... where `Rails.configuration.assets` is present in Rails 3.1, but not present in versions lower than 3.1.\r\n\r\nHere are my ruby and gem details:\r\n\r\n    C:\\Temp\\foobar>jruby -v\r\n    jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (Java HotSpot(TM) Client VM 1.6.0_13) [Windows XP-x86-java]\r\n\r\n    C:\\Temp\\foobar>jruby -S gem env\r\n    RubyGems Environment:\r\n      - RUBYGEMS VERSION: 1.5.1\r\n      - RUBY VERSION: 1.8.7 (2011-08-23 patchlevel 330) [java]\r\n      - INSTALLATION DIRECTORY: C:/skunkworx/jruby/jruby-1.6.4/lib/ruby/gems/1.8\r\n      - RUBY EXECUTABLE: C:/skunkworx/jruby/jruby-1.6.4/bin/jruby.exe\r\n      - EXECUTABLE DIRECTORY: C:/skunkworx/jruby/jruby-1.6.4/bin\r\n      - RUBYGEMS PLATFORMS:\r\n        - ruby\r\n        - universal-java-1.6\r\n      - GEM PATHS:\r\n         - C:/skunkworx/jruby/jruby-1.6.4/lib/ruby/gems/1.8\r\n         - C:/Documents and Settings/6008895/.gem/jruby/1.8\r\n      - GEM CONFIGURATION:\r\n         - :update_sources => true\r\n         - :verbose => true\r\n         - :benchmark => false\r\n         - :backtrace => false\r\n         - :bulk_threshold => 1000\r\n         - \"install\" => \"--no-rdoc --no-ri --env-shebang\"\r\n         - \"update\" => \"--no-rdoc --no-ri --env-shebang\"\r\n      - REMOTE SOURCES:\r\n         - http://rubygems.org/\r\n\r\n    C:\\Temp\\foobar>jruby -S gem li\r\n    \r\n    *** LOCAL GEMS ***\r\n    \r\n    abstract (1.0.0)\r\n    actionmailer (3.0.10)\r\n    actionpack (3.0.10)\r\n    activemodel (3.0.10)\r\n    activerecord (3.0.10)\r\n    activeresource (3.0.10)\r\n    activesupport (3.0.10)\r\n    arel (2.0.10)\r\n    bouncy-castle-java (1.5.0146.1)\r\n    builder (2.1.2)\r\n    bundler (1.0.21)\r\n    erubis (2.6.6)\r\n    i18n (0.6.0, 0.5.0)\r\n    i18n-js (2.1.0)\r\n    jruby-openssl (0.7.4)\r\n    json (1.6.1 java)\r\n    mail (2.2.19)\r\n    mime-types (1.16)\r\n    polyglot (0.3.2)\r\n    rack (1.2.4)\r\n    rack-mount (0.6.14)\r\n    rack-test (0.5.7)\r\n    rails (3.0.10)\r\n    railties (3.0.10)\r\n    rake (0.9.2, 0.8.7)\r\n    rdoc (3.11)\r\n    sources (0.0.1)\r\n    thor (0.14.6)\r\n    treetop (1.4.10)\r\n    tzinfo (0.3.30)\r\n\r\n","html_url":"https://github.com/fnando/i18n-js/issues/64","title":"NoMethodError: undefined method `assets' during set up with JRuby/Rails 3.0.10","number":64,"id":1936392,"created_at":"2011-10-18T05:20:13Z"},"action":"closed"}