Jason Garber
2008-Aug-18 16:27 UTC
[RedCloth #37] RedCloth 4.0.2 does not initialize in Rails 2.1
A number of you noticed a problem in RedCloth 4.0.2, released last week, where it didn''t work with Rails 2.1 unless you explicitly specified the lib file in environment.rb. The bug was introduced as I was trying to work around a smaller problem--a bug in Rails 2.1 (#320 - textilize helper loading RedCloth before gem dependencies) which has since been fixed in edge rails. My apologies to those who ran into this embarrassing issue and thanks to those who reported it. RedCloth 4.0.3 fixes this, so you can simply use config.gem ''RedCloth'' again. Jason On Aug 15, 2008, at 11:30 AM, Lighthouse wrote:> // Add your reply above here > =================================================> soleone (at gmail) updated this ticket at August 15, 2008 15:30 > > It seems that the fix for case-insensitive loading of RedCloth does > not work. > > I have a Rails 2.1.0 app, and when I try to require RedCloth like > this in my environment.rb: > > @@@ ruby > config.gem ''RedCloth'' > @@@ > > It throws the following exception after running the server: > > /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > dependencies.rb:275:in `load_missing_constant'': uninitialized > constant RedCloth::TextileDoc (NameError) > from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/ > active_support/dependencies.rb:467:in `const_missing'' > from /Library/Ruby/Gems/1.8/gems/RedCloth-4.0.2/lib/RedCloth.rb: > 17:in `new'' > from /Users/soleone/workspace/rails/rubyflow/config/environment.rb:68 > > > > But when I change the require statement in environment.rb to: > > @@@ ruby > config.gem ''RedCloth'', :lib => ''redcloth'' > @@@ > > Then it works fine. > -------------------------------------------------------------------------------- > > State: new > Milestone: 4.0.3 > View this ticket online: http://jgarber.lighthouseapp.com/projects/13054/tickets/37-redcloth-4-0-2-does-not-initialize-in-rails-2-1 > . > Stop being notified of this ticket''s changes: http://jgarber.lighthouseapp.com/projects/13054/tickets/37-redcloth-4-0-2-does-not-initialize-in-rails-2-1/watch > Update your Profile: http://jgarber.lighthouseapp.com/profile
I assume you can still use the old :lib way as well? (as that is what I''m doing, in fact i didn''t realise it was even a bug because there are so many gems that seem to need explicit :lib settings anyway). Jase On Mon, 2008-08-18 at 12:27 -0400, Jason Garber wrote:> A number of you noticed a problem in RedCloth 4.0.2, released last > week, where it didn''t work with Rails 2.1 unless you explicitly > specified the lib file in environment.rb. The bug was introduced as I > was trying to work around a smaller problem--a bug in Rails 2.1 (#320 > - textilize helper loading RedCloth before gem dependencies) which has > since been fixed in edge rails. My apologies to those who ran into > this embarrassing issue and thanks to those who reported it. RedCloth > 4.0.3 fixes this, so you can simply use config.gem ''RedCloth'' again. > > Jason > > On Aug 15, 2008, at 11:30 AM, Lighthouse wrote: > > > // Add your reply above here > > =================================================> > soleone (at gmail) updated this ticket at August 15, 2008 15:30 > > > > It seems that the fix for case-insensitive loading of RedCloth does > > not work. > > > > I have a Rails 2.1.0 app, and when I try to require RedCloth like > > this in my environment.rb: > > > > @@@ ruby > > config.gem ''RedCloth'' > > @@@ > > > > It throws the following exception after running the server: > > > > /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ > > dependencies.rb:275:in `load_missing_constant'': uninitialized > > constant RedCloth::TextileDoc (NameError) > > from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/ > > active_support/dependencies.rb:467:in `const_missing'' > > from /Library/Ruby/Gems/1.8/gems/RedCloth-4.0.2/lib/RedCloth.rb: > > 17:in `new'' > > from /Users/soleone/workspace/rails/rubyflow/config/environment.rb:68 > > > > > > > > But when I change the require statement in environment.rb to: > > > > @@@ ruby > > config.gem ''RedCloth'', :lib => ''redcloth'' > > @@@ > > > > Then it works fine. > > -------------------------------------------------------------------------------- > > > > State: new > > Milestone: 4.0.3 > > View this ticket online: http://jgarber.lighthouseapp.com/projects/13054/tickets/37-redcloth-4-0-2-does-not-initialize-in-rails-2-1 > > . > > Stop being notified of this ticket''s changes: http://jgarber.lighthouseapp.com/projects/13054/tickets/37-redcloth-4-0-2-does-not-initialize-in-rails-2-1/watch > > Update your Profile: http://jgarber.lighthouseapp.com/profile > > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards
Jason Garber
2008-Aug-18 17:59 UTC
[RedCloth #37] RedCloth 4.0.2 does not initialize in Rails 2.1
Yes, absolutely. On Aug 18, 2008, at 12:38 PM, Jase wrote:> I assume you can still use the old :lib way as well? (as that is what > I''m doing, in fact i didn''t realise it was even a bug because there > are > so many gems that seem to need explicit :lib settings anyway). > > Jase > > On Mon, 2008-08-18 at 12:27 -0400, Jason Garber wrote: >> A number of you noticed a problem in RedCloth 4.0.2, released last >> week, where it didn''t work with Rails 2.1 unless you explicitly >> specified the lib file in environment.rb. The bug was introduced >> as I >> was trying to work around a smaller problem--a bug in Rails 2.1 (#320 >> - textilize helper loading RedCloth before gem dependencies) which >> has >> since been fixed in edge rails. My apologies to those who ran into >> this embarrassing issue and thanks to those who reported it. >> RedCloth >> 4.0.3 fixes this, so you can simply use config.gem ''RedCloth'' again. >> >> Jason >> >> On Aug 15, 2008, at 11:30 AM, Lighthouse wrote: >> >>> // Add your reply above here >>> =================================================>>> soleone (at gmail) updated this ticket at August 15, 2008 15:30 >>> >>> It seems that the fix for case-insensitive loading of RedCloth does >>> not work. >>> >>> I have a Rails 2.1.0 app, and when I try to require RedCloth like >>> this in my environment.rb: >>> >>> @@@ ruby >>> config.gem ''RedCloth'' >>> @@@ >>> >>> It throws the following exception after running the server: >>> >>> /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/ >>> dependencies.rb:275:in `load_missing_constant'': uninitialized >>> constant RedCloth::TextileDoc (NameError) >>> from /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/ >>> active_support/dependencies.rb:467:in `const_missing'' >>> from /Library/Ruby/Gems/1.8/gems/RedCloth-4.0.2/lib/RedCloth.rb: >>> 17:in `new'' >>> from /Users/soleone/workspace/rails/rubyflow/config/ >>> environment.rb:68 >>> >>> >>> >>> But when I change the require statement in environment.rb to: >>> >>> @@@ ruby >>> config.gem ''RedCloth'', :lib => ''redcloth'' >>> @@@ >>> >>> Then it works fine. >>> -------------------------------------------------------------------------------- >>> >>> State: new >>> Milestone: 4.0.3 >>> View this ticket online: http://jgarber.lighthouseapp.com/projects/13054/tickets/37-redcloth-4-0-2-does-not-initialize-in-rails-2-1 >>> . >>> Stop being notified of this ticket''s changes: http://jgarber.lighthouseapp.com/projects/13054/tickets/37-redcloth-4-0-2-does-not-initialize-in-rails-2-1/watch >>> Update your Profile: http://jgarber.lighthouseapp.com/profile >> >> _______________________________________________ >> Redcloth-upwards mailing list >> Redcloth-upwards at rubyforge.org >> http://rubyforge.org/mailman/listinfo/redcloth-upwards > > _______________________________________________ > Redcloth-upwards mailing list > Redcloth-upwards at rubyforge.org > http://rubyforge.org/mailman/listinfo/redcloth-upwards