dorian-to_struct 1.2.0 → 2.0.0

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/dorian/to_struct.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0ae4bed7c94afb36d93d5478f6428cc89e67fab14bb9d58f7f6ba034f47b4e8
4
- data.tar.gz: 94e2630ddab6f77cf0934522662cd607fee2e13f10b52949e1abf4e2a652dfc4
3
+ metadata.gz: dbf302700b3ccd2685cab62a5c042e17f176f8091dbb68d3f19c8d3fe1f1ed18
4
+ data.tar.gz: cef30d957d1ab98f95a6cf26fb30ce61867b6ea9060e4773d9fc155529ad63e2
5
5
  SHA512:
6
- metadata.gz: ec769c18b18cd03c739f19d5c7f2d39dc74f931cb030b1376c200b53443e5e3095748588f82b3a8c204f99fdcb84757adc6bb2ac9e8b13bac2d68ab83e13f67a
7
- data.tar.gz: 9b25d6baae4fde65f1e038fea5b07220813f628186d4e0719cd4b87639c4cd057b4238cf815e0fcdc5df837e371c67483277260e81428ddbc23f58428c938ab8
6
+ metadata.gz: 667d8183f007bdce95d9bf615098155b2bacc3e42960a38c4fe133d8d072973f686ff8495c102aff38692a3478e208ed047932cc9c4d7729c68e88460f7dfa8b
7
+ data.tar.gz: ef25313323ca1e1c8e6811a9b713d64610671c4e89b19416a7ec3051443d304d72284979298ec700a5645847849e032041815841c65da7fb0ff67f856b31aed4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 2.0.0
@@ -20,11 +20,11 @@ end
20
20
 
21
21
  class Struct
22
22
  def from_struct
23
- to_h
23
+ to_h.transform_keys(&:to_s)
24
24
  end
25
25
 
26
26
  def from_deep_struct
27
- to_h.transform_values(&:from_deep_struct)
27
+ to_h.transform_keys(&:to_s).transform_values(&:from_deep_struct)
28
28
  end
29
29
  end
30
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-to_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-29 00:00:00.000000000 Z
11
+ date: 2024-09-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: makes structs
14
14
  email: dorian@dorianmarie.com