hashie 3.5.6 → 3.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/README.md +1 -1
- data/lib/hashie/mash.rb +1 -1
- data/lib/hashie/rash.rb +1 -1
- data/lib/hashie/version.rb +1 -1
- data/spec/hashie/rash_spec.rb +6 -0
- metadata +32 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b7463c46397ff888a6fa1794dda68695b8e5f78
|
4
|
+
data.tar.gz: 407d19363def156021e44da618365cf8657dc94e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c8f87a18cf129c5f4d31e38a3196db8503f6b752ded005734f2f42bb9a79a967aa564c0a63f939d6544de454976fc2d8fa05e43b4bc171b7a05169e6a275a68
|
7
|
+
data.tar.gz: c5934315223ca60ee7cb878fe1ace02967fb6a53c949cfa78f1a4be29a7c7b20255831e949ae404ce0b0449fbd9a83323f01693ac1dfe809f437f4053f3db2da
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,18 @@ scheme are considered to be bugs.
|
|
6
6
|
|
7
7
|
[semver]: http://semver.org/spec/v2.0.0.html
|
8
8
|
|
9
|
+
## [3.5.7] - 2017-12-19
|
10
|
+
|
11
|
+
[3.5.7]: https://github.com/intridea/hashie/compare/v3.5.6...v3.5.7
|
12
|
+
|
13
|
+
### Fixed
|
14
|
+
|
15
|
+
[#430](https://github.com/intridea/hashie/pull/430): Fix Hashie::Rash randomly losing items - [@Antti](https://github.com/Antti)
|
16
|
+
|
17
|
+
### Miscellaneous
|
18
|
+
|
19
|
+
* [#425](https://github.com/intridea/hashie/pull/425): Update rubies in CI - [@kachick](https://github.com/kachick).
|
20
|
+
|
9
21
|
## [3.5.6] - 2017-07-12
|
10
22
|
|
11
23
|
[3.5.6]: https://github.com/intridea/hashie/compare/v3.5.5...v3.5.6
|
@@ -13,7 +25,6 @@ scheme are considered to be bugs.
|
|
13
25
|
### Miscellaneous
|
14
26
|
|
15
27
|
* [#416](https://github.com/intridea/hashie/pull/416): Fix `warning: instance variable @disable_warnings not initialized` - [@axfcampos](https://github.com/axfcampos).
|
16
|
-
* Your contribution here.
|
17
28
|
|
18
29
|
## [3.5.5] - 2017-02-24
|
19
30
|
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ $ gem install hashie
|
|
20
20
|
|
21
21
|
## Upgrading
|
22
22
|
|
23
|
-
You're reading the documentation for the stable release of Hashie, 3.5.
|
23
|
+
You're reading the documentation for the stable release of Hashie, 3.5.7. Please read [UPGRADING](UPGRADING.md) when upgrading from a previous version.
|
24
24
|
|
25
25
|
## Hash Extensions
|
26
26
|
|
data/lib/hashie/mash.rb
CHANGED
@@ -344,7 +344,7 @@ module Hashie
|
|
344
344
|
Hashie.logger.warn(
|
345
345
|
'You are setting a key that conflicts with a built-in method ' \
|
346
346
|
"#{self.class}##{method_key} #{method_information}. " \
|
347
|
-
'This can cause unexpected behavior when accessing the key
|
347
|
+
'This can cause unexpected behavior when accessing the key as a ' \
|
348
348
|
'property. You can still access the key via the #[] method.'
|
349
349
|
)
|
350
350
|
end
|
data/lib/hashie/rash.rb
CHANGED
@@ -136,7 +136,7 @@ module Hashie
|
|
136
136
|
|
137
137
|
def optimize_if_necessary!
|
138
138
|
return unless (@lookups += 1) >= @optimize_every
|
139
|
-
@regexes = @
|
139
|
+
@regexes = @regexes.sort_by { |regex| -@regex_counts[regex] }
|
140
140
|
@lookups = 0
|
141
141
|
end
|
142
142
|
end
|
data/lib/hashie/version.rb
CHANGED
data/spec/hashie/rash_spec.rb
CHANGED
@@ -74,4 +74,10 @@ describe Hashie::Rash do
|
|
74
74
|
expect(subject.respond_to?(:to_a)).to be true
|
75
75
|
expect(subject.methods).to_not include(:to_a)
|
76
76
|
end
|
77
|
+
|
78
|
+
it 'does not lose keys' do
|
79
|
+
subject.optimize_every = 1
|
80
|
+
expect(subject['hello']).to eq('hello')
|
81
|
+
expect(subject['world']).to eq('world')
|
82
|
+
end
|
77
83
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hashie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -169,52 +169,52 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
171
|
rubyforge_project:
|
172
|
-
rubygems_version: 2.6.
|
172
|
+
rubygems_version: 2.6.13
|
173
173
|
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Your friendly neighborhood hash library.
|
176
176
|
test_files:
|
177
|
+
- spec/hashie/parsers/yaml_erb_parser_spec.rb
|
177
178
|
- spec/hashie/array_spec.rb
|
179
|
+
- spec/hashie/hash_spec.rb
|
180
|
+
- spec/hashie/version_spec.rb
|
178
181
|
- spec/hashie/clash_spec.rb
|
179
|
-
- spec/hashie/
|
180
|
-
- spec/hashie/extensions/
|
182
|
+
- spec/hashie/mash_spec.rb
|
183
|
+
- spec/hashie/extensions/stringify_keys_spec.rb
|
184
|
+
- spec/hashie/extensions/deep_locate_spec.rb
|
181
185
|
- spec/hashie/extensions/coercion_spec.rb
|
182
|
-
- spec/hashie/extensions/
|
183
|
-
- spec/hashie/extensions/
|
186
|
+
- spec/hashie/extensions/mash/safe_assignment_spec.rb
|
187
|
+
- spec/hashie/extensions/mash/symbolize_keys_spec.rb
|
188
|
+
- spec/hashie/extensions/mash/keep_original_keys_spec.rb
|
189
|
+
- spec/hashie/extensions/key_conversion_spec.rb
|
190
|
+
- spec/hashie/extensions/ignore_undeclared_spec.rb
|
191
|
+
- spec/hashie/extensions/autoload_spec.rb
|
192
|
+
- spec/hashie/extensions/strict_key_access_spec.rb
|
184
193
|
- spec/hashie/extensions/deep_fetch_spec.rb
|
194
|
+
- spec/hashie/extensions/method_access_spec.rb
|
185
195
|
- spec/hashie/extensions/deep_find_spec.rb
|
186
|
-
- spec/hashie/extensions/deep_locate_spec.rb
|
187
196
|
- spec/hashie/extensions/deep_merge_spec.rb
|
188
|
-
- spec/hashie/extensions/ignore_undeclared_spec.rb
|
189
|
-
- spec/hashie/extensions/indifferent_access_spec.rb
|
190
|
-
- spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb
|
191
|
-
- spec/hashie/extensions/key_conversion_spec.rb
|
192
|
-
- spec/hashie/extensions/mash/keep_original_keys_spec.rb
|
193
|
-
- spec/hashie/extensions/mash/safe_assignment_spec.rb
|
194
|
-
- spec/hashie/extensions/mash/symbolize_keys_spec.rb
|
195
197
|
- spec/hashie/extensions/merge_initializer_spec.rb
|
196
|
-
- spec/hashie/extensions/
|
197
|
-
- spec/hashie/extensions/
|
198
|
-
- spec/hashie/extensions/
|
198
|
+
- spec/hashie/extensions/indifferent_access_with_rails_hwia_spec.rb
|
199
|
+
- spec/hashie/extensions/dash/coercion_spec.rb
|
200
|
+
- spec/hashie/extensions/dash/indifferent_access_spec.rb
|
199
201
|
- spec/hashie/extensions/symbolize_keys_spec.rb
|
200
|
-
- spec/hashie/
|
201
|
-
- spec/hashie/mash_spec.rb
|
202
|
-
- spec/hashie/parsers/yaml_erb_parser_spec.rb
|
202
|
+
- spec/hashie/extensions/indifferent_access_spec.rb
|
203
203
|
- spec/hashie/rash_spec.rb
|
204
|
-
- spec/hashie/trash_spec.rb
|
205
204
|
- spec/hashie/utils_spec.rb
|
206
|
-
- spec/hashie/
|
207
|
-
- spec/
|
208
|
-
- spec/
|
209
|
-
- spec/integration/
|
210
|
-
- spec/integration/omniauth-oauth2/app.rb
|
205
|
+
- spec/hashie/dash_spec.rb
|
206
|
+
- spec/hashie/trash_spec.rb
|
207
|
+
- spec/spec_helper.rb
|
208
|
+
- spec/integration/rails-without-dependency/integration_spec.rb
|
211
209
|
- spec/integration/omniauth-oauth2/integration_spec.rb
|
210
|
+
- spec/integration/omniauth-oauth2/app.rb
|
212
211
|
- spec/integration/omniauth-oauth2/some_site.rb
|
213
|
-
- spec/integration/
|
212
|
+
- spec/integration/omniauth/integration_spec.rb
|
213
|
+
- spec/integration/omniauth/app.rb
|
214
214
|
- spec/integration/rails/integration_spec.rb
|
215
|
-
- spec/integration/rails
|
216
|
-
- spec/spec_helper.rb
|
217
|
-
- spec/support/integration_specs.rb
|
218
|
-
- spec/support/logger.rb
|
215
|
+
- spec/integration/rails/app.rb
|
219
216
|
- spec/support/module_context.rb
|
217
|
+
- spec/support/logger.rb
|
218
|
+
- spec/support/integration_specs.rb
|
220
219
|
- spec/support/ruby_version_check.rb
|
220
|
+
- spec/hashie_spec.rb
|