ds_hash 1.2.0 → 1.2.1
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 +8 -8
- data/README.rdoc +15 -17
- data/lib/ds_hash/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTFkNzViMTNhYTg3M2MyZjRhYTg0MTA4YThkMzIxZDNlYTJjMjkzNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzcwNTA0MjA1YzZjYmFhYWViYTg0ZDdkM2FhNzk5NTA1MmMxZGNjYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Njc5YWYzYmNlMjI4MGNjMmI4ZmRmY2JiOGIxMWNhNmExYTFhY2JhMWM4NTFh
|
10
|
+
MGVmNzYxYjExZDY1OWE2YjgyMmNmMTQ3ODQ3MzIwYjVmZmZmYTUxZWRlODU3
|
11
|
+
OTQ1ZTRmYTcwYWI2NzY0OThmNjhiNmEzZDEyZGVkOWQ1ZjBkMGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjYwZjgwZDBkOWE1YzAyMzFhNzNlNjM2MGNmOWRjOGQ4MmNmYTYwOTVmNmZl
|
14
|
+
MzVkYThkNTVmYWQ4MDU1ZGRjNTY4NTY2N2VmZDcwYTI2ZmVjNTdiMzU5NzY4
|
15
|
+
YzZlY2EzNTE2NTZlYmM2NjA3OGE5Y2RkZDk3ZmM5NmQ5NTQxODk=
|
data/README.rdoc
CHANGED
@@ -8,23 +8,6 @@ A Ruby Hash class extensions.
|
|
8
8
|
|
9
9
|
== Learning by example
|
10
10
|
|
11
|
-
_Hash_.+compact+
|
12
|
-
|
13
|
-
{ a: 1, b: nil }.compact == { a: 1 } # remove nil values
|
14
|
-
{ a: 1, nil: 1 }.compact == { a: 1 } # remove nil keys
|
15
|
-
|
16
|
-
_Hash_.+compact!+
|
17
|
-
|
18
|
-
vide: Hash.compact
|
19
|
-
|
20
|
-
_Hash_.+clean+
|
21
|
-
|
22
|
-
idem Hash.compact
|
23
|
-
|
24
|
-
_Hash_.+clean!+
|
25
|
-
|
26
|
-
idem Hash.compact!
|
27
|
-
|
28
11
|
_Hash_.+deep_key?+
|
29
12
|
|
30
13
|
hash = { :a => { :b => 'b' } }
|
@@ -54,6 +37,21 @@ _Hash_.+to_struct+
|
|
54
37
|
puts struct.a # { :b => 'hello' }
|
55
38
|
puts struct.a.b # 'hello'
|
56
39
|
|
40
|
+
_Hash_.+compact+
|
41
|
+
|
42
|
+
{ a: 1, b: nil }.compact == { a: 1 } # remove nil values
|
43
|
+
|
44
|
+
_Hash_.+compact!+
|
45
|
+
|
46
|
+
vide Hash.compact
|
47
|
+
|
48
|
+
_Hash_.+clean+
|
49
|
+
|
50
|
+
idem Hash.compact
|
51
|
+
|
52
|
+
_Hash_.+clean!+
|
53
|
+
|
54
|
+
idem Hash.compact!
|
57
55
|
|
58
56
|
== Contributing to ds_hash
|
59
57
|
|
data/lib/ds_hash/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ds_hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nardele salomon
|
@@ -109,5 +109,5 @@ rubyforge_project:
|
|
109
109
|
rubygems_version: 2.2.1
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
|
-
summary: Hash class extensions v. 1.2.
|
112
|
+
summary: Hash class extensions v. 1.2.1
|
113
113
|
test_files: []
|