Hi you all! I''ve got Mongrel saying this when I use the localization simplified plug-in: any idea? ** Loading any Rails specific GemPlugins Exiting /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:92:in `load_specification'': /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:13:in `gsub!'': can''t convert nil into String (TypeError) from /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:13:in `localize_strftime'' from /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:191:in `strftime'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:13:in `today'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:314:in `date='' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:416:in `send'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:416:in `initialize'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:412:in `each'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:412:in `initialize'' ... 31 levels... from /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.4/lib/commands/server.rb:39 from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from script/server:3 -- Posted via http://www.ruby-forum.com/.
What version of Rubygems do you have? Evan On 10/27/07, Luca Reghellin <lists at ruby-forum.com> wrote:> > Hi you all! I''ve got Mongrel saying this when I use the localization > simplified plug-in: any idea? > > ** Loading any Rails specific GemPlugins > Exiting > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:92:in > `load_specification'': > /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:13:in > `gsub!'': can''t convert nil into String (TypeError) > from > /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:13:in > `localize_strftime'' > from > /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:191:in > `strftime'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:13:in > `today'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:314:in > `date='' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:416:in > `send'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:416:in > `initialize'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:412:in > `each'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:412:in > `initialize'' > ... 31 levels... > from > /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.4/lib/commands/server.rb:39 > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from script/server:3 > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Evan Weaver Cloudburst, LLC
Hi! I don''t how to find it. I can say that I''m running rails 1.2.4 on ruby 1.8.6 (2007-03-13 patchlevel 0) Evan Weaver wrote:> What version of Rubygems do you have? > > Evan-- Posted via http://www.ruby-forum.com/.
$ gem --version Evan On 10/27/07, Luca Reghellin <lists at ruby-forum.com> wrote:> > Hi! I don''t how to find it. I can say that I''m running rails 1.2.4 on > ruby 1.8.6 (2007-03-13 patchlevel 0) > > > > > Evan Weaver wrote: > > What version of Rubygems do you have? > > > > Evan > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Evan Weaver Cloudburst, LLC
ok thanks, 0.9.4 :) Evan Weaver wrote:> $ gem --version > > Evan-- Posted via http://www.ruby-forum.com/.
Can you try it with the Rubygems beta? Run: $ gem update --system --source http://segment7.net/ I could''t reproduce your issue using the beta so perhaps it was a gem problem that is already fixed. Evan On 10/27/07, Luca Reghellin <lists at ruby-forum.com> wrote:> ok thanks, 0.9.4 :) > > > Evan Weaver wrote: > > $ gem --version > > > > Evan > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Evan Weaver Cloudburst, LLC
Yes I can try, but excuse me, I''m not an expert, so I''m quite afraid of running that command: can that update run my mac or rails installation into some kind of trouble if something goes wrong? By the way, I''ve used macports to install ruby and rails. Evan Weaver wrote:> Can you try it with the Rubygems beta? Run: > > $ gem update --system --source http://segment7.net/ > > I could''t reproduce your issue using the beta so perhaps it was a gem > problem that is already fixed. > > Evan-- Posted via http://www.ruby-forum.com/.
I haven''t had any trouble with 0.9.5.6, but it''s a valid concern. What version of Mongrel are you using? Did the plugin work before, and now is broken, or did it never work? Evan On 10/27/07, Luca Reghellin <lists at ruby-forum.com> wrote:> > Yes I can try, but excuse me, I''m not an expert, so I''m quite afraid of > running that command: can that update run my mac or rails installation > into some kind of trouble if something goes wrong? By the way, I''ve used > macports to install ruby and rails. > > > Evan Weaver wrote: > > Can you try it with the Rubygems beta? Run: > > > > $ gem update --system --source http://segment7.net/ > > > > I could''t reproduce your issue using the beta so perhaps it was a gem > > problem that is already fixed. > > > > Evan > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Evan Weaver Cloudburst, LLC
It worked before, than suddenly stopped... :( Evan Weaver wrote:> I haven''t had any trouble with 0.9.5.6, but it''s a valid concern. > > What version of Mongrel are you using? Did the plugin work before, and > now is broken, or did it never work? > > Evan-- Posted via http://www.ruby-forum.com/.
Did it stop after you upgraded Mongrel? Or did you not upgrade. On 10/27/07, Luca Reghellin <lists at ruby-forum.com> wrote:> > It worked before, than suddenly stopped... :( > > Evan Weaver wrote: > > I haven''t had any trouble with 0.9.5.6, but it''s a valid concern. > > > > What version of Mongrel are you using? Did the plugin work before, and > > now is broken, or did it never work? > > > > Evan > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Evan Weaver Cloudburst, LLC
I''m sorry I was upgrading the gems while you''re writing. I''ve just upgraded rails to 1.2.5 too. Now, if I run rails -v, I''ve got this error :( /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:367:in `report_activate_error'': RubyGem version error: activesupport(1.4.1 not = 1.4.4) (Gem::LoadError) from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:299:in `activate'' from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:325:in `activate'' from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:324:in `each'' from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:324:in `activate'' from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:76:in `active_gem_with_options'' from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:50:in `gem'' from /opt/local/bin/rails:18 Evan Weaver wrote:> Did it stop after you upgraded Mongrel? Or did you not upgrade.-- Posted via http://www.ruby-forum.com/.
p.s. I did not upgraded mongrel. At least I don''t think so. -- Posted via http://www.ruby-forum.com/.
On 10/27/07, Luca Reghellin <lists at ruby-forum.com> wrote:> I''m sorry I was upgrading the gems while you''re writing. I''ve just > upgraded rails to 1.2.5 too. Now, if I run rails -v, I''ve got this error > :( > > /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:367:in > `report_activate_error'': RubyGem version error: activesupport(1.4.1 not > = 1.4.4) (Gem::LoadError)That seems to be a issue with the versions of activesupport and rails installed. could you list the gems you have? gem list rails gem list activesupport gem deps rails -v ''1.2.5'' The last command should list you what gems of activesupport, actionpack and activerecord is using, but I guess all is related to that. Also, did you updated the config/environment.rb to match the new installed gems *prior* doing the rake rails:update in your application? (That is documented in the Ruby on Rails weblog about the upgrade procedure. -- Luis Lavena Multimedia systems - Leaders are made, they are not born. They are made by hard effort, which is the price which all of us must pay to achieve any goal that is worthwhile. Vince Lombardi
> gem list railsrails (1.2.5, 1.2.4, 1.2.3, 1.2.2)> gem list activesupportactivesupport (1.4.3, 1.4.2, 1.4.1)> gem deps rails -v ''1.2.5''ERROR: While executing gem ... (RuntimeError) Unknown command deps ---------------------> Also, did you updated the config/environment.rb to match the new > installed gems *prior* doing the rake rails:update in your > application?Well, no... I updated rail via "sudo gem update rails -y" and did nothing else. I''ve just read the weblog, but since I''ve not used `gem install rails`, what should I do now? -- Posted via http://www.ruby-forum.com/.
Best way to proceed is to uninstall all gem versions of Rails, ActiveSupport, ActionPack, ActiveRecord, ActionMailer, and ActionWebService from your system, and then run ''gem install rails'' again. This makes sure that the only available versions of Rails are the latest ones, and avoids activation conflicts. Evan On 10/27/07, Luca Reghellin <lists at ruby-forum.com> wrote:> > > gem list rails > > rails (1.2.5, 1.2.4, 1.2.3, 1.2.2) > > > gem list activesupport > > activesupport (1.4.3, 1.4.2, 1.4.1) > > > gem deps rails -v ''1.2.5'' > > ERROR: While executing gem ... (RuntimeError) > Unknown command deps > > > --------------------- > > > Also, did you updated the config/environment.rb to match the new > > installed gems *prior* doing the rake rails:update in your > > application? > > Well, no... > I updated rail via "sudo gem update rails -y" and did nothing else. > > I''ve just read the weblog, but since I''ve not used `gem install rails`, > what should I do now? > > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Evan Weaver Cloudburst, LLC
Maybe I''ve updated to 1.2.4 the wrong way too... -- Posted via http://www.ruby-forum.com/.
Theoretically you should be able to keep multiple versions at a time, but it doesn''t really work so well for Rails in practice because its dependency tree is deep. Many people export the repository release tags into /vendor/rails instead of using the gems. This guarantees that each app uses only its individual version of Rails. Evan On 10/27/07, Luca Reghellin <lists at ruby-forum.com> wrote:> > Maybe I''ve updated to 1.2.4 the wrong way too... > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Evan Weaver Cloudburst, LLC
Ok thank you. I''ll try and let you know. Really thank you for your support! Luca Evan Weaver wrote:> Theoretically you should be able to keep multiple versions at a time, > but it doesn''t really work so well for Rails in practice because its > dependency tree is deep. > > Many people export the repository release tags into /vendor/rails > instead of using the gems. This guarantees that each app uses only its > individual version of Rails. > > Evan-- Posted via http://www.ruby-forum.com/.
Time#today was removed from RubyGems, so the suggestion on this blog post might fix your problem: http://blog.segment7.net/articles/2007/10/08/time-today-going-away On 10/27/07, Luca Reghellin <lists at ruby-forum.com> wrote:> > Hi you all! I''ve got Mongrel saying this when I use the localization > simplified plug-in: any idea? > > ** Loading any Rails specific GemPlugins > Exiting > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:92:in > `load_specification'': > /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:13:in > `gsub!'': can''t convert nil into String (TypeError) > from > /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:13:in > `localize_strftime'' > from > /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:191:in > `strftime'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:13:in > `today'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:314:in > `date='' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:416:in > `send'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:416:in > `initialize'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:412:in > `each'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/specification.rb:412:in > `initialize'' > ... 31 levels... > from > /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.4/lib/commands/server.rb:39 > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from script/server:3 > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- Grant Hutchins nertzy at gmail.com
Done. Now all is running perfect. THANK YOU ALL, VERY MUCH!!!! :):):)> Evan Weaver wrote: >> Theoretically you should be able to keep multiple versions at a time, >> but it doesn''t really work so well for Rails in practice because its >> dependency tree is deep. >> >> Many people export the repository release tags into /vendor/rails >> instead of using the gems. This guarantees that each app uses only its >> individual version of Rails. >> >> Evan-- Posted via http://www.ruby-forum.com/.
In fact no. I''ve started again my application and I have the same errors (see below). This is not an help request. Simply to tell that localization simplified gives too problems, and I''ll not use it anymore. I''m going the heavy way, globalize... can''t convert nil into String /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:13:in `gsub!'' /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:13:in `localize_strftime'' /Users/stratboy/Documents/05_SAMPLES/RAILS/newser/vendor/plugins/l10n-simplified-0.8/lib/localization_simplified.rb:191:in `strftime'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/core_ext/time/conversions.rb:19:in `to_s'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/cgi_ext/session_performance_fix.rb:21:in `create_new_id'' /opt/local/lib/ruby/1.8/cgi/session.rb:267:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/cgi_process.rb:132:in `new'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/cgi_process.rb:132:in `session'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/cgi_process.rb:164:in `stale_session_check!'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/cgi_process.rb:116:in `session'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/base.rb:1058:in `assign_shortcuts_without_flash'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/flash.rb:140:in `assign_shortcuts'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/base.rb:429:in `process_without_filters'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/filters.rb:684:in `process_without_session_management_support'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/session_management.rb:114:in `process'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/base.rb:334:in `process'' /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/dispatcher.rb:41:in `dispatch'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `synchronize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `each'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run'' /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243 /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in `load'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in `load'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:488:in `load'' /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:60 /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'' /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'' /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/commands/server.rb:39 /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' script/server:3 -- Posted via http://www.ruby-forum.com/.