simple-immutable 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/simple/immutable.rb +5 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d55dfd0cc8370b9bb68d8c1923770bc248d2eb4a2a71fe89717585366e17da78
4
- data.tar.gz: 50baec5315bdd9a6b6b9cfa389fa8cda388047b38f517f6ca7571d5a96de8926
3
+ metadata.gz: e5a46c955eed1dd5fd21711891c5f13b508eeb802f1cf14f7526adef43b3d98a
4
+ data.tar.gz: fd7aaf4305630b4b2fdecd35975efd8303da66afb9d976cfd8cb4b584aa5cfbf
5
5
  SHA512:
6
- metadata.gz: 59c0ce8e1ae74f98e4c8b13cf6d1642182f83440a2eb111b1df853748adc4a21635900011da503f00d02990b2a5895a54fcde1fc66001b2679ed3169a719db47
7
- data.tar.gz: beb2b47f7096c2e3bf98a1b7bbf4c4a50360a992a4ae96a213512ce31ff1e00cf7106351fedc118846d0f9463c5f82ed04d8bad85bc79200106d1d32ea92965f
6
+ metadata.gz: d252be14cad31b78cca9e2470c8eab4141091b5670f969dcb683d4de6a601337f8293493c8c202158481a8aa33c8c17647fa3502c880fb996f2fd2fc58ba34fd
7
+ data.tar.gz: 1f747054616a3d9f0596f6da254d32514902c4e926512fb5bbd65fdda8d96c1c9bbec55da96062e43270c0286c0c04900f69067f0e1ff64b5ea9f32a6181ec86
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -30,6 +30,11 @@ class Simple::Immutable
30
30
  end
31
31
  end
32
32
 
33
+ # adds to_json support.
34
+ def as_json(opts)
35
+ @hsh.as_json(opts)
36
+ end
37
+
33
38
  private
34
39
 
35
40
  def initialize(hsh)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-immutable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-07-08 00:00:00.000000000 Z
12
+ date: 2020-07-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Immutable ruby objects implementing dot and [] accessors.
15
15
  email: eno@radiospiel.org