souls 0.66.0 → 0.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: badff53370c04ff529c865e90e33f7fffd0f046759027d917992fdb868e50782
4
- data.tar.gz: edd9677f32e2cdb62f507da4807bc659e63c15c0293701349be5a760572f0f93
3
+ metadata.gz: 9a7da49346f5cb49477a929afda1b0f1801ea0938df4d27637d7c12bf789df3f
4
+ data.tar.gz: b2487e19cdd33f995156e5ee88aa2c0cc70d75f648b10ff7fd88a75523027096
5
5
  SHA512:
6
- metadata.gz: d7bb2bd4099d1aab172120a713b6a9ab1cf3b22911072e52cf3964705d310c214757cdfbb6d35f33c1649bc52128f490c2c51294ae871c2d362a55da40944964
7
- data.tar.gz: 71e553091f8ec4368eebb66243e4e9878c39f633a3e6c036b0141fa225c8d16f157e74b9367b5ae402ef680a8e66efbb6f3cf48a42765d4a1769ac02abb84be8
6
+ metadata.gz: df988ebc91a052c2940313a73d4b5e65c42d59283155ae97b32cced8aabe8ee3003ca761202473873ab8b89e69a1526ad63177f257b776d04cad61e930bd40be
7
+ data.tar.gz: f34f43a3669d2a694206cd5edacec21766544c80f3e5e50a61599267330f1f2c929cf931ceb20147cfe31506e1ed68cb2255da3eb82afeda7d11d90a0eee952b
@@ -122,6 +122,7 @@ module Souls
122
122
  cols.each_with_index do |param, i|
123
123
  type = Souls.rbs_type_check(param[:type])
124
124
  type = "[#{type}]" if param[:array]
125
+ type = "String" if param[:column_name].match?(/$*_id\z/)
125
126
 
126
127
  if i == params[:params].size - 1
127
128
  f.write(" #{param[:column_name]}: #{type}?\n")
@@ -142,15 +143,12 @@ module Souls
142
143
  type = Souls.type_check(param[:type])
143
144
  rbs_type = Souls.rbs_type_check(param[:type])
144
145
  type = "[#{type}]" if param[:array]
146
+ type = "String" if param[:column_name].match?(/$*_id\z/)
147
+ rbs_type = "String" if param[:column_name].match?(/$*_id\z/)
145
148
 
146
149
  required = param[:column_name] == "id" ? "required: true" : "required: false"
147
150
  if i.zero?
148
- if param[:column_name].match?(/$*_id\z/)
149
- f.write(" def self.argument: (:#{param[:column_name]}, String, #{required} ) -> String\n")
150
- else
151
- f.write(" def self.argument: (:#{param[:column_name]}, #{type}, #{required} ) -> #{rbs_type}\n")
152
- end
153
-
151
+ f.write(" def self.argument: (:#{param[:column_name]}, #{type}, #{required} ) -> #{rbs_type}\n")
154
152
  else
155
153
  f.write(" | (:#{param[:column_name]}, #{type}, #{required} ) -> #{rbs_type}\n")
156
154
  end
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.66.0".freeze
2
+ VERSION = "0.66.1".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.45.0
1
+ 0.45.1
@@ -1 +1 @@
1
- 0.45.0
1
+ 0.45.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: souls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.66.0
4
+ version: 0.66.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI