Project

General

Profile

Actions

Feature #1609

closed

Add Ruby 1.8.7 Support

Added by Matthew Williams over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
Start date:
2008-07-09
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

With the recent exploits found in Ruby and other additions to 1.8.7 I think it would be extremely beneficial to get Redmine working with 1.8.7 as many hosts will soon be making the upgrade and breaking a lot of instances. I'm forced to downgrade my instance of Ruby on a particular box just to run Redmine.

Actions #1

Updated by Jean-Philippe Lang over 15 years ago

Did you test current trunk ?
It passes tests with ruby 1.8.7 + rails 2.1. Please report any compatibility problem.

Actions #2

Updated by Liwiusz Ociepa over 15 years ago

Well. I have redmine 0.7.3 on ruby 1.8.7 and it works ok with patched rails 2.0.2.
There is only one thing changed:
Change truncate in actionpack-2.0.2/lib/action_view/helpers/text_helper.rb to:

      def truncate(text, length = 30, truncate_string = "...")
        if text.nil? then return end
        l = length - truncate_string.length
        if $KCODE == "NONE" 
          text.length > length ? text[0...l] + truncate_string : text
        else
          chars = text.split(//)
          chars.length > length ? chars[0...l].join + truncate_string : text
        end
      end

That fix can be found somewhere here (issues or board ;)

Actions #3

Updated by Jean-Philippe Lang over 15 years ago

  • Status changed from New to Closed
  • Target version set to 0.8
  • Resolution set to Fixed

Trunk is full compatible with ruby 1.8.7.

Actions

Also available in: Atom PDF