Project

General

Profile

Actions

Defect #11051

closed

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

Added by Martin Corino almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
SCM extra
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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.

Actions #1

Updated by Martin Corino almost 12 years ago

We're running Redmine 1.4.2 using MRI 1.8.7 and Rails 2.3.14

Actions #2

Updated by Toshi MARUYAMA almost 12 years ago

  • Category changed from SCM to SCM extra
Actions #3

Updated by Jean-Philippe Lang almost 12 years ago

  • Status changed from New to Resolved
  • Target version set to 1.4.3
  • Resolution set to Fixed

I'm using ruby1.9.3 + rubygems 1.8.23 and it actually works as is.
The fix is committed in r9742 anyway, thanks.

Actions #4

Updated by Martin Corino almost 12 years ago

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.

Actions #5

Updated by Jean-Philippe Lang almost 12 years ago

  • Target version changed from 1.4.3 to 2.0.2

Merged in 1.4 and 2.0.

Actions #6

Updated by Jean-Philippe Lang almost 12 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF