Matt, Is there anything we can add to the 1.0.2 Hobo gem? I've fixed the dependency so we won't pull in will_paginate 3.0 when it's released, but it sounds like users will still have a problem if it gets installed some other way...
thanks, Bryan On Nov 1, 9:46 pm, Matt Jones <[email protected]> wrote: > On Nov 1, 2010, at 9:07 PM, Mark Sobkowicz wrote: > > > I had a similar problem to one that Paul Davis had earlier. My hobo app > > stopped working when will_paginate got updated to 3.0.pre2. Very sad. So > > I uninstalled 3.0.pre2, and my hobo app works again. But how can I freeze > > the will_paginate gem at 2.something? I'd like to have 3.0 installed on > > the machine for other things. I tried putting: > > > config.gem "will_paginate", :version => '2.3.15' in my environment.rb > > > but it is ignored. I read that some gems are "framework gems" but I > > don't know how to proceed. > > Sadly, this is a bug in the Rails 2.3 gem system; due to when the Rakefile is > loaded we couldn't get some things to work right (the require > 'hobo/tasks/rails' line pulls in the system version, which also picks up its > dependencies waaaay before environment.rb gets loaded). > > Several options, until there's a version of the gem that sets the > will_paginate dependency more tightly: > > - run Hobo as a plugin; this will sidestep the problem entirely. There are > instructions on the cookbook > (http://cookbook.hobocentral.net/recipes/27-how-to-switch-from-the-gem), but > add an additional step where you cd into the vendor/plugins/hobo and 'git > checkout origin/v1.0.1'. > > - switch to Bundler, which is the default on Rails 3. Probably the best > long-term solution, as the 2.3 gem loader has some other sneaky bugs caused > by the initialization process. > > - start using rvm and gemsets to switch between different environments. This > is pretty cool, but may be overkill for this particular problem. > > Hope this helps! > > --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
