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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb3f2fdd1a4a83d3c5af39bdca949b282b4b0fae44783ddf6286d5caf6288c51
4
- data.tar.gz: d7adb4baf9bfd95e355c6128523ecd4bb971f02d046b000df30a23d0fd8920c9
3
+ metadata.gz: 7b918513414685919dd0cfd9912ba7df354d442bff8362916b2621286d7f2f9e
4
+ data.tar.gz: 9448da3b2e76e02336b052c18213bf7aa70ccbf3f72256cd2977f21dd69f42c3
5
5
  SHA512:
6
- metadata.gz: a29c40221477bf32515ff9de498a0663f4bf78d3b7ccf8ab253ff2ad7faa41ca54682bb1f7a99989d3bfa7e841b91f3c8354d43475d371a5fffb417b349e5808
7
- data.tar.gz: 4673e0b8a161fd0ac49e64aac5e7e068e1a08a136cc3224b95d061e38192525d7acbc347f6a19ff9d306908a31f92d25f98817760ccc208d08eb86ff11746a19
6
+ metadata.gz: e5cc797cadf4e9df79a93ac2f6a3bac472634d8b96a210dde5aa2b7ec931517341658e102a29364f5401dfcafabb4f89979c1e2cb80deb2f9fe7e88f6094c9e6
7
+ data.tar.gz: cdbd5e9b6277f8918730fb7f829a7bc3821a75103f5b97301288879fe7107ac3a2c975ca2b0b0b9344f11ae9baf5ff5f4c7536be0360e03bffe9eb2779669705
@@ -0,0 +1,5 @@
1
+ # CHANGELOG
2
+
3
+ ## v0.3.2
4
+
5
+ * Document `OpenStruct::FromHash::VERSION`.
@@ -1,6 +1,10 @@
1
1
  class OpenStruct
2
2
  module FromHash
3
- VERSION = '0.3.1'.freeze
3
+ #
4
+ # @return [String]
5
+ # The current version of openstruct-from_hash.rb
6
+ #
7
+ VERSION = '0.3.2'.freeze
4
8
 
5
9
  #
6
10
  # @example
@@ -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.1
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