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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c20b2cac171ae5cbc8b3bec93907c215716726b7b7640854ad685d7b7225d771
|
4
|
+
data.tar.gz: 51694bccb38ad3d6bb3575b537ba8d773d5a8f79ad98bc1f64c23d84b0462d98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fd5a75e31549eebc71a1d53aec155a9a829960bc5fe8818c249ac128126468a97945f9d1f239d15714cf1c319ec38a2ed8af0b070ccd376ce69209f97509c0f
|
7
|
+
data.tar.gz: bcfea855021d961a131e410b6265209fe989d25f7db03289f0d46aef950691f29efbd87ae61e685ff8b7567eb92f23193aa9cbb60f2b27675da82626f5ec49a1
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
@@ -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.
|
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-
|
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.
|
325
|
-
changelog_uri: https://github.com/rails/rails/blob/v5.1.
|
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:
|
341
|
+
version: 1.3.1
|
342
342
|
requirements: []
|
343
343
|
rubygems_version: 3.0.1
|
344
344
|
signing_key:
|