hash_diff 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 +4 -4
- data/lib/hash_diff/comparison.rb +1 -1
- data/lib/hash_diff/version.rb +1 -1
- data/spec/hash_diff/comparison_spec.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bbc5462057be5bab5b5e0eb46aa0b8d3fc3b41990b2ea0374f24210d0ecfe1b
|
4
|
+
data.tar.gz: 60e2db4d4acb464a958e72599ca76fff28c7e3b447816a7f78afa330b626cd31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bed9aa1ff38395a905043e6a013767f96f75ccf4dedd97f04ae6b2762e11543f6c98b42ff02fd8d9fb9781e7939caa864feadb366b479912dda565f0da42784c
|
7
|
+
data.tar.gz: 1943c3599f521e68e68925e48e04b718990523b89d9c7eaa4105c7112c074abf81913559335d4b4ecda3ccc406ec1107e5295b3cad331b1ee514f265edee6db8
|
data/lib/hash_diff/comparison.rb
CHANGED
data/lib/hash_diff/version.rb
CHANGED
@@ -72,6 +72,19 @@ describe HashDiff::Comparison do
|
|
72
72
|
it { expect(subject).to be_empty }
|
73
73
|
end
|
74
74
|
end
|
75
|
+
|
76
|
+
context "when hashes have both symbol and string keys" do
|
77
|
+
let(:app_v1_properties) { { foo: "bar" } }
|
78
|
+
let(:app_v2_properties) { { "foo" => "bar" } }
|
79
|
+
let(:diff) do
|
80
|
+
{
|
81
|
+
foo: ["bar", HashDiff::NO_VALUE],
|
82
|
+
"foo" => [HashDiff::NO_VALUE, "bar"]
|
83
|
+
}
|
84
|
+
end
|
85
|
+
|
86
|
+
it { expect(subject).to eq(diff) }
|
87
|
+
end
|
75
88
|
end
|
76
89
|
|
77
90
|
describe "#left_diff" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hash_diff
|
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
|
- Coding Zeal
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-08-
|
13
|
+
date: 2022-08-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|