Vote #80112
完了Ruby 2.7 support
0%
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
With ruby 2.7, following tests failed.
<pre>
bin/rails test test/functional/timelog_report_test.rb:262
bin/rails test test/functional/timelog_report_test.rb:308
</pre>
I send a pull request to ruby/csv to fix it.
https://github.com/ruby/csv/pull/111
The pull request is merged but not released yet.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
https://github.com/ruby/csv/pull/111 was merged in November 2019, but it seems that ruby/csv "hasn't yet been updated":https://github.com/ruby/csv/releases since 3.1.2 in October 2019.
--------------------------------------------------------------------------------
ruby/csv 3.1.3 is released with the fix : https://github.com/ruby/csv/releases/tag/v3.1.3
--------------------------------------------------------------------------------
Hi folks,
Ruby 2.7 released almost a year ago. It would be great if useful tools redmine finally became supported at this latest stable version of Ruby.
Could anyone please give an update on the current status of this activity?
--------------------------------------------------------------------------------
Any news about release for 2.7 support (Ubuntu 20.04.1 has it build in)
--------------------------------------------------------------------------------
Since the latest "Ruby 2.7.2":https://www.ruby-lang.org/en/news/2020/10/02/ruby-2-7-2-released/ disables all deprecation warnings by default, I think Redmine can support Ruby 2.7 if it ignores 2.7.0 and 2.7.1.
The reason why Redmine still stays in Ruby 2.6 is that huge numbers of deprecation warnings are displayed while runnning tests. The problem is resolved by the change of Ruby 2.7.2, so I think it is no problem to use Ruby 2.7.2 now.
<pre><code class="diff">
diff --git a/Gemfile b/Gemfile
index 0cfe10e49..24c85b341 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,6 +1,6 @@
source 'https://rubygems.org'
-ruby '>= 2.3.0', '< 2.7.0'
+ruby '>= 2.3.0', '< 2.8.0'
gem 'bundler', '>= 1.12.0'
gem 'rails', '5.2.4.4'
diff --git a/doc/INSTALL b/doc/INSTALL
index f4374dae1..137088290 100644
--- a/doc/INSTALL
+++ b/doc/INSTALL
@@ -7,7 +7,7 @@ http://www.redmine.org/
== Requirements
-* Ruby 2.3, 2.4, 2.5, 2.6
+* Ruby 2.3, 2.4, 2.5, 2.6, 2.7 (except for 2.7.0 and 2.7.1)
* Bundler >= 1.12.0
* A database:
</code></pre>
--------------------------------------------------------------------------------
Redmine supports Ruby 2.7 (excluding 2.7.0 and 2.7.1) after r20150.
--------------------------------------------------------------------------------
If Ruby 2.7 (*excluding* 2.7.0 and 2.7.1) then Redmine *NOT* support Ruby 2.7 version, still Ruby 2.6x
In the Gemfile:
ruby '>= 2.3.0', '< 2.7.0'
To
ruby '>= 2.3.0', '<= 2.7.0'
--------------------------------------------------------------------------------
Enziin System wrote:
> If Ruby 2.7 (*excluding* 2.7.0 and 2.7.1) then Redmine *NOT* support Ruby 2.7 version, still Ruby 2.6x
Although Redmine does not support Ruby 2.7.0 and 2.7.1 but supports 2.7.2 or higher. This is related to the following issues:
* "Feature !#17000: 2.7.2 turns off deprecation warnings by default":https://bugs.ruby-lang.org/issues/17000
* "Feature !#16345: Don't emit deprecation warnings by default.":https://bugs.ruby-lang.org/issues/16345
--------------------------------------------------------------------------------
Ok, thanks!
In the above comment, you said "I think it is no problem to use Ruby 2.7.2 now"
Redmine run passed all tests on Ruby 2.7.2, isn't it?
--------------------------------------------------------------------------------
Enziin System wrote:
> Redmine run passed all tests on Ruby 2.7.2, isn't it?
Yes. Redmine on Ruby 2.7.2 passes all tests without warnings.
--------------------------------------------------------------------------------
Thank you for the patch.
Unfortunately the patch was ready 4 months ago, but it has not been released yet, and will only be released as part of 4.2.0. According to the roadmap, 4.2.0 is at "80% with 42 opened issues":https://www.redmine.org/versions/152. It could still be weeks, if not months, before we see this patch released.
I would like to suggest to consider to make releases *slightly* more often. Last release was almost "1 year ago":https://www.redmine.org/news/128. In fact with 210 issues 4.2.0 is on the biggest version in recent years. What about splitting versions in two to have *approximately* two releases per year ?
So I'd suggest to release the first half of 4.1.0 right now, and postpone what is not ready in the next version.
What do you think ?
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,32527,Fix ruby 2.7 warning: given argument is nil; this will raise a TypeError in the next release
relates,Closed,32542,Fix ruby 2.7 warning: The last argument is used as the keyword parameter
relates,Closed,32752,Ruby 2.7: Remove deprecated URI.escape/unescape
relates,Closed,32906,Update i18n (~> 1.8.2)
relates,Closed,32907,Update capybara (~> 3.31.0)
relates,Closed,33021,[v.4.0.5-stable] Internal Server Error 500 when accessing 'repository' tab
relates,Closed,35135,FrozenError when new LDAP users try to login
relates,Closed,35441,Inline image in Textile is not displayed if the image URL contains ampersands
copied_to,Closed,30118,Ruby 2.6 support