On Wed, Feb 11, 2009 at 4:42 PM, Ivan Judson <[email protected]> wrote: > > and got a slew of version errors because dm modules are currenlty > 0.9.10, but merb requires (= not =>) dm to be 0.9.9 for the following > gems:
What he said. I think the problem is more on Merb's end than Datamapper's. Or possibly RSpec, as the problem mostly happens when I try to run specs. What I understand is typically this: The dependencies.rb file is very precise about which versions it wants, and has a 'strict version' comment at the top to discourage people screwing with it. But the versions are always out of step with DM's latest versions. Even this wouldn't be a problem -- Rubygems is supposed to be good at letting you keep and use older versions -- except for the "already activated" error that Glenn mentioned. Mine looks something like this when I try to run autospec: ***** /Library/Ruby/Site/1.8/rubygems.rb:149:in `activate': can't activate dm-core (= 0.9.10, runtime), already activated dm-core-0.9.11 (Gem::Exception) ***** What I interpret from that is that something already required the dm-core gem before the Merb init code loaded that dependencies file. And when it required it, it simply loaded the latest version. For me this usually doesn't happen when I try to run 'merb', and only on some rake tasks. It's mostly specs that break it. But since I practice BDD and I'm running specs *all the time*, this causes me a lot of stress. It means I know that if I do a 'sudo gem update', I'm going to have to spend some time fixing all the dependencies.rb files in all of my Merb projects before I can work with them again. And that's no fun. -- Have Fun, Steve Eley ([email protected]) ESCAPE POD - The Science Fiction Podcast Magazine http://www.escapepod.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
