Re: Gem Bundler 0.9 now live
There is a problem with gems that extends rails modules. New bundler doesn't load init.rb (rails/init.rb) file. In this file we can often find something like this (acts as taggable on): ActiveRecord::Base.send :include, ActiveRecord::Acts::TaggableOn ActiveRecord::Base.send :include, ActiveRecord::Acts::Tagger ActionView::Base.send :include, TagsHelper if defined? (ActionView::Base) Without this lines of code our application won't run. Quick fix of this is to create directory in vendor/plugins with init files. See this commit: http://github.com/morgoth/quiz/commit/42f9c0eafd9062731d4cc2d5bf1f23211f54ebff Heroku bundler 0.9 works for me. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Gem Bundler 0.9 now live
On Feb 17, 1:48 pm, Trevor Turk wrote: > Thanks for continuing with this. I'm not 100% sure that the steps in > your docs are working just yet. I've commented on this bundler ticket > with more details: > > http://github.com/carlhuda/bundler/issues/issue/83/ > FWIW - I've decided that I've had enough trouble with Bundler and Rails 2.3.5 myself to give up. I'll be switching back to the .gems method for now for my Heroku apps. Maybe they'll be able to sort things out eventually, but I've had enough ;) - Trevor -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Gem Bundler 0.9 now live
On Feb 17, 12:38 pm, Oren Teich wrote: > Thanks, I've updated the docs to reflect this. > Oren Hi Oren, Thanks for continuing with this. I'm not 100% sure that the steps in your docs are working just yet. I've commented on this bundler ticket with more details: http://github.com/carlhuda/bundler/issues/issue/83/ It sounds like we may be able to sort it all out tonight, though, and the gist that you linked to should be updated in the end. I'll keep an eye out and update this thread if/when I feel like we've got it all working right. My apologies in advance if I'm just not doing something correctly ;) - Trevor -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Gem Bundler 0.9 now live
Thanks, I've updated the docs to reflect this. Oren On Tue, Feb 16, 2010 at 8:45 PM, Trevor Turk wrote: > On Feb 16, 10:37 pm, Oren Teich wrote: > > Interesting - you're saying that using those instructions meant you > didn't > > need to do any of the annoying config.gem stuff in your environment file? > > Yes. If you follow the last few commits in my github project, you can > see everything I needed to do. It's a little confusing, but in the > end, I was able to use bundler as expected, while removing all the > config.gem calls (including the one for the rails engine 'devise' that > I thought I'd definitely need to keep around). > > You can see this github issue about devise as well: > > http://github.com/plataformatec/devise/issues#issue/77 > > ...basically, it looks like you need to do the hackery that's in that > gist, but then your rails 2.3.5 app will work with bundler 0.9x > without any problems. > > I'm not sure if Yehuda & Company will want to come up with another > solution...? But anyway - it seems to have been necessary for me to > get everything working as expected for now. > > - Trevor > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to her...@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Gem Bundler 0.9 now live
On Feb 16, 10:37 pm, Oren Teich wrote: > Interesting - you're saying that using those instructions meant you didn't > need to do any of the annoying config.gem stuff in your environment file? Yes. If you follow the last few commits in my github project, you can see everything I needed to do. It's a little confusing, but in the end, I was able to use bundler as expected, while removing all the config.gem calls (including the one for the rails engine 'devise' that I thought I'd definitely need to keep around). You can see this github issue about devise as well: http://github.com/plataformatec/devise/issues#issue/77 ...basically, it looks like you need to do the hackery that's in that gist, but then your rails 2.3.5 app will work with bundler 0.9x without any problems. I'm not sure if Yehuda & Company will want to come up with another solution...? But anyway - it seems to have been necessary for me to get everything working as expected for now. - Trevor -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Gem Bundler 0.9 now live
Interesting - you're saying that using those instructions meant you didn't need to do any of the annoying config.gem stuff in your environment file? This is certainly a learning experience for all - bundler isn't finalized enough that anyone has any firm understanding of this stuff. We've already had to submit a few patches, and we'll probably still find more as we work out the bugs here. Oren On Tue, Feb 16, 2010 at 8:34 PM, Trevor Turk wrote: > On Feb 16, 10:02 pm, Oren Teich wrote: > > Sorry if it wasn't clear, my understanding is that rails 2.X will always > > require that you have BOTH them gemfile and the config.gem syntax. > > Hmm - I'm not clear on how this is all going to play out, but I had to > use this gist mentioned in the github issues to get things working: > > http://github.com/carlhuda/bundler/issues/#issue/87 > > You can read through the thread for details, but basically following > this gist: > > http://gist.github.com/302406 > > ...seems to have worked for me to get bundler 0.9x working with rails > 2.3x. > > I suppose once everything is cleared up, it may be a good idea to > update the Heroku docs with different instructions, if necessary. > > I'm sorry this has been such a trial - that's the joy of living on the > edge, I guess ;) > > - Trevor > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to her...@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Gem Bundler 0.9 now live
On Feb 16, 10:02 pm, Oren Teich wrote: > Sorry if it wasn't clear, my understanding is that rails 2.X will always > require that you have BOTH them gemfile and the config.gem syntax. Hmm - I'm not clear on how this is all going to play out, but I had to use this gist mentioned in the github issues to get things working: http://github.com/carlhuda/bundler/issues/#issue/87 You can read through the thread for details, but basically following this gist: http://gist.github.com/302406 ...seems to have worked for me to get bundler 0.9x working with rails 2.3x. I suppose once everything is cleared up, it may be a good idea to update the Heroku docs with different instructions, if necessary. I'm sorry this has been such a trial - that's the joy of living on the edge, I guess ;) - Trevor -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Gem Bundler 0.9 now live
Sorry if it wasn't clear, my understanding is that rails 2.X will always require that you have BOTH them gemfile and the config.gem syntax. Oren On Tue, Feb 16, 2010 at 7:55 PM, Trevor Turk wrote: > On Feb 16, 7:04 pm, Oren Teich wrote: > > Gem bundler 0.9 is now live on Heroku. > > Using the instructions here: > > http://docs.heroku.com/gems#gem-bundler > > ...with the latest hoptoad_notifier gem and a rails 2.3.5 app, I still > need to have the config.gem call in my config/environment.rb file: > > config.gem 'hoptoad_notifier' > > ...or else I get an uninitalized constant HoptoadNotifier error. > > You can see exactly what I expected to be able to do here: > > http://github.com/trevorturk/kzak/commit/56226739d > > ...and the workaround in the subsequent commit here: > > http://github.com/trevorturk/kzak/commit/56226739d > > I'm wondering if this is a known issue, if there's some other way to > work around the issue. Also, I think the Heroku docs might need to be > updated if/when we know of the appropriate workaround. I'll also check > in with the bundler github issues list. > > Thanks! > - Trevor > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to her...@googlegroups.com. > To unsubscribe from this group, send email to > heroku+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Gem Bundler 0.9 now live
On Feb 16, 9:55 pm, Trevor Turk wrote: > ...and the workaround in the subsequent commit here: > > http://github.com/trevorturk/kzak/commit/56226739d Sorry, that second link should have been: http://github.com/trevorturk/kzak/commit/6cd75f050 - Trevor -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
Re: Gem Bundler 0.9 now live
On Feb 16, 7:04 pm, Oren Teich wrote: > Gem bundler 0.9 is now live on Heroku. Using the instructions here: http://docs.heroku.com/gems#gem-bundler ...with the latest hoptoad_notifier gem and a rails 2.3.5 app, I still need to have the config.gem call in my config/environment.rb file: config.gem 'hoptoad_notifier' ...or else I get an uninitalized constant HoptoadNotifier error. You can see exactly what I expected to be able to do here: http://github.com/trevorturk/kzak/commit/56226739d ...and the workaround in the subsequent commit here: http://github.com/trevorturk/kzak/commit/56226739d I'm wondering if this is a known issue, if there's some other way to work around the issue. Also, I think the Heroku docs might need to be updated if/when we know of the appropriate workaround. I'll also check in with the bundler github issues list. Thanks! - Trevor -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to her...@googlegroups.com. To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.