dot_hash 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dot_hash/properties.rb +1 -0
- data/lib/dot_hash/version.rb +1 -1
- data/test/dot_hash/properties_test.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f89ffdbc4a4c3146b61b402968d4166dfa2b6cd
|
4
|
+
data.tar.gz: 5783c2eb2a805c48721569e56f4d69a0b4c0001b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a917c54228d409e98110e1c875cfee55101153f8131a49fd4f43aee3c91c044be1baab94a0113ff1bf04fda17384b2b339285f2226facd641777ad9e86a12e
|
7
|
+
data.tar.gz: 3dc183862774747dc8096e763fdeed87faaf6173fa697014f87ae33e0df04b9111fd2264bf75d1f11b01aa7725a3b98cea59d8e7b11d74c4eaba624283101453
|
data/lib/dot_hash/properties.rb
CHANGED
data/lib/dot_hash/version.rb
CHANGED
@@ -145,13 +145,19 @@ module DotHash
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
|
148
|
-
describe "#
|
148
|
+
describe "#hash" do
|
149
149
|
before do
|
150
150
|
@properties = Properties.new user: { name: "dude" }
|
151
151
|
end
|
152
152
|
|
153
|
-
it
|
153
|
+
it 'matches given hash' do
|
154
|
+
assert_equal({user: {name: "dude"}}, properties)
|
155
|
+
end
|
156
|
+
|
157
|
+
it "returns a hash using alias methods" do
|
158
|
+
assert_equal properties.hash, user: {name: "dude"}
|
154
159
|
assert_equal properties.to_hash, user: {name: "dude"}
|
160
|
+
assert_equal properties.to_h, user: {name: "dude"}
|
155
161
|
end
|
156
162
|
end
|
157
163
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dot_hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcelo Eden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|