resource-struct 0.3.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c1790e36a2600fddc519f1f9fdd47a2bdf9f07003f7205f0584be5455867446
4
- data.tar.gz: f916a4b4a6bb2c27d727d9914732c5a33ce35617246814bfbe8e9743150c89c1
3
+ metadata.gz: baaac467d70f8f08aed004cc989e61b19f1ba5c8af5d6c70e32157431ac5cce2
4
+ data.tar.gz: 640b07696f3f7332587859afdbe742fc6ea08e33fc6563d4e1ebc4d3430abb28
5
5
  SHA512:
6
- metadata.gz: c2db5d94ea2c816e8bb7a2279709380e43f6a7f0a1f1e7ceb3c027e1f07d5b5ffc308014eeef7ef44bd815ca8f9d9a43c46540af890a60c8f515e2e477536841
7
- data.tar.gz: eb0426c1c8667be29487125496681cba12c2b25fabc68475675500ea997aec898639cd826ce2370f888f9d0ffca9427ad6e348de3713eeb9d67bed3e1b350605
6
+ metadata.gz: c47966d7c7c3b96993594514eaaa21f879ad7c03f96a893d15255867491d990de7779dffb7c01dbf5189a2ac77992fd4f049a7601d4c5b42523a6b619fda27e9
7
+ data.tar.gz: 2a129ceadc0026557fca3e10834eca614f00f7415e282b39b7ea29473176cb8996ed67ef2b4682f45c45bd88e85b25745e00e0139928b7d5c01277420e949301
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.1] - 2022-01-05
4
+ ### Fix
5
+ - Support nil meaning empty hash as first argument to `FlexStruct` and `StrictStruct`
6
+
3
7
  ## [0.3.0] - 2022-01-04
4
8
  ### Feature
5
9
  - Support for `as_json` and `to_json`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- resource-struct (0.3.0)
4
+ resource-struct (0.3.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -16,7 +16,7 @@ module ResourceStruct
16
16
  @hash = hash || {}
17
17
  @ro_struct = {}
18
18
 
19
- raise ::ArgumentError, "first argument must be a Hash, found #{hash.class.name}" unless hash.is_a?(Hash)
19
+ raise ::ArgumentError, "first argument must be a Hash, found #{@hash.class.name}" unless @hash.is_a?(Hash)
20
20
  end
21
21
 
22
22
  def inspect
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ResourceStruct
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resource-struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Riedler