views:

22

answers:

1

With git is possible to jump back to early versions of a project.

Now, to work with these early versions, they depend often on old versions of libraries. Is it possible to circumvent problems like these:

/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/gem_dependency.rb:220:in
`specification': can't activate haml (= 2.1.0, runtime), 
  already activated haml-3.0.18 (Gem::Exception)
+2  A: 

You can specify a version number with each of your gem requirements, either in your gemfile (Rails 3) or your environment files (Rails 2). As long as you don't uninstall any of the versions you're using, you should be able to switch back and forth as you please.

Jimmy Cuadra
thanks, that is part of the answer. but how do I get the old gems? gem query -r -n ^haml --> only version 3.0.22 doing: sudo gem install haml --version=2.1.0 gives problems
poseid
`gem list -ra haml`
Jimmy Cuadra
ok... now i have all i need :) thanks
poseid