openstruct-from_hash.rb 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/openstruct-from_hash.rb +5 -1
- data/test/openstruct-from_hash_test.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b918513414685919dd0cfd9912ba7df354d442bff8362916b2621286d7f2f9e
|
4
|
+
data.tar.gz: 9448da3b2e76e02336b052c18213bf7aa70ccbf3f72256cd2977f21dd69f42c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5cc797cadf4e9df79a93ac2f6a3bac472634d8b96a210dde5aa2b7ec931517341658e102a29364f5401dfcafabb4f89979c1e2cb80deb2f9fe7e88f6094c9e6
|
7
|
+
data.tar.gz: cdbd5e9b6277f8918730fb7f829a7bc3821a75103f5b97301288879fe7107ac3a2c975ca2b0b0b9344f11ae9baf5ff5f4c7536be0360e03bffe9eb2779669705
|
data/CHANGELOG.md
ADDED
data/lib/openstruct-from_hash.rb
CHANGED
@@ -8,7 +8,7 @@ class OpenStructTest < Minitest::Test
|
|
8
8
|
def test_from_hash_1
|
9
9
|
obj = OpenStruct.from_hash(
|
10
10
|
str: 'foo',
|
11
|
-
ary: [{ number: 20 }, BasicObject],
|
11
|
+
ary: [{ number: 20 }, BasicObject.new],
|
12
12
|
person: { name: 'John', friends: [{ name: 'Amy' }] }
|
13
13
|
)
|
14
14
|
assert_equal 'foo', obj.str
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstruct-from_hash.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Gleeson
|
@@ -19,6 +19,7 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- ".gitignore"
|
21
21
|
- ".pryrc"
|
22
|
+
- CHANGELOG.md
|
22
23
|
- LICENSE.txt
|
23
24
|
- README.md
|
24
25
|
- Rakefile
|