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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cafa78d0cb091db5e66ef85ddef77676109f80f7
4
- data.tar.gz: f5ccf16d56e924e48d98115f75c5398aca749773
3
+ metadata.gz: 5b7463c46397ff888a6fa1794dda68695b8e5f78
4
+ data.tar.gz: 407d19363def156021e44da618365cf8657dc94e
5
5
  SHA512:
6
- metadata.gz: 1a4b9846803f359da95ff92ce6294077028aa7b22bd88dc377301da90847bce560c81b7d0f76fa164196d813b475112125dbe7a430170774f3405016799f87df
7
- data.tar.gz: 4dc6fac1176380cbe056c75758bc43261f9dc2fb287c6f1cf39ef42e87d8c540ea79e56b46e4550f651425154df8e6a8086d61f400c45f471a626a47e38f7809
6
+ metadata.gz: 1c8f87a18cf129c5f4d31e38a3196db8503f6b752ded005734f2f42bb9a79a967aa564c0a63f939d6544de454976fc2d8fa05e43b4bc171b7a05169e6a275a68
7
+ data.tar.gz: c5934315223ca60ee7cb878fe1ace02967fb6a53c949cfa78f1a4be29a7c7b20255831e949ae404ce0b0449fbd9a83323f01693ac1dfe809f437f4053f3db2da
@@ -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.6. Please read [UPGRADING](UPGRADING.md) when upgrading from a previous version.
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
 
@@ -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 via as a ' \
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
@@ -136,7 +136,7 @@ module Hashie
136
136
 
137
137
  def optimize_if_necessary!
138
138
  return unless (@lookups += 1) >= @optimize_every
139
- @regexes = @regex_counts.sort_by { |_, count| -count }.map { |regex, _| regex }
139
+ @regexes = @regexes.sort_by { |regex| -@regex_counts[regex] }
140
140
  @lookups = 0
141
141
  end
142
142
  end
@@ -1,3 +1,3 @@
1
1
  module Hashie
2
- VERSION = '3.5.6'
2
+ VERSION = '3.5.7'
3
3
  end
@@ -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.6
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-07-12 00:00:00.000000000 Z
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.11
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/dash_spec.rb
180
- - spec/hashie/extensions/autoload_spec.rb
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/dash/coercion_spec.rb
183
- - spec/hashie/extensions/dash/indifferent_access_spec.rb
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/method_access_spec.rb
197
- - spec/hashie/extensions/strict_key_access_spec.rb
198
- - spec/hashie/extensions/stringify_keys_spec.rb
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/hash_spec.rb
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/version_spec.rb
207
- - spec/hashie_spec.rb
208
- - spec/integration/omniauth/app.rb
209
- - spec/integration/omniauth/integration_spec.rb
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/rails/app.rb
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-without-dependency/integration_spec.rb
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