Actions
Bug #2701
closedError when foreman-console is installed: cannot load such file -- minitest
Description
Happens when loading any of the Rails app, dbmigrating etc while foreman-console's present.
[root@rhel6b foreman]# scl enable ruby193 'rails c' /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in `strict_error': Gem loading error: cannot load such file -- minitest (RuntimeError) from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:56:in `rescue in block in system_require' from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:in `block in system_require' from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in `each' from /opt/rh/ruby193/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in `system_require' from /usr/share/foreman/config/application.rb:11:in `<top (required)>' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/commands.rb:39:in `<top (required)>' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `require' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `rescue in require' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:35:in `require' from script/rails:6:in `<main>'
Updated by Gaël Chamoulaud over 11 years ago
Thx Dominic, It works for me now ! ;-)
With bundler.d/console.rb:
group :console do gem 'wirb' gem 'hirb-unicode' gem 'awesome_print', :require => 'ap' # minitest - workaround until Rails 4.0 (#2650) gem 'minitest', '~> 4.7', :require => 'minitest/unit' end
Updated by Dominic Cleal over 11 years ago
- Status changed from Assigned to Ready For Testing
Thanks for testing!
Updated by Dominic Cleal over 11 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset c36baf86ae47bc09a18021900d05c96d23d20a1c.
Actions