activesupport 5.1.6.2 → 5.1.7.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activesupport might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38bf986e176dd05152abae7d4e1c4e9088ae243ed79dbead4527ee9cb1f5ac27
4
- data.tar.gz: 42df6dbde0456e2cf1130db26bf62fcfef1d4b1b288555b641ad15aadf20c6b8
3
+ metadata.gz: c20b2cac171ae5cbc8b3bec93907c215716726b7b7640854ad685d7b7225d771
4
+ data.tar.gz: 51694bccb38ad3d6bb3575b537ba8d773d5a8f79ad98bc1f64c23d84b0462d98
5
5
  SHA512:
6
- metadata.gz: dc5503a8e7b4c483f4dbd28de836f6422d51d1479e8c6e1e1ef6b2ea47d103cb290302dd1d9f4fae00b584db8898e1e5e55f73bfac90b777628e0adb99a4d298
7
- data.tar.gz: 0ca3b565f75d6051e833033261b5d94a1586ec174d61608bd77f5efb89d6ff7f98a9acfb17256aee6031780684332d40f6a47643b2a002eb086df8878f40df08
6
+ metadata.gz: 0fd5a75e31549eebc71a1d53aec155a9a829960bc5fe8818c249ac128126468a97945f9d1f239d15714cf1c319ec38a2ed8af0b070ccd376ce69209f97509c0f
7
+ data.tar.gz: bcfea855021d961a131e410b6265209fe989d25f7db03289f0d46aef950691f29efbd87ae61e685ff8b7567eb92f23193aa9cbb60f2b27675da82626f5ec49a1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 5.1.7.rc1 (March 22, 2019) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 5.1.6.2 (March 11, 2019) ##
2
7
 
3
8
  * No changes.
@@ -73,11 +73,14 @@ class Hash
73
73
  #
74
74
  # This method is also aliased as +to_param+.
75
75
  def to_query(namespace = nil)
76
- collect do |key, value|
76
+ query = collect do |key, value|
77
77
  unless (value.is_a?(Hash) || value.is_a?(Array)) && value.empty?
78
78
  value.to_query(namespace ? "#{namespace}[#{key}]" : key)
79
79
  end
80
- end.compact.sort! * "&"
80
+ end.compact
81
+
82
+ query.sort! unless namespace.to_s.include?("[]")
83
+ query.join("&")
81
84
  end
82
85
 
83
86
  alias_method :to_param, :to_query
@@ -7,8 +7,8 @@ module ActiveSupport
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
- TINY = 6
11
- PRE = "2"
10
+ TINY = 7
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -90,9 +90,13 @@ module I18n
90
90
  when Hash, Array
91
91
  Array.wrap(fallbacks)
92
92
  else # TrueClass
93
- []
93
+ [I18n.default_locale]
94
94
  end
95
95
 
96
+ if args.empty? || args.first.is_a?(Hash)
97
+ args.unshift I18n.default_locale
98
+ end
99
+
96
100
  I18n.fallbacks = I18n::Locale::Fallbacks.new(*args)
97
101
  end
98
102
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activesupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.6.2
4
+ version: 5.1.7.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -321,8 +321,8 @@ homepage: http://rubyonrails.org
321
321
  licenses:
322
322
  - MIT
323
323
  metadata:
324
- source_code_uri: https://github.com/rails/rails/tree/v5.1.6.2/activesupport
325
- changelog_uri: https://github.com/rails/rails/blob/v5.1.6.2/activesupport/CHANGELOG.md
324
+ source_code_uri: https://github.com/rails/rails/tree/v5.1.7.rc1/activesupport
325
+ changelog_uri: https://github.com/rails/rails/blob/v5.1.7.rc1/activesupport/CHANGELOG.md
326
326
  post_install_message:
327
327
  rdoc_options:
328
328
  - "--encoding"
@@ -336,9 +336,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
336
336
  version: 2.2.2
337
337
  required_rubygems_version: !ruby/object:Gem::Requirement
338
338
  requirements:
339
- - - ">="
339
+ - - ">"
340
340
  - !ruby/object:Gem::Version
341
- version: '0'
341
+ version: 1.3.1
342
342
  requirements: []
343
343
  rubygems_version: 3.0.1
344
344
  signing_key: