shale-builder 0.2.3 → 0.2.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: 01baf7e6e2a1bb3af915935d777089427a91fb25bf238bb1103fe7be133bea47
4
- data.tar.gz: 7bb534cd32cf4681d90f25658c4bd659e22f1173d21434f06e39997cfb12188f
3
+ metadata.gz: e1b61d4f6f883e6c38a5e30350fd069a965af0768a3025b8dcaee86c15e12b33
4
+ data.tar.gz: 6f7cc4a30ea88549050d3054451b37caae4c25bbd0fed6593b40d481bab6bd7f
5
5
  SHA512:
6
- metadata.gz: 11ea61b420ba7fd7c24412e570344b5e1f57a4385f33884c2c0ad6118f5856d4d45a58903872d0c10c1c28af8f3f5f3d9481875817fb102f0bc135159f635efa
7
- data.tar.gz: 2fe221a51291db87700f2a0d5e5777924c28d9e93527d3da8f9f0548592a9bfc5d5ae1d91819348c559d8bfcae088b80aa0dd36e9b14627f3df40aaff54c4b30
6
+ metadata.gz: 9a2dd0016276064808485498d44784e36f8f408332d77aa1f8a2b33c73e0388d27eb89ddfa0a7199faa406d7f62943630f72dcbc562d9c09989aa9e6b342ae12
7
+ data.tar.gz: e17f0dd84c2d654fce94acbd803e9984992abe72dfe6748865762faadbbd9d4ec45f333c4efc50338084b4980b640cfa005e0064b86528ee7a06bf30619f7025
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shale-builder (0.2.3)
4
+ shale-builder (0.2.4)
5
5
  booleans (>= 0.1)
6
6
  shale (< 2.0)
7
7
  sorbet-runtime (> 0.5)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Shale
4
4
  module Builder
5
- VERSION = '0.2.3'
5
+ VERSION = '0.2.4'
6
6
  end
7
7
  end
@@ -59,18 +59,18 @@ module Tapioca
59
59
 
60
60
  setter_type, nilable = shale_type_to_sorbet_setter_type(attribute)
61
61
  if attribute.collection?
62
- setter_type = "T.nilable(T::Array[#{return_type}])"
62
+ setter_type_str = "T.nilable(T::Array[#{setter_type}])"
63
63
  elsif nilable
64
- setter_type = "T.nilable(#{return_type})"
64
+ setter_type_str = "T.nilable(#{setter_type})"
65
65
  else
66
- setter_type = return_type.to_s
66
+ setter_type_str = setter_type.to_s
67
67
  end
68
68
 
69
69
  # setter
70
70
  mod.create_method(
71
71
  "#{attribute.name}=",
72
- parameters: [create_param('value', type: setter_type)],
73
- return_type: setter_type,
72
+ parameters: [create_param('value', type: setter_type_str)],
73
+ return_type: setter_type_str,
74
74
  comments: comments,
75
75
  )
76
76
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shale-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drewniak
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-07 00:00:00.000000000 Z
11
+ date: 2025-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: booleans