Vote #71942
完了reposman.rb fails in 1.4.2 because of missing require for rubygems
0%
説明
In older version(s) of Redmine (1.2 in our case) rubygems is implicitly loaded by one of the other support libraries required at the start of the script.
In 1.4.2 these libraries have changed and implicit loading of rubygems has gone leading to a LoadError on "require 'activeresource'".
Adding a "require 'rubygems'" before this code solves the issue.
journals
We're running Redmine 1.4.2 using MRI 1.8.7 and Rails 2.3.14
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
I'm using ruby1.9.3 + rubygems 1.8.23 and it actually works as is.
The fix is committed in r9742 anyway, thanks.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> I'm using ruby1.9.3 + rubygems 1.8.23 and it actually works as is.
That's correct. MRI 1.9.2+ loads rubygems by default. The pre-1.9 versions do not.
--------------------------------------------------------------------------------
Merged in 1.4 and 2.0.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------