resource-struct 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: baaac467d70f8f08aed004cc989e61b19f1ba5c8af5d6c70e32157431ac5cce2
4
- data.tar.gz: 640b07696f3f7332587859afdbe742fc6ea08e33fc6563d4e1ebc4d3430abb28
3
+ metadata.gz: a61800df441acd7f512f708b4830412edf391047be95e29e8c3e002d8684caf4
4
+ data.tar.gz: dc26ed248afa3f648cc4369225bb402eccf28d74f9770ff1a8f39de088009897
5
5
  SHA512:
6
- metadata.gz: c47966d7c7c3b96993594514eaaa21f879ad7c03f96a893d15255867491d990de7779dffb7c01dbf5189a2ac77992fd4f049a7601d4c5b42523a6b619fda27e9
7
- data.tar.gz: 2a129ceadc0026557fca3e10834eca614f00f7415e282b39b7ea29473176cb8996ed67ef2b4682f45c45bd88e85b25745e00e0139928b7d5c01277420e949301
6
+ metadata.gz: cd6e55f3a2cd859a37e6fef45485c322f83c8bcbfb6e1df97f4d69e594d77ddbff42668a07bec7438aa0483382e52d26f4ede84162be611cf98ca40b0be3b8b3
7
+ data.tar.gz: 4ff5a6edcb9dd6e07c4c3c5744d6e56aaefc14593d3acf6cd7fa9aeee25210656595d7ba926f3e0884265328604b01f5eba35ece222233f248244097813b2beb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.2] - 2022-01-05
4
+ ### Fix
5
+ - Support for proper marshalling of object
6
+
3
7
  ## [0.3.1] - 2022-01-05
4
8
  ### Fix
5
9
  - Support nil meaning empty hash as first argument to `FlexStruct` and `StrictStruct`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- resource-struct (0.3.1)
4
+ resource-struct (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -51,6 +51,17 @@ module ResourceStruct
51
51
  end
52
52
  alias [] dig
53
53
 
54
+ def marshal_dump
55
+ {
56
+ data: @hash
57
+ }
58
+ end
59
+
60
+ def marshal_load(obj)
61
+ @ro_struct = {}
62
+ @hash = obj[:data]
63
+ end
64
+
54
65
  private
55
66
 
56
67
  def ___convert_value(value)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ResourceStruct
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Riedler