Commit
Skipping over 2.4.0 to sidestep the `"symbol_from_string".to_sym.dup` bug. References #32028
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## Rails 6.0.0.alpha (Unreleased) ## | ||
|
||
* Rails 6 requires Ruby 2.4.1 or newer. | ||
|
||
*Jeremy Daer* | ||
|
||
|
||
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actioncable/CHANGELOG.md) for previous changes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## Rails 6.0.0.alpha (Unreleased) ## | ||
|
||
* Rails 6 requires Ruby 2.4.1 or newer. | ||
|
||
*Jeremy Daer* | ||
|
||
|
||
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actionmailer/CHANGELOG.md) for previous changes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## Rails 6.0.0.alpha (Unreleased) ## | ||
|
||
* Rails 6 requires Ruby 2.4.1 or newer. | ||
|
||
*Jeremy Daer* | ||
|
||
|
||
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actionview/CHANGELOG.md) for previous changes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,15 +144,13 @@ def test_distance_in_words_doesnt_use_the_quotient_operator | |
rubinius_skip "Date is written in Ruby and relies on Fixnum#/" | ||
jruby_skip "Date is written in Ruby and relies on Fixnum#/" | ||
|
||
klass = RUBY_VERSION > "2.4" ? Integer : Fixnum | ||
|
||
# Make sure that we avoid {Integer,Fixnum}#/ (redefined by mathn) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bogdanvlviv
Contributor
|
||
klass.send :private, :/ | ||
Integer.send :private, :/ | ||
|
||
from = Time.utc(2004, 6, 6, 21, 45, 0) | ||
assert_distance_of_time_in_words(from) | ||
ensure | ||
klass.send :public, :/ | ||
Integer.send :public, :/ | ||
end | ||
|
||
def test_time_ago_in_words_passes_include_seconds | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
## Rails 6.0.0.alpha (Unreleased) ## | ||
|
||
* Rails 6 requires Ruby 2.4.1 or newer. | ||
|
||
*Jeremy Daer* | ||
|
||
|
||
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activemodel/CHANGELOG.md) for previous changes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
## Rails 6.0.0.alpha (Unreleased) ## | ||
|
||
* Rails 6 requires Ruby 2.4.1 or newer. | ||
|
||
*Jeremy Daer* | ||
|
||
* Add source code to published npm package | ||
|
||
This allows activestorage users to depend on the javascript source code | ||
rather than the compiled code, which can produce smaller javascript bundles. | ||
|
||
*Richard Macklin* | ||
|
||
|
||
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activestorage/CHANGELOG.md) for previous changes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
* Adds parallel testing to Rails | ||
## Rails 6.0.0.alpha (Unreleased) ## | ||
|
||
Parallelize your test suite with forked processes or threads. | ||
* Rails 6 requires Ruby 2.4.1 or newer. | ||
|
||
*Jeremy Daer* | ||
|
||
* Adds parallel testing to Rails | ||
|
||
Parallelize your test suite with forked processes or threads. | ||
|
||
*Eileen M. Uchitelle*, *Aaron Patterson* | ||
|
||
*Eileen M. Uchitelle*, *Aaron Patterson* | ||
|
||
Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/activesupport/CHANGELOG.md) for previous changes. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
class Hash | ||
# Returns a new hash with the results of running +block+ once for every value. | ||
# The keys are unchanged. | ||
# | ||
# { a: 1, b: 2, c: 3 }.transform_values { |x| x * 2 } # => { a: 2, b: 4, c: 6 } | ||
# | ||
# If you do not provide a +block+, it will return an Enumerator | ||
# for chaining with other methods: | ||
# | ||
# { a: 1, b: 2 }.transform_values.with_index { |v, i| [v, i].join.to_i } # => { a: 10, b: 21 } | ||
def transform_values | ||
return enum_for(:transform_values) { size } unless block_given? | ||
return {} if empty? | ||
result = self.class.new | ||
each do |key, value| | ||
result[key] = yield(value) | ||
end | ||
result | ||
end unless method_defined? :transform_values | ||
require "active_support/deprecation" | ||
|
||
# Destructively converts all values using the +block+ operations. | ||
# Same as +transform_values+ but modifies +self+. | ||
def transform_values! | ||
return enum_for(:transform_values!) { size } unless block_given? | ||
each do |key, value| | ||
self[key] = yield(value) | ||
end | ||
end unless method_defined? :transform_values! | ||
# TODO: Remove this file when supporting only Ruby 2.4+. | ||
end | ||
ActiveSupport::Deprecation.warn "Ruby 2.4+ (required by Rails 6) provides Hash#transform_values natively, so requiring active_support/core_ext/hash/transform_values is no longer necessary. Requiring it will raise LoadError in Rails 6.1." |
2 comments
on commit d4eb0dc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jeremy - it seems that Ruby 2.4.1 has a known memory leak: https://bugs.ruby-lang.org/issues/13772.
I'm happy to submit a PR to change the required Ruby version to 2.4.4
(last from 2.4.x series at the moment), if you think it makes sense.
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's ok! Every release will have one issue or another (possibly severe, even). Rails sets the minimum version to match its Ruby API usage only; it doesn't chase point releases or force apps to upgrade. Apps make this decision on their own schedule.
@jeremy shouldn't this line be removed as well? π