refinements 5.0.2 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e14cc85d6266d3bc17379f75cbbae1d631d7ef423e5ae1a2c0c30fe32cf7c27a
4
- data.tar.gz: b29122d1b68b8fffac308097c46e162d2e784a293d1d082f1e7da907e8a376bd
3
+ metadata.gz: a31bf488cade5f4020b6114f54a592e067d3f9179b9aa4f2667e30909ef198d2
4
+ data.tar.gz: '09d9ade7e37d5962a70141a5ced09a5b8054874c4918a2d4bbf3b100d6ebe640'
5
5
  SHA512:
6
- metadata.gz: 68d2fcf2a81df0d9bb9dd393c692b064e134f4ee65f34f0166d7c27eb3d0dddc5354f93063db2a914a81702640460970bde21a377b594607b67745db9477a4a0
7
- data.tar.gz: 97be46ea7dc7b63af3780de32ed2209f524d438636c1ed4bc476132cf921a2a54f30100d24af2aa7e270696c75088e63098792ad7443b43d257732c9db3d4255
6
+ metadata.gz: f7d86d5d30170242eaffb6c49f081b034b0211a31f70b08a632ec30197f4a644d6fa735e2fc9b3dbca84a31d1fc1c2cc4b478e2845b344c4ee82d13013d6dde3
7
+ data.tar.gz: 42edcfb15305215559cbdc43c3754bbe7db60dd353b68d427cdbda46c8489392325ee9c8576c2d0bd76f7440ec73148c0905e05e8cd4dc38d084ed126f8885b3
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- {�:�*�q�X\����[~�4���e��3)�Kk�����!c��<������0�&&��B}��B�<�m����b�ȼ��w��q�x.�
2
- 8�9Dp�P�q�d�;� "K/��s�6L�L#��OU<N�Q�cZ�(9�ps)�Ho)�n��ȼ��b�
3
- ���`�}�r����8o~�<ovu�NK�}�0�^���fRz�?���M�q�����R�\K}-��*ښ���P�ik2����z�OL��g����f@.�
1
+ `� �Ô,2?��-b�8x�D�%�#Wn�ؑ5('�!o�_e0s��b��{�R1�J�Z�+�Z|�
data/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/refinements.svg)](http://badge.fury.io/rb/refinements)
4
4
  [![Code Climate Maintainability](https://api.codeclimate.com/v1/badges/98be62123a95d5ac32d2/maintainability)](https://codeclimate.com/github/bkuhlmann/refinements/maintainability)
5
5
  [![Code Climate Test Coverage](https://api.codeclimate.com/v1/badges/98be62123a95d5ac32d2/test_coverage)](https://codeclimate.com/github/bkuhlmann/refinements/test_coverage)
6
- [![Gemnasium Status](https://gemnasium.com/bkuhlmann/refinements.svg)](https://gemnasium.com/bkuhlmann/refinements)
7
6
  [![Circle CI Status](https://circleci.com/gh/bkuhlmann/refinements.svg?style=svg)](https://circleci.com/gh/bkuhlmann/refinements)
8
7
 
9
8
  Provides additional enhancements (refinements) to core Ruby objects.
@@ -207,7 +206,7 @@ Read [CONTRIBUTING](CONTRIBUTING.md) for details.
207
206
 
208
207
  ## License
209
208
 
210
- Copyright (c) 2015 [Alchemists](https://www.alchemists.io).
209
+ Copyright 2015 [Alchemists](https://www.alchemists.io).
211
210
  Read [LICENSE](LICENSE.md) for details.
212
211
 
213
212
  ## History
@@ -17,29 +17,24 @@ module Refinements
17
17
  dup.symbolize_keys!
18
18
  end
19
19
 
20
- # rubocop:disable Performance/HashEachMethods
21
20
  def symbolize_keys!
22
21
  keys.each { |key| self[key.to_sym] = delete key }
23
22
  self
24
23
  end
25
- # rubocop:enable Performance/HashEachMethods
26
24
 
27
25
  def deep_merge other
28
26
  dup.deep_merge! other
29
27
  end
30
28
 
29
+ # :reek:FeatureEnvy
31
30
  def deep_merge! other
32
- other.each do |(other_key, other_value)|
33
- current_value = self[other_key]
34
-
35
- self[other_key] = if current_value.is_a?(Hash) && other_value.is_a?(Hash)
36
- current_value.deep_merge! other_value
37
- else
38
- other_value
39
- end
31
+ merge! other do |_key, this_value, other_value|
32
+ if this_value.is_a?(Hash) && other_value.is_a?(Hash)
33
+ this_value.deep_merge other_value
34
+ else
35
+ other_value
36
+ end
40
37
  end
41
-
42
- self
43
38
  end
44
39
 
45
40
  def reverse_merge other
@@ -12,7 +12,7 @@ module Refinements
12
12
  end
13
13
 
14
14
  def self.version
15
- "5.0.2"
15
+ "5.1.0"
16
16
  end
17
17
 
18
18
  def self.version_label
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinements
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -10,27 +10,26 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
14
- a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
15
- aW8wHhcNMTcxMDI5MjExMDE0WhcNMTgxMDI5MjExMDE0WjBBMQ8wDQYDVQQDDAZi
16
- cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
17
- GRYCaW8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCw5ljqJRwCHI+L
18
- DHJM8mLBNg/PMlK/pVlesbOOnw9yOh04cUX4FNDzGG7MUIbZel55a2FCGpnPcR23
19
- rXNYbdJ69G4pCEZVRHd93EV3mTldlr3cqdJM+V4F9kk3Y5G0AdkEjet0U9CgmNg/
20
- J8fp7mek76hsG5AFZ+maZ2bOGTlA4Gnpp/wenFm6i9Y5upNfa0zHqpAlgOOIWRCx
21
- nVYTPpMrBUVE4B1eoWBkcQwYkj4bi+CZnZdOZNmA1ELXzD7o8fcQc+WyEuvSbQNE
22
- 5G/I2z/u3zvXAw4U8PjrCzmqnX4WeshYe+iXTyEkWyDHyGwaWgNvoM/Vqjc91+vh
23
- jYLquh2zAgMBAAGjezB5MAkGA1UdEwQCMAAw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48ph4kcS0S0nv1RiuyVb6TCAR3Nu3VaVq
21
+ 3fPzZKJLZBx67UvXdbdicWPiUR75elI4PXpLIic3xytaF52ZJYyKZCNZJhNwfQID
22
+ AQABo3sweTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU0nzow9vc
23
+ 2CdikiiE3fJhP/gY4ggwHwYDVR0RBBgwFoEUYnJvb2tlQGFsY2hlbWlzdHMuaW8w
24
+ HwYDVR0SBBgwFoEUYnJvb2tlQGFsY2hlbWlzdHMuaW8wDQYJKoZIhvcNAQELBQAD
25
+ ggEBAImQPNpkb90nkDUCJ4ivQNKK1LCebOjqZnOWGC4HxndvBQBqj78MTZifoODl
26
+ uPBY4fSnnpVGph+Y1OTWw/xhk3HE2AH0GDGC9xbM75qrg3/+a4D81pM94B6zuBdA
27
+ 7hxUy4kByawrii833IidV0zkI4lCombTNicc8JWXXSlL2G/sWPLndNvn5rzoyyRT
28
+ pPOLYGdB4hqUam3hBgLOsYIOVp+yXMvj0gvk/Djq8IR2P1RS4NZU7HHD485xkBfL
29
+ 4Zrsxi713z6sndd9JBAm4G7mJiV93MsuCM5N4ZDY7XaxIhvctNSNhX/Yn8LLdtGI
30
+ b4jw5t40FKyNUvLPPXYAvQALBtk=
32
31
  -----END CERTIFICATE-----
33
- date: 2018-01-01 00:00:00.000000000 Z
32
+ date: 2018-04-01 00:00:00.000000000 Z
34
33
  dependencies:
35
34
  - !ruby/object:Gem::Dependency
36
35
  name: awesome_print
@@ -88,34 +87,6 @@ dependencies:
88
87
  - - "~>"
89
88
  - !ruby/object:Gem::Version
90
89
  version: '1.0'
91
- - !ruby/object:Gem::Dependency
92
- name: gemsmith
93
- requirement: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '11.0'
98
- type: :development
99
- prerelease: false
100
- version_requirements: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - "~>"
103
- - !ruby/object:Gem::Version
104
- version: '11.0'
105
- - !ruby/object:Gem::Dependency
106
- name: git-cop
107
- requirement: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: '2.0'
112
- type: :development
113
- prerelease: false
114
- version_requirements: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - "~>"
117
- - !ruby/object:Gem::Version
118
- version: '2.0'
119
90
  - !ruby/object:Gem::Dependency
120
91
  name: guard-rspec
121
92
  requirement: !ruby/object:Gem::Requirement
@@ -192,14 +163,14 @@ dependencies:
192
163
  requirements:
193
164
  - - "~>"
194
165
  - !ruby/object:Gem::Version
195
- version: '4.7'
166
+ version: '4.8'
196
167
  type: :development
197
168
  prerelease: false
198
169
  version_requirements: !ruby/object:Gem::Requirement
199
170
  requirements:
200
171
  - - "~>"
201
172
  - !ruby/object:Gem::Version
202
- version: '4.7'
173
+ version: '4.8'
203
174
  - !ruby/object:Gem::Dependency
204
175
  name: rspec
205
176
  requirement: !ruby/object:Gem::Requirement
@@ -220,14 +191,14 @@ dependencies:
220
191
  requirements:
221
192
  - - "~>"
222
193
  - !ruby/object:Gem::Version
223
- version: '0.52'
194
+ version: '0.54'
224
195
  type: :development
225
196
  prerelease: false
226
197
  version_requirements: !ruby/object:Gem::Requirement
227
198
  requirements:
228
199
  - - "~>"
229
200
  - !ruby/object:Gem::Version
230
- version: '0.52'
201
+ version: '0.54'
231
202
  - !ruby/object:Gem::Dependency
232
203
  name: wirb
233
204
  requirement: !ruby/object:Gem::Requirement
@@ -262,7 +233,10 @@ files:
262
233
  homepage: https://github.com/bkuhlmann/refinements
263
234
  licenses:
264
235
  - Apache-2.0
265
- metadata: {}
236
+ metadata:
237
+ source_code_uri: https://github.com/bkuhlmann/refinements
238
+ changelog_uri: https://github.com/bkuhlmann/refinements/blob/master/CHANGES.md
239
+ bug_tracker_uri: https://github.com/bkuhlmann/refinements/issues
266
240
  post_install_message:
267
241
  rdoc_options: []
268
242
  require_paths:
@@ -279,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
253
  version: '0'
280
254
  requirements: []
281
255
  rubyforge_project:
282
- rubygems_version: 2.7.4
256
+ rubygems_version: 2.7.6
283
257
  signing_key:
284
258
  specification_version: 4
285
259
  summary: Provides additional enhancements (refinements) to core Ruby objects.
metadata.gz.sig CHANGED
Binary file