From: Josh Cheek Date: 2011-06-21T00:40:07+09:00 Subject: Re: A way to find out when a constant gets defined? --bcaec548a1b10f57f504a6268bf9 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jun 14, 2011 at 7:11 AM, Josh Cheek wrote: > Okay, I think I found the ultimate source of the problem was that RVM said > it should hijack rake and run bin/rake ( > https://rvm.beginrescueend.com/integration/bundler/), but the Bundler team > didn't like that, so the RVM team took it back out (I've asked that they > update the website to reflect this). I updated my RVM at some point and > didn't realize I'd lost this functionality. > > This allowed one rake task to populate the DB with data serialized form > Syck, but when my app went to use it, it tried to deserialize with Psych, > and blew up. > > The fix I found was to use https://github.com/mpapis/rubygems-bundler to > regain the functionality that was removed from RVM where it runs `bundle > exec rake ...` when I type "rake ..." while in a dir containing a Gemfile. > > To prevent this from happening to me again, I'm working on a gem bundler-bouncer (https://github.com/JoshCheek/bundler-bouncer). At the top of any entrance into your app (ie Rakefiel) you `require "bundler/bouncer"` and it will exit the app if Bundler isn't running. If anyone here uses Bundle, or frequently authors gems, I wouldn't mind feedback: Have I followed gem conventions appropriately? Am I testing properly? Anything you see from your experience that I don't have yet? If so, point it out; help me learn. --bcaec548a1b10f57f504a6268bf9--