Feature #4050
closedRuby 1.9 support
Added by Alexey Froloff about 15 years ago. Updated over 12 years ago.
0%
Description
With attached patches redmine passes all tests with Rails 2.3.4 and Ruby 1.9.1. I'm trying to package redmine for ALT Linux distro, these patches are not distribution specific.
I have packaged and installed following modules (never tried to patch vendored versions):
ruby-coderay (http://svn.rubychan.de/coderay)
rails-plugin-engines (http://github.com/lazyatom/engines)
rails-plugin-rfpdf (http://github.com/edwinmoss/rfpdf)
Excerption from redmine spec just for reference:
rm -rf vendor/plugins/coderay*/ rm -rf vendor/plugins/engines/ rm -rf vendor/plugins/rfpdf/ # these locales fail test_load(DefaultDataTest) rm -f config/locales/hu.yml rm -f config/locales/zh.yml rm -f config/locales/zh-TW.yml cat <<EOF >config/database.yml production: adapter: sqlite3 database: db/production.db development: adapter: sqlite3 database: db/development.db test: adapter: sqlite3 database: db/test.db EOF rake --trace config/initializers/session_store.rb rake --trace db:migrate rake --trace test:scm:setup:create_dir rake --trace test:scm:setup:filesystem rake --trace test:scm:setup:git rake --trace test:scm:setup:subversion rake --trace test:units rake --trace test:functionals rake --trace test:integration
Files
Related issues
Updated by Alexey Froloff about 15 years ago
Updated by Alexey Froloff about 15 years ago
Forgot to mention. All patches made against yesterday's trunk.
Updated by Etienne Massip about 14 years ago
That would be great as ruby 1.9.2 is out now and is meant to be the first 1.9 release ready for production use.
This could improve greatly the speed and usability of Redmine.
Updated by Alexey Froloff about 14 years ago
$ git diff --stat tags/1.0.0..master -- app/ config/ lib/ test/ vendor/ | tail 1)
60 files changed, 264 insertions(+), 220 deletions(
Works perfect with 1.9.1p376. Since there's no reaction on my patches, I don't see any reason for me to submit anything again.
Updated by Jean-Baptiste Barth about 14 years ago
Alexey, please don't take it that way, be sure that such contributions are very appreciated.
There were no reaction to your patch for various reasons. Mainly because we are very few contributors around to review thousands of pending issues. Plus, if I remember correctly, 1.9.1 has always been said to be not really ready for production (I remember articles about weird cases, segfaults, etc.).
But now with 1.9.2 released, the situation is very different. I'd personnaly like 1.1 to be fully compatible with ruby 1.9, and maybe we'll begin to support more recent rails versions.
I'll have a look at your patches and integrate them one by one as soon as I come back from my holidays in september. Thank you again.
Updated by Alexey Froloff about 14 years ago
This issue is already obsolete. In http://git.altlinux.org/people/raorn/packages/?p=redmine.git I have working redmine 1.0.0 (upstream sources were imported with git-svn) with bunch of fixes related to 1.9.1 incompatibilities, encoding issues, rails 2.3.8 anti-XSS false-positive escapes as well as several really nasty bugs.
I am packaging redmine for ALT Linux distro, we have ruby 1.9.1 as the only ruby version in repository. I am doing this just for fun, although there are several users who runs this version in their "production".
I can comment on any my commit, but submitting issues without any feedback in months don't worth the effort. Nothing personal.
Updated by Etienne Massip about 14 years ago
This issue can't be obsolete, you just brought a considerable help to Redmine's development for which we, users, are very thankful.
BTW, it looks like someone else did the same to get early Rails 3 support (issue #4796) : http://github.com/jeremy/redmine
Updated by Jean-Baptiste Barth about 14 years ago
Alexey Froloff wrote:
This issue is already obsolete. In http://git.altlinux.org/people/raorn/packages/?p=redmine.git I have working redmine 1.0.0 (upstream sources were imported with git-svn) with bunch of fixes related to 1.9.1 incompatibilities, encoding issues, rails 2.3.8 anti-XSS false-positive escapes as well as several really nasty bugs.
OK thanks, I mirrored this repo on my laptop so that I can hack a bit on it.
Updated by David Morton about 14 years ago
I'm very interested in this too, as I just spent a week or two getting an application ready for rails 3, and then I discovered that passenger needs to run the same ruby version for all apps on the server - and so to run redmine on the testing server along with the application, I need both to run in 1.9.2. :(
Alexsey: you said 1.0.0, how is it tracking with 1.0.1 ?
Updated by Toshi MARUYAMA over 13 years ago
After Redmine updated Rails 2.3.11, I can't run on my Japanese Windows nor Linux Latin-1 locale on Ruby 1.9.
$ ruby --version ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux] $ locale LANG=en_US.ISO-8859-1 LC_CTYPE="en_US.ISO-8859-1" LC_NUMERIC="en_US.ISO-8859-1" LC_TIME="en_US.ISO-8859-1" LC_COLLATE="en_US.ISO-8859-1" LC_MONETARY="en_US.ISO-8859-1" LC_MESSAGES="en_US.ISO-8859-1" LC_PAPER="en_US.ISO-8859-1" LC_NAME="en_US.ISO-8859-1" LC_ADDRESS="en_US.ISO-8859-1" LC_TELEPHONE="en_US.ISO-8859-1" LC_MEASUREMENT="en_US.ISO-8859-1" LC_IDENTIFICATION="en_US.ISO-8859-1" LC_ALL=
ActionView::TemplateError (incompatible character encodings: UTF-8 and ISO-8859-1) on line #62 of app/views/layouts/base.rhtml: 59: 60: <div id="content"> 61: <%= render_flash_messages %> 62: <%= yield %> 63: <%= call_hook :view_layouts_base_content %> 64: <div style="clear:both;"></div> 65: </div> app/views/layouts/base.rhtml:62:in `concat' app/views/layouts/base.rhtml:62:in `_run_rhtml_app47views47layouts47base46rhtml' <internal:prelude>:10:in `synchronize' /home/xxxxx/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service' /home/xxxxx/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run' /home/xxxxx/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread' Rendered rescues/_trace (228.3ms) Rendered rescues/_request_and_response (2.0ms) Rendering rescues/layout (internal_server_error)
I apply this patch, then I can run Redmine.
Updated by Etienne Massip over 13 years ago
- Target version set to Candidate for next major release
Updated by Toshi MARUYAMA over 13 years ago
This is additional patch.
Without this patch, I can not input non ASCII characters.
Updated by Toshi MARUYAMA over 13 years ago
- Tracker changed from Patch to Feature
Updated by Toshi MARUYAMA about 13 years ago
Updated by Toshi MARUYAMA about 13 years ago
This is an updating note-13 patch from https://www.chiliproject.org/issues/676
Updated by Etienne Massip almost 13 years ago
- Target version changed from Candidate for next major release to 1.4.0
Updated by Jean-Philippe Lang almost 13 years ago
r8714 breaks tests with ruby 1.9. I'd really like that this fix comes with a test so that we can safely remove it in the future.
Updated by Toshi MARUYAMA almost 13 years ago
Japanese attachment filename is broken on Japanese Windows Ruby 1.9
https://www.chiliproject.org/issues/856
Updated by Jean-Philippe Lang over 12 years ago
- Status changed from New to Closed
- Resolution set to Fixed
I'm closing it as the test suite passes with both 1.9.2 and 1.9.3 (1.9.1 is not supported by Rails):
http://www.redmine.org/builds/index.html
Separate issues should be open if incompatibilities are found.
Updated by Alexander Oryol over 12 years ago
Please, add to related issue #10593