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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -3
- data/README.md +1 -2
- data/lib/refinements/hashes.rb +7 -12
- data/lib/refinements/identity.rb +1 -1
- metadata +29 -55
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a31bf488cade5f4020b6114f54a592e067d3f9179b9aa4f2667e30909ef198d2
|
4
|
+
data.tar.gz: '09d9ade7e37d5962a70141a5ced09a5b8054874c4918a2d4bbf3b100d6ebe640'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d86d5d30170242eaffb6c49f081b034b0211a31f70b08a632ec30197f4a644d6fa735e2fc9b3dbca84a31d1fc1c2cc4b478e2845b344c4ee82d13013d6dde3
|
7
|
+
data.tar.gz: 42edcfb15305215559cbdc43c3754bbe7db60dd353b68d427cdbda46c8489392325ee9c8576c2d0bd76f7440ec73148c0905e05e8cd4dc38d084ed126f8885b3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
|
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
|
209
|
+
Copyright 2015 [Alchemists](https://www.alchemists.io).
|
211
210
|
Read [LICENSE](LICENSE.md) for details.
|
212
211
|
|
213
212
|
## History
|
data/lib/refinements/hashes.rb
CHANGED
@@ -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
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
data/lib/refinements/identity.rb
CHANGED
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
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
GyTL6s+8CnN9sL2Spfh/YdRn/29r4g2qi6FomQ==
|
13
|
+
MIIDQDCCAiigAwIBAgIBATANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
|
14
|
+
a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0xODAyMTQxNTA4NDVaFw0xOTAyMTQx
|
15
|
+
NTA4NDVaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
|
16
|
+
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6l1qpXTiomH1RfMRloyw7MiE
|
17
|
+
xyVx/x8Yc3EupdH7uhNaTXQGyORN6aOY//1QXXMHIZ9tW74nZLhesWMSUMYy0XhB
|
18
|
+
brs+KkurHnc9FnEJAbG7ebGvl/ncqZt72nQvaxpDxvuCBHgJAz+8i5wl6FhLw+oT
|
19
|
+
9z0A8KcGhz67SdcoQiD7qiCjL/2NTeWHOzkpPrdGlt088+VerEEGf5I13QCvaftP
|
20
|
+
D5vkU0YlAm1r98BymuJlcQ1qdkVEI1d48ph4kcS0S0nv1RiuyVb6TCAR3Nu3VaVq
|
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-
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|