1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

17 commits

Author SHA1 Message Date
Ryuta Kamizono
d5197d59a1 Use native Array#append, Array#prepend, Hash#transform_keys, and Hash#transform_keys!
Since Rails 6 requires Ruby 2.5.

https://github.com/ruby/ruby/blob/ruby_2_5/NEWS

Follow up #34754.
2018-12-20 23:22:46 +09:00
Jeremy Daer
d4eb0dc89e Rails 6 requires Ruby 2.4.1+
Skipping over 2.4.0 to sidestep the `"symbol_from_string".to_sym.dup` bug.

References #32028
2018-02-17 15:34:57 -08:00
Koichi ITO
ac717d65a3 [Active Support] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
Kir Shatrov
72950568dd Use frozen-string-literal in ActiveSupport 2017-07-09 15:08:29 +03:00
Matthew Draper
87b3e226d6 Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
This reverts commit 3420a14590, reversing
changes made to afb66a5a59.
2017-07-02 02:15:17 +09:30
Kir Shatrov
cfade1ec7e Enforce frozen string in Rubocop 2017-07-01 02:11:03 +03:00
Rafael Mendonça França
55f9b8129a
Add three new rubocop rules
Style/SpaceBeforeBlockBraces
Style/SpaceInsideBlockBraces
Style/SpaceInsideHashLiteralBraces

Fix all violations in the repository.
2016-08-16 04:30:11 -03:00
Xavier Noria
411ccbdab2 remove redundant curlies from hash arguments 2016-08-06 19:44:11 +02:00
Xavier Noria
a731125f12 applies new string literal convention in activesupport/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 18:10:53 +02:00
Emily
64ae9a58ae Restore Hash#transform_keys behavior to always return a Hash instance 2016-04-12 10:49:07 +02:00
Kenichi Kamiya
9addcbb00a Return a sized Enumerator from Hash#{transform_values{!}|transform_keys{!}} 2015-09-29 12:31:58 +09:00
Rafael Mendonça França
767cceefd3 Merge pull request #21767 from ronakjangir47/missing_transform_values_test
Added missing tests for transform_values! which returns Enumerator
2015-09-25 23:35:54 -03:00
Ronak Jangir
40f4f8a0c1 Added missing tests for transform_keys! which returns Enumerator without block 2015-09-26 00:31:51 +05:30
Ronak Jangir
3e97bea38a Added missing tests for transform_values! which returns Enumerator without blocks 2015-09-26 00:23:54 +05:30
Erik Michaels-Ober
f0fc49d256 Fix tests broken in https://github.com/rails/rails/pull/16149 2014-07-12 19:05:39 +02:00
Erik Michaels-Ober
f1bad130d0 Return an Enumerator if no block is given 2014-07-12 18:22:43 +02:00
Sean Griffin
b2cf8b251a Add Hash#map_values to ActiveSupport
Didn't get a chance to convert existing code, I'll skim through the code
base to make use of this later this afternoon.
2014-06-29 13:31:43 -06:00