Actions
Bug #8510
closedgettext_i18n_rails 1.x causes "cannot load such file -- gettext/tools/task" in production
Description
[root@foreman ~]# foreman-rake plugins --trace rake aborted! cannot load such file -- gettext/tools/task /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require' /opt/rh/ruby193/root/usr/share/gems/gems/gettext_i18n_rails-1.0.5/lib/gettext_i18n_rails/tasks.rb:1:in `<top (required)>' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require' /usr/share/foreman/lib/tasks/gettext.rake:3:in `<top (required)>'
This also causes db:migrate etc to fail.
Previously the gem only lazily loaded gettext when the rake tasks were executed, but now it's happening when the tasks are loaded, due to https://github.com/grosser/gettext_i18n_rails/commit/d1b02f734f9e0c96de50d1a58e8170ce6ec457ac
Actions