activesupport 4.0.5 → 4.0.6.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 +7 -0
- data/CHANGELOG.md +22 -1
- data/lib/active_support/core_ext/hash/deep_merge.rb +22 -11
- data/lib/active_support/core_ext/hash/keys.rb +38 -16
- data/lib/active_support/hash_with_indifferent_access.rb +2 -1
- data/lib/active_support/option_merger.rb +1 -1
- data/lib/active_support/values/time_zone.rb +1 -1
- data/lib/active_support/version.rb +1 -1
- metadata +47 -59
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e3e8f06b33412c6b61e1d65fd4b157454cdc1373
|
4
|
+
data.tar.gz: 553821b04af341159129c9a9f767bdd6855b7783
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4a023beb68673dda9334f5716a77d48334695ca1a577f2504ff4772819929adf7c42f67fdc4a9849c7c0d694e8a82f6449badbc8d148fbdb3a04fcfb03e1028f
|
7
|
+
data.tar.gz: 48fda107ba775b6f1ecb609958d77a1dd01a6c68a702dd7b8e1b9aeb914fa9139916ddd0365bb5011b9933ae7b206898cd57f1242d9d16e9ba5f6c1b79d735ac
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
## Rails 4.0.6 (May 27, 2014) ##
|
2
|
+
|
3
|
+
* `Hash#deep_transform_keys` and `Hash#deep_transform_keys!` now transform hashes
|
4
|
+
in nested arrays. This change also applies to `Hash#deep_stringify_keys`,
|
5
|
+
`Hash#deep_stringify_keys!`, `Hash#deep_symbolize_keys` and
|
6
|
+
`Hash#deep_symbolize_keys!`.
|
7
|
+
|
8
|
+
*OZAWA Sakuro*
|
9
|
+
|
10
|
+
* `HashWithIndifferentAccess` better respects `#to_hash` on objects it's
|
11
|
+
given. In particular `#update`, `#merge`, `#replace` all accept objects
|
12
|
+
which respond to `#to_hash`, even if those objects are not Hashes directly.
|
13
|
+
|
14
|
+
Currently, if `HashWithIndifferentAccess.new` is given a non-Hash (even if
|
15
|
+
it responds to `#to_hash`) that object is treated as the default value,
|
16
|
+
rather than the initial keys and value. Changing that could break existing
|
17
|
+
code, so it will be updated in 4.2.
|
18
|
+
|
19
|
+
*Peter Jaros*
|
20
|
+
|
21
|
+
|
1
22
|
## Rails 4.0.5 (May 6, 2014) ##
|
2
23
|
|
3
24
|
*No changes*
|
@@ -12,7 +33,7 @@
|
|
12
33
|
|
13
34
|
*Birkir A. Barkarson*
|
14
35
|
|
15
|
-
* Re-enable support for iterating over `
|
36
|
+
* Re-enable support for iterating over `DateTime` ranges
|
16
37
|
|
17
38
|
Fixes #13667.
|
18
39
|
|
@@ -1,27 +1,38 @@
|
|
1
1
|
class Hash
|
2
2
|
# Returns a new hash with +self+ and +other_hash+ merged recursively.
|
3
3
|
#
|
4
|
-
# h1 = {
|
5
|
-
# h2 = {
|
4
|
+
# h1 = { a: true, b: { c: [1, 2, 3] } }
|
5
|
+
# h2 = { a: false, b: { x: [3, 4, 5] } }
|
6
6
|
#
|
7
|
-
# h1.deep_merge(h2) #=> {
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
7
|
+
# h1.deep_merge(h2) #=> { a: false, b: { c: [1, 2, 3], x: [3, 4, 5] } }
|
8
|
+
#
|
9
|
+
# Like with Hash#merge in the standard library, a block can be provided
|
10
|
+
# to merge values:
|
11
|
+
#
|
12
|
+
# h1 = { a: 100, b: 200, c: { c1: 100 } }
|
13
|
+
# h2 = { b: 250, c: { c1: 200 } }
|
14
|
+
# h1.deep_merge(h2) { |key, this_val, other_val| this_val + other_val }
|
15
|
+
# # => { a: 100, b: 450, c: { c1: 300 } }
|
11
16
|
def deep_merge(other_hash, &block)
|
12
17
|
dup.deep_merge!(other_hash, &block)
|
13
18
|
end
|
14
19
|
|
15
20
|
# Same as +deep_merge+, but modifies +self+.
|
16
21
|
def deep_merge!(other_hash, &block)
|
17
|
-
other_hash.each_pair do |
|
18
|
-
|
19
|
-
|
20
|
-
|
22
|
+
other_hash.each_pair do |current_key, other_value|
|
23
|
+
this_value = self[current_key]
|
24
|
+
|
25
|
+
self[current_key] = if this_value.is_a?(Hash) && other_value.is_a?(Hash)
|
26
|
+
this_value.deep_merge(other_value, &block)
|
21
27
|
else
|
22
|
-
|
28
|
+
if block_given? && key?(current_key)
|
29
|
+
block.call(current_key, this_value, other_value)
|
30
|
+
else
|
31
|
+
other_value
|
32
|
+
end
|
23
33
|
end
|
24
34
|
end
|
35
|
+
|
25
36
|
self
|
26
37
|
end
|
27
38
|
end
|
@@ -73,34 +73,26 @@ class Hash
|
|
73
73
|
|
74
74
|
# Return a new hash with all keys converted by the block operation.
|
75
75
|
# This includes the keys from the root hash and from all
|
76
|
-
# nested hashes.
|
76
|
+
# nested hashes and arrays.
|
77
77
|
#
|
78
78
|
# hash = { person: { name: 'Rob', age: '28' } }
|
79
79
|
#
|
80
80
|
# hash.deep_transform_keys{ |key| key.to_s.upcase }
|
81
81
|
# # => { "PERSON" => { "NAME" => "Rob", "AGE" => "28" } }
|
82
82
|
def deep_transform_keys(&block)
|
83
|
-
|
84
|
-
each do |key, value|
|
85
|
-
result[yield(key)] = value.is_a?(Hash) ? value.deep_transform_keys(&block) : value
|
86
|
-
end
|
87
|
-
result
|
83
|
+
_deep_transform_keys_in_object(self, &block)
|
88
84
|
end
|
89
85
|
|
90
86
|
# Destructively convert all keys by using the block operation.
|
91
87
|
# This includes the keys from the root hash and from all
|
92
|
-
# nested hashes.
|
88
|
+
# nested hashes and arrays.
|
93
89
|
def deep_transform_keys!(&block)
|
94
|
-
|
95
|
-
value = delete(key)
|
96
|
-
self[yield(key)] = value.is_a?(Hash) ? value.deep_transform_keys!(&block) : value
|
97
|
-
end
|
98
|
-
self
|
90
|
+
_deep_transform_keys_in_object!(self, &block)
|
99
91
|
end
|
100
92
|
|
101
93
|
# Return a new hash with all keys converted to strings.
|
102
94
|
# This includes the keys from the root hash and from all
|
103
|
-
# nested hashes.
|
95
|
+
# nested hashes and arrays.
|
104
96
|
#
|
105
97
|
# hash = { person: { name: 'Rob', age: '28' } }
|
106
98
|
#
|
@@ -112,14 +104,14 @@ class Hash
|
|
112
104
|
|
113
105
|
# Destructively convert all keys to strings.
|
114
106
|
# This includes the keys from the root hash and from all
|
115
|
-
# nested hashes.
|
107
|
+
# nested hashes and arrays.
|
116
108
|
def deep_stringify_keys!
|
117
109
|
deep_transform_keys!{ |key| key.to_s }
|
118
110
|
end
|
119
111
|
|
120
112
|
# Return a new hash with all keys converted to symbols, as long as
|
121
113
|
# they respond to +to_sym+. This includes the keys from the root hash
|
122
|
-
# and from all nested hashes.
|
114
|
+
# and from all nested hashes and arrays.
|
123
115
|
#
|
124
116
|
# hash = { 'person' => { 'name' => 'Rob', 'age' => '28' } }
|
125
117
|
#
|
@@ -131,8 +123,38 @@ class Hash
|
|
131
123
|
|
132
124
|
# Destructively convert all keys to symbols, as long as they respond
|
133
125
|
# to +to_sym+. This includes the keys from the root hash and from all
|
134
|
-
# nested hashes.
|
126
|
+
# nested hashes and arrays.
|
135
127
|
def deep_symbolize_keys!
|
136
128
|
deep_transform_keys!{ |key| key.to_sym rescue key }
|
137
129
|
end
|
130
|
+
|
131
|
+
private
|
132
|
+
# support methods for deep transforming nested hashes and arrays
|
133
|
+
def _deep_transform_keys_in_object(object, &block)
|
134
|
+
case object
|
135
|
+
when Hash
|
136
|
+
object.each_with_object({}) do |(key, value), result|
|
137
|
+
result[yield(key)] = _deep_transform_keys_in_object(value, &block)
|
138
|
+
end
|
139
|
+
when Array
|
140
|
+
object.map {|e| _deep_transform_keys_in_object(e, &block) }
|
141
|
+
else
|
142
|
+
object
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
def _deep_transform_keys_in_object!(object, &block)
|
147
|
+
case object
|
148
|
+
when Hash
|
149
|
+
object.keys.each do |key|
|
150
|
+
value = object.delete(key)
|
151
|
+
object[yield(key)] = _deep_transform_keys_in_object!(value, &block)
|
152
|
+
end
|
153
|
+
object
|
154
|
+
when Array
|
155
|
+
object.map! {|e| _deep_transform_keys_in_object!(e, &block)}
|
156
|
+
else
|
157
|
+
object
|
158
|
+
end
|
159
|
+
end
|
138
160
|
end
|
@@ -72,6 +72,7 @@ module ActiveSupport
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def self.new_from_hash_copying_default(hash)
|
75
|
+
hash = hash.to_hash
|
75
76
|
new(hash).tap do |new_hash|
|
76
77
|
new_hash.default = hash.default
|
77
78
|
end
|
@@ -125,7 +126,7 @@ module ActiveSupport
|
|
125
126
|
if other_hash.is_a? HashWithIndifferentAccess
|
126
127
|
super(other_hash)
|
127
128
|
else
|
128
|
-
other_hash.each_pair do |key, value|
|
129
|
+
other_hash.to_hash.each_pair do |key, value|
|
129
130
|
if block_given? && key?(key)
|
130
131
|
value = yield(convert_key(key), self[key], value)
|
131
132
|
end
|
@@ -280,7 +280,7 @@ module ActiveSupport
|
|
280
280
|
#
|
281
281
|
# Time.zone.now # => Fri, 31 Dec 1999 14:00:00 HST -10:00
|
282
282
|
# Time.zone.parse('22:30:00') # => Fri, 31 Dec 1999 22:30:00 HST -10:00
|
283
|
-
def parse(str, now=now)
|
283
|
+
def parse(str, now=now())
|
284
284
|
parts = Date._parse(str, false)
|
285
285
|
return if parts.empty?
|
286
286
|
|
metadata
CHANGED
@@ -1,100 +1,89 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
5
|
-
prerelease:
|
4
|
+
version: 4.0.6.rc1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Heinemeier Hansson
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: i18n
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0.6'
|
22
|
-
- -
|
20
|
+
- - ">="
|
23
21
|
- !ruby/object:Gem::Version
|
24
22
|
version: 0.6.9
|
25
23
|
type: :runtime
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
|
-
- - ~>
|
27
|
+
- - "~>"
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: '0.6'
|
33
|
-
- -
|
30
|
+
- - ">="
|
34
31
|
- !ruby/object:Gem::Version
|
35
32
|
version: 0.6.9
|
36
33
|
- !ruby/object:Gem::Dependency
|
37
34
|
name: multi_json
|
38
35
|
requirement: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
36
|
requirements:
|
41
|
-
- - ~>
|
37
|
+
- - "~>"
|
42
38
|
- !ruby/object:Gem::Version
|
43
39
|
version: '1.3'
|
44
40
|
type: :runtime
|
45
41
|
prerelease: false
|
46
42
|
version_requirements: !ruby/object:Gem::Requirement
|
47
|
-
none: false
|
48
43
|
requirements:
|
49
|
-
- - ~>
|
44
|
+
- - "~>"
|
50
45
|
- !ruby/object:Gem::Version
|
51
46
|
version: '1.3'
|
52
47
|
- !ruby/object:Gem::Dependency
|
53
48
|
name: tzinfo
|
54
49
|
requirement: !ruby/object:Gem::Requirement
|
55
|
-
none: false
|
56
50
|
requirements:
|
57
|
-
- - ~>
|
51
|
+
- - "~>"
|
58
52
|
- !ruby/object:Gem::Version
|
59
53
|
version: 0.3.37
|
60
54
|
type: :runtime
|
61
55
|
prerelease: false
|
62
56
|
version_requirements: !ruby/object:Gem::Requirement
|
63
|
-
none: false
|
64
57
|
requirements:
|
65
|
-
- - ~>
|
58
|
+
- - "~>"
|
66
59
|
- !ruby/object:Gem::Version
|
67
60
|
version: 0.3.37
|
68
61
|
- !ruby/object:Gem::Dependency
|
69
62
|
name: minitest
|
70
63
|
requirement: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
64
|
requirements:
|
73
|
-
- - ~>
|
65
|
+
- - "~>"
|
74
66
|
- !ruby/object:Gem::Version
|
75
67
|
version: '4.2'
|
76
68
|
type: :runtime
|
77
69
|
prerelease: false
|
78
70
|
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
71
|
requirements:
|
81
|
-
- - ~>
|
72
|
+
- - "~>"
|
82
73
|
- !ruby/object:Gem::Version
|
83
74
|
version: '4.2'
|
84
75
|
- !ruby/object:Gem::Dependency
|
85
76
|
name: thread_safe
|
86
77
|
requirement: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
78
|
requirements:
|
89
|
-
- - ~>
|
79
|
+
- - "~>"
|
90
80
|
- !ruby/object:Gem::Version
|
91
81
|
version: '0.1'
|
92
82
|
type: :runtime
|
93
83
|
prerelease: false
|
94
84
|
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
85
|
requirements:
|
97
|
-
- - ~>
|
86
|
+
- - "~>"
|
98
87
|
- !ruby/object:Gem::Version
|
99
88
|
version: '0.1'
|
100
89
|
description: A toolkit of support libraries and Ruby core extensions extracted from
|
@@ -108,22 +97,25 @@ files:
|
|
108
97
|
- CHANGELOG.md
|
109
98
|
- MIT-LICENSE
|
110
99
|
- README.rdoc
|
100
|
+
- lib/active_support.rb
|
111
101
|
- lib/active_support/all.rb
|
112
102
|
- lib/active_support/backtrace_cleaner.rb
|
113
103
|
- lib/active_support/basic_object.rb
|
114
104
|
- lib/active_support/benchmarkable.rb
|
115
105
|
- lib/active_support/buffered_logger.rb
|
116
106
|
- lib/active_support/builder.rb
|
107
|
+
- lib/active_support/cache.rb
|
117
108
|
- lib/active_support/cache/file_store.rb
|
118
109
|
- lib/active_support/cache/mem_cache_store.rb
|
119
110
|
- lib/active_support/cache/memory_store.rb
|
120
111
|
- lib/active_support/cache/null_store.rb
|
121
112
|
- lib/active_support/cache/strategy/local_cache.rb
|
122
|
-
- lib/active_support/cache.rb
|
123
113
|
- lib/active_support/callbacks.rb
|
124
114
|
- lib/active_support/concern.rb
|
125
115
|
- lib/active_support/concurrency/latch.rb
|
126
116
|
- lib/active_support/configurable.rb
|
117
|
+
- lib/active_support/core_ext.rb
|
118
|
+
- lib/active_support/core_ext/array.rb
|
127
119
|
- lib/active_support/core_ext/array/access.rb
|
128
120
|
- lib/active_support/core_ext/array/conversions.rb
|
129
121
|
- lib/active_support/core_ext/array/extract_options.rb
|
@@ -131,29 +123,29 @@ files:
|
|
131
123
|
- lib/active_support/core_ext/array/prepend_and_append.rb
|
132
124
|
- lib/active_support/core_ext/array/uniq_by.rb
|
133
125
|
- lib/active_support/core_ext/array/wrap.rb
|
134
|
-
- lib/active_support/core_ext/array.rb
|
135
126
|
- lib/active_support/core_ext/benchmark.rb
|
136
|
-
- lib/active_support/core_ext/big_decimal/conversions.rb
|
137
127
|
- lib/active_support/core_ext/big_decimal.rb
|
128
|
+
- lib/active_support/core_ext/big_decimal/conversions.rb
|
129
|
+
- lib/active_support/core_ext/class.rb
|
138
130
|
- lib/active_support/core_ext/class/attribute.rb
|
139
131
|
- lib/active_support/core_ext/class/attribute_accessors.rb
|
140
132
|
- lib/active_support/core_ext/class/delegating_attributes.rb
|
141
133
|
- lib/active_support/core_ext/class/subclasses.rb
|
142
|
-
- lib/active_support/core_ext/
|
134
|
+
- lib/active_support/core_ext/date.rb
|
143
135
|
- lib/active_support/core_ext/date/acts_like.rb
|
144
136
|
- lib/active_support/core_ext/date/calculations.rb
|
145
137
|
- lib/active_support/core_ext/date/conversions.rb
|
146
138
|
- lib/active_support/core_ext/date/zones.rb
|
147
|
-
- lib/active_support/core_ext/date.rb
|
148
139
|
- lib/active_support/core_ext/date_and_time/calculations.rb
|
140
|
+
- lib/active_support/core_ext/date_time.rb
|
149
141
|
- lib/active_support/core_ext/date_time/acts_like.rb
|
150
142
|
- lib/active_support/core_ext/date_time/calculations.rb
|
151
143
|
- lib/active_support/core_ext/date_time/conversions.rb
|
152
144
|
- lib/active_support/core_ext/date_time/zones.rb
|
153
|
-
- lib/active_support/core_ext/date_time.rb
|
154
145
|
- lib/active_support/core_ext/enumerable.rb
|
155
|
-
- lib/active_support/core_ext/file/atomic.rb
|
156
146
|
- lib/active_support/core_ext/file.rb
|
147
|
+
- lib/active_support/core_ext/file/atomic.rb
|
148
|
+
- lib/active_support/core_ext/hash.rb
|
157
149
|
- lib/active_support/core_ext/hash/conversions.rb
|
158
150
|
- lib/active_support/core_ext/hash/deep_merge.rb
|
159
151
|
- lib/active_support/core_ext/hash/diff.rb
|
@@ -162,19 +154,19 @@ files:
|
|
162
154
|
- lib/active_support/core_ext/hash/keys.rb
|
163
155
|
- lib/active_support/core_ext/hash/reverse_merge.rb
|
164
156
|
- lib/active_support/core_ext/hash/slice.rb
|
165
|
-
- lib/active_support/core_ext/
|
157
|
+
- lib/active_support/core_ext/integer.rb
|
166
158
|
- lib/active_support/core_ext/integer/inflections.rb
|
167
159
|
- lib/active_support/core_ext/integer/multiple.rb
|
168
160
|
- lib/active_support/core_ext/integer/time.rb
|
169
|
-
- lib/active_support/core_ext/
|
161
|
+
- lib/active_support/core_ext/kernel.rb
|
170
162
|
- lib/active_support/core_ext/kernel/agnostics.rb
|
171
163
|
- lib/active_support/core_ext/kernel/debugger.rb
|
172
164
|
- lib/active_support/core_ext/kernel/reporting.rb
|
173
165
|
- lib/active_support/core_ext/kernel/singleton_class.rb
|
174
|
-
- lib/active_support/core_ext/kernel.rb
|
175
166
|
- lib/active_support/core_ext/load_error.rb
|
176
167
|
- lib/active_support/core_ext/logger.rb
|
177
168
|
- lib/active_support/core_ext/marshal.rb
|
169
|
+
- lib/active_support/core_ext/module.rb
|
178
170
|
- lib/active_support/core_ext/module/aliasing.rb
|
179
171
|
- lib/active_support/core_ext/module/anonymous.rb
|
180
172
|
- lib/active_support/core_ext/module/attr_internal.rb
|
@@ -185,12 +177,12 @@ files:
|
|
185
177
|
- lib/active_support/core_ext/module/qualified_const.rb
|
186
178
|
- lib/active_support/core_ext/module/reachable.rb
|
187
179
|
- lib/active_support/core_ext/module/remove_method.rb
|
188
|
-
- lib/active_support/core_ext/module.rb
|
189
180
|
- lib/active_support/core_ext/name_error.rb
|
181
|
+
- lib/active_support/core_ext/numeric.rb
|
190
182
|
- lib/active_support/core_ext/numeric/bytes.rb
|
191
183
|
- lib/active_support/core_ext/numeric/conversions.rb
|
192
184
|
- lib/active_support/core_ext/numeric/time.rb
|
193
|
-
- lib/active_support/core_ext/
|
185
|
+
- lib/active_support/core_ext/object.rb
|
194
186
|
- lib/active_support/core_ext/object/acts_like.rb
|
195
187
|
- lib/active_support/core_ext/object/blank.rb
|
196
188
|
- lib/active_support/core_ext/object/conversions.rb
|
@@ -203,14 +195,14 @@ files:
|
|
203
195
|
- lib/active_support/core_ext/object/to_query.rb
|
204
196
|
- lib/active_support/core_ext/object/try.rb
|
205
197
|
- lib/active_support/core_ext/object/with_options.rb
|
206
|
-
- lib/active_support/core_ext/object.rb
|
207
198
|
- lib/active_support/core_ext/proc.rb
|
199
|
+
- lib/active_support/core_ext/range.rb
|
208
200
|
- lib/active_support/core_ext/range/conversions.rb
|
209
201
|
- lib/active_support/core_ext/range/each.rb
|
210
202
|
- lib/active_support/core_ext/range/include_range.rb
|
211
203
|
- lib/active_support/core_ext/range/overlaps.rb
|
212
|
-
- lib/active_support/core_ext/range.rb
|
213
204
|
- lib/active_support/core_ext/regexp.rb
|
205
|
+
- lib/active_support/core_ext/string.rb
|
214
206
|
- lib/active_support/core_ext/string/access.rb
|
215
207
|
- lib/active_support/core_ext/string/behavior.rb
|
216
208
|
- lib/active_support/core_ext/string/conversions.rb
|
@@ -225,25 +217,23 @@ files:
|
|
225
217
|
- lib/active_support/core_ext/string/starts_ends_with.rb
|
226
218
|
- lib/active_support/core_ext/string/strip.rb
|
227
219
|
- lib/active_support/core_ext/string/zones.rb
|
228
|
-
- lib/active_support/core_ext/string.rb
|
229
220
|
- lib/active_support/core_ext/struct.rb
|
230
221
|
- lib/active_support/core_ext/thread.rb
|
222
|
+
- lib/active_support/core_ext/time.rb
|
231
223
|
- lib/active_support/core_ext/time/acts_like.rb
|
232
224
|
- lib/active_support/core_ext/time/calculations.rb
|
233
225
|
- lib/active_support/core_ext/time/conversions.rb
|
234
226
|
- lib/active_support/core_ext/time/marshal.rb
|
235
227
|
- lib/active_support/core_ext/time/zones.rb
|
236
|
-
- lib/active_support/core_ext/time.rb
|
237
228
|
- lib/active_support/core_ext/uri.rb
|
238
|
-
- lib/active_support/core_ext.rb
|
239
|
-
- lib/active_support/dependencies/autoload.rb
|
240
229
|
- lib/active_support/dependencies.rb
|
230
|
+
- lib/active_support/dependencies/autoload.rb
|
231
|
+
- lib/active_support/deprecation.rb
|
241
232
|
- lib/active_support/deprecation/behaviors.rb
|
242
233
|
- lib/active_support/deprecation/instance_delegator.rb
|
243
234
|
- lib/active_support/deprecation/method_wrappers.rb
|
244
235
|
- lib/active_support/deprecation/proxy_wrappers.rb
|
245
236
|
- lib/active_support/deprecation/reporting.rb
|
246
|
-
- lib/active_support/deprecation.rb
|
247
237
|
- lib/active_support/descendants_tracker.rb
|
248
238
|
- lib/active_support/duration.rb
|
249
239
|
- lib/active_support/file_update_checker.rb
|
@@ -253,29 +243,29 @@ files:
|
|
253
243
|
- lib/active_support/i18n.rb
|
254
244
|
- lib/active_support/i18n_railtie.rb
|
255
245
|
- lib/active_support/inflections.rb
|
246
|
+
- lib/active_support/inflector.rb
|
256
247
|
- lib/active_support/inflector/inflections.rb
|
257
248
|
- lib/active_support/inflector/methods.rb
|
258
249
|
- lib/active_support/inflector/transliterate.rb
|
259
|
-
- lib/active_support/
|
250
|
+
- lib/active_support/json.rb
|
260
251
|
- lib/active_support/json/decoding.rb
|
261
252
|
- lib/active_support/json/encoding.rb
|
262
253
|
- lib/active_support/json/variable.rb
|
263
|
-
- lib/active_support/json.rb
|
264
254
|
- lib/active_support/key_generator.rb
|
265
255
|
- lib/active_support/lazy_load_hooks.rb
|
266
256
|
- lib/active_support/locale/en.yml
|
267
|
-
- lib/active_support/log_subscriber/test_helper.rb
|
268
257
|
- lib/active_support/log_subscriber.rb
|
258
|
+
- lib/active_support/log_subscriber/test_helper.rb
|
269
259
|
- lib/active_support/logger.rb
|
270
260
|
- lib/active_support/logger_silence.rb
|
271
261
|
- lib/active_support/message_encryptor.rb
|
272
262
|
- lib/active_support/message_verifier.rb
|
263
|
+
- lib/active_support/multibyte.rb
|
273
264
|
- lib/active_support/multibyte/chars.rb
|
274
265
|
- lib/active_support/multibyte/unicode.rb
|
275
|
-
- lib/active_support/
|
266
|
+
- lib/active_support/notifications.rb
|
276
267
|
- lib/active_support/notifications/fanout.rb
|
277
268
|
- lib/active_support/notifications/instrumenter.rb
|
278
|
-
- lib/active_support/notifications.rb
|
279
269
|
- lib/active_support/number_helper.rb
|
280
270
|
- lib/active_support/option_merger.rb
|
281
271
|
- lib/active_support/ordered_hash.rb
|
@@ -303,40 +293,38 @@ files:
|
|
303
293
|
- lib/active_support/values/time_zone.rb
|
304
294
|
- lib/active_support/values/unicode_tables.dat
|
305
295
|
- lib/active_support/version.rb
|
296
|
+
- lib/active_support/xml_mini.rb
|
306
297
|
- lib/active_support/xml_mini/jdom.rb
|
307
298
|
- lib/active_support/xml_mini/libxml.rb
|
308
299
|
- lib/active_support/xml_mini/libxmlsax.rb
|
309
300
|
- lib/active_support/xml_mini/nokogiri.rb
|
310
301
|
- lib/active_support/xml_mini/nokogirisax.rb
|
311
302
|
- lib/active_support/xml_mini/rexml.rb
|
312
|
-
- lib/active_support/xml_mini.rb
|
313
|
-
- lib/active_support.rb
|
314
303
|
homepage: http://www.rubyonrails.org
|
315
304
|
licenses:
|
316
305
|
- MIT
|
306
|
+
metadata: {}
|
317
307
|
post_install_message:
|
318
308
|
rdoc_options:
|
319
|
-
- --encoding
|
309
|
+
- "--encoding"
|
320
310
|
- UTF-8
|
321
311
|
require_paths:
|
322
312
|
- lib
|
323
313
|
required_ruby_version: !ruby/object:Gem::Requirement
|
324
|
-
none: false
|
325
314
|
requirements:
|
326
|
-
- -
|
315
|
+
- - ">="
|
327
316
|
- !ruby/object:Gem::Version
|
328
317
|
version: 1.9.3
|
329
318
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
330
|
-
none: false
|
331
319
|
requirements:
|
332
|
-
- -
|
320
|
+
- - ">"
|
333
321
|
- !ruby/object:Gem::Version
|
334
|
-
version:
|
322
|
+
version: 1.3.1
|
335
323
|
requirements: []
|
336
324
|
rubyforge_project:
|
337
|
-
rubygems_version:
|
325
|
+
rubygems_version: 2.2.2
|
338
326
|
signing_key:
|
339
|
-
specification_version:
|
327
|
+
specification_version: 4
|
340
328
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|
341
329
|
Rails framework.
|
342
330
|
test_files: []
|