teodoro 0.69.2 → 0.69.4

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: 47f410835b34b223ffbd179bd3da4dbd20f4c4ffb353088672f5532a143b249f
4
- data.tar.gz: '08f3894a3278f8e57eae810ed3848662326ec1d76b67f15d62580ba6054516e5'
3
+ metadata.gz: 71e01b60935697f64014ebd63e964306013c5cbf5700dfcd56f0907acada2b73
4
+ data.tar.gz: 77fc009384a50d438660f32a60208960c888a7bc802a4e17aaef22ef40f4b64e
5
5
  SHA512:
6
- metadata.gz: 873c262334c342a0f19d9bf33c0fbf775d4cb82cbcb033244e663d2d04c97b2616ff4a38447270d08cd3e49780aef5f3105c59a1021449cd17d18f31f4b2322e
7
- data.tar.gz: 687e20af6507a42980c0c0c66b00d36c9e3205b5bee5d602c1369461fc1e055dc58395e1084a7044d5706d70725063cf8fd66353965bed7ed93633ddda902feb
6
+ metadata.gz: 16ab0a3b327e8ff39d0c95907977527ef9c73316b8142e45a1a4df62a35da4b1bfc193ef489ff838be36c88dba89700eb5b8370374d3b2c635b6b54a948ba504
7
+ data.tar.gz: 5d7c3a833bcf55c0f7dcfe6b5744d9d29c0b875c661e93b6186dae9f842147af3e6390da1b41c04b08b1f0083c5b86a00ef4e8bfaf6cb6991f754af320d43046
data/lib/teodoro/obj.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  module Obj
2
+ @structs = {}
2
3
  def self.new(data)
3
- Struct.new(*data.keys).new(*data.values)
4
+ (@structs[data.keys] || (@structs[data.keys] = Struct.new(*data.keys)))
5
+ .new(*data.values)
4
6
  end
5
7
  end
@@ -1,3 +1,3 @@
1
1
  module Teodoro
2
- VERSION = '0.69.2'.freeze
2
+ VERSION = '0.69.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teodoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.69.2
4
+ version: 0.69.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fortes Tecnologia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-23 00:00:00.000000000 Z
11
+ date: 2024-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri