Bug 21088

Summary: rails приложения падают при установленном rubygems
Product: Sisyphus Reporter: Igor Zubkov <icesik>
Component: ruby-railsAssignee: Andrey Cherepanov <cas>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: cas, imz, led, majioa, mike, nbr, rider, stalker, stanv, timonbl4, vitty
Version: unstable   
Hardware: all   
OS: Linux   

Description Igor Zubkov 2009-08-16 18:49:20 MSD
[icesik@iceberg ~]$ rpm -q ruby-rails
ruby-rails-2.3.3.1-alt3
[icesik@iceberg ~]$ cd tmp
[icesik@iceberg tmp]$ rails demo1
[выхлоп поскипан]
[icesik@iceberg tmp]$ cd demo1
[icesik@iceberg demo1]$ ./script/server 
=> Booting WEBrick
=> Rails 2.3.3 application starting on http://0.0.0.0:3000
/usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:440:in `rescue in load_missing_constant': uninitialized constant Rails::GemDependency (NameError)
	from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:436:in `load_missing_constant'
	from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:80:in `const_missing_with_dependencies'
	from /usr/share/ruby/vendor_ruby/1.9/initializer.rb:299:in `add_gem_load_paths'
	from /usr/share/ruby/vendor_ruby/1.9/initializer.rb:131:in `process'
	from /usr/share/ruby/vendor_ruby/1.9/initializer.rb:112:in `run'
	from /home/icesik/tmp/demo1/config/environment.rb:9:in `<top (required)>'
	from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:156:in `require'
	from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:156:in `block in require'
	from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:521:in `new_constants_in'
	from /usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:156:in `require'
	from /usr/share/ruby/vendor_ruby/1.9/commands/server.rb:84:in `<top (required)>'
	from ./script/server:3:in `require'
	from ./script/server:3:in `<main>'
[icesik@iceberg demo1]$ export RUBYOPT='--enable gems'
[icesik@iceberg demo1]$ ./script/server 
=> Booting WEBrick
=> Rails 2.3.3 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-08-16 17:48:17] INFO  WEBrick 1.3.1
[2009-08-16 17:48:17] INFO  ruby 1.9.1 (2009-07-27) [i586-linux-gnu]
[2009-08-16 17:48:17] INFO  WEBrick::HTTPServer#start: pid=8348 port=3000
^C[2009-08-16 17:48:21] INFO  going to shutdown ...
[2009-08-16 17:48:21] INFO  WEBrick::HTTPServer#start done.
Exiting
[icesik@iceberg demo1]$
Comment 1 Igor Zubkov 2009-08-16 18:54:29 MSD
Забыл добавить, что из самих гемов ничего не стоит.
Comment 2 Vitaly Kuznetsov 2009-09-26 23:10:38 MSD
Есть ли продвижение по данной баге?
Comment 3 Sir Raorn 2009-09-27 00:44:43 MSD
А надо срочно-срочно чинить?  Workaround exists, export RUBYOPT='--enable gems'.  Всё равно у rails на 1.9 очень большие проблемы с non-latin даными.
Comment 4 Vitaly Kuznetsov 2009-09-27 17:14:34 MSD
Хм, works for me

Да и в релизноутсах 2.3:

Rails 2.3 should pass all of its own tests whether you are running on Ruby 1.8 or the now-released Ruby 1.9.1. You should be aware, though, that moving to 1.9.1 entails checking all of the data adapters, plugins, and other code that you depend on for Ruby 1.9.1 compatibility, as well as Rails core.
Comment 5 Repository Robot 2009-10-13 21:11:23 MSD
ruby-rails-2.3.4-alt1 -> sisyphus:

* Tue Oct 13 2009 Alexey I. Froloff <raorn@altlinux> 2.3.4-alt1

- [2.3.4-68-g7454d18]
- Do not throw errors if rubygems installed and loaded in the middle of
  initiliazation process (closes: #21088)