ds_hash 1.1.0 → 1.1.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/lib/ds_hash/hash_core_ext.rb +1 -1
- data/lib/ds_hash/version.rb +1 -1
- data/spec/ds_hash_spec.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTA1ZDM1YzNjMGU5NTE2MTM2Y2FiYTUzY2RlNTM4ZDhmZGQ1NjQ4MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTNiMTdiMzVmOTYzNzNiNjEzOTU2NTU0YzhhZGU2NjFjY2MxNTRiZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjdhNjdmNWUyY2QyMGIzMzQ3MGYyMGQ4ZTE0NmQ0ODAzYjdkZTE1ZmMwMmI2
|
10
|
+
MjljNjJkZmRhMWRiYzAyN2JiOTY4ZTgzZDAyMjFlZGYyMTJhNDliNTNlMzg5
|
11
|
+
NDg5ZmFhZWQ3MjYxYjUyMjA2MDMzZGRmNzcxYTUzODllYzRjYzA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Zjk5MjgxZTBkYjEwYmNmMTgzMDg4ZWQ3ODdkNWVkZTc3NmY5MjBkYjVkNjFm
|
14
|
+
MTI5NjliMGEzYjZiM2NiMzU0ODY5YjFiNzJkNzhhMDhlNjgyMmVkYjNiZTI2
|
15
|
+
MGRjMmU0YTNkMzk3YmE5MmYzNDgyYWYzNDQzNjc2ZGY3OTgyM2Y=
|
data/lib/ds_hash/version.rb
CHANGED
data/spec/ds_hash_spec.rb
CHANGED
@@ -3,7 +3,11 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
|
3
3
|
describe "DsHash" do
|
4
4
|
|
5
5
|
let(:hash_clean_values){
|
6
|
-
|
6
|
+
{ a: { b: 1, c: { d: 2 } }, g: 3 , j: [1,2]}
|
7
|
+
}
|
8
|
+
|
9
|
+
let(:hash_with_false_values){
|
10
|
+
{ a: { b: false}}
|
7
11
|
}
|
8
12
|
|
9
13
|
let(:hash_with_empty_values) {
|
@@ -48,6 +52,12 @@ context "#deep_fetch" do
|
|
48
52
|
it { hash_clean_values.deep_fetch(:d, :a, :j, []).should eq [] }
|
49
53
|
it { hash_clean_values.deep_fetch(:d, 'a').should eq 'a' }
|
50
54
|
it { hash_clean_values.deep_fetch(:d, :a, :j, 'b').should eq 'b' }
|
55
|
+
|
56
|
+
|
57
|
+
it { hash_with_false_values.deep_fetch(:a, :b).should === false }
|
58
|
+
it { hash_with_false_values.deep_fetch(:a, :b, nil).should === false }
|
59
|
+
|
60
|
+
|
51
61
|
end
|
52
62
|
|
53
63
|
end
|
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.1.
|
4
|
+
version: 1.1.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.1.
|
112
|
+
summary: Hash class extensions v. 1.1.1
|
113
113
|
test_files: []
|