プロジェクト

全般

プロフィール

Vote #71942

完了

reposman.rb fails in 1.4.2 because of missing require for rubygems

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
SCM extra_46
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
46
version_id:
50
issue_org_id:
11051
author_id:
13728
assigned_to_id:
0
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
48
ステータス-->[Closed]

説明

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.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリSCM extra_46 にセット
  • 対象バージョン2.0.2_50 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0