Posterous theme by Cory Watilo

Filed under: rubygems

Redmine 1.1.1 and rubygems 1.5 issue

After upgrading rubygems Redmine started to display error message

rake aborted!
undefined local variable or method `version_requirements' for #<Rails::GemDependency:0xb7351b0c>

It is described in ticket #7516 of Redmine itself, and workaround is to modify enviroment.rb and add code before initialize section

if Gem::VERSION >= "1.3.6" 
  module Rails
    class GemDependency
      def requirement
        r = super
        (r == Gem::Requirement.default) ? nil : r
      end
    end
  end
end