souls 0.65.5 → 0.66.0

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: 2189748c3d80909f1e0281373e2016c8b6d0ee25a40b0db9f3d7d487d2fc7d11
4
- data.tar.gz: 1ef32917dd90e7a9b41c65e9d1c176a131f786a118757f66202e7990c571f1b9
3
+ metadata.gz: badff53370c04ff529c865e90e33f7fffd0f046759027d917992fdb868e50782
4
+ data.tar.gz: edd9677f32e2cdb62f507da4807bc659e63c15c0293701349be5a760572f0f93
5
5
  SHA512:
6
- metadata.gz: 587fdae00e9252f6862712b4da67bc3bbfd848b928caaa28a2508cf3c08a0e3d7214762487718263675831e5f331624a757eadd5489765bb0e222c13fcf77974
7
- data.tar.gz: 15407243da04231cd9841287f774a005029067fd5c4a364aa17f297a10e3dd373e713a6cfc3d71130aa7e351a09ba807af7b1ffb419a3f594f926721f2f5a304
6
+ metadata.gz: d7bb2bd4099d1aab172120a713b6a9ab1cf3b22911072e52cf3964705d310c214757cdfbb6d35f33c1649bc52128f490c2c51294ae871c2d362a55da40944964
7
+ data.tar.gz: 71e553091f8ec4368eebb66243e4e9878c39f633a3e6c036b0141fa225c8d16f157e74b9367b5ae402ef680a8e66efbb6f3cf48a42765d4a1769ac02abb84be8
@@ -118,10 +118,10 @@ module Souls
118
118
  TEXT
119
119
  end
120
120
  File.open(file_path, "a") do |f|
121
- params[:params].each_with_index do |param, i|
121
+ cols = params[:params].reject { |n| n[:column_name] == "user_id" }
122
+ cols.each_with_index do |param, i|
122
123
  type = Souls.rbs_type_check(param[:type])
123
124
  type = "[#{type}]" if param[:array]
124
- next if param[:column_name] == "user_id"
125
125
 
126
126
  if i == params[:params].size - 1
127
127
  f.write(" #{param[:column_name]}: #{type}?\n")
@@ -137,11 +137,11 @@ module Souls
137
137
  # rubocop:enable Layout/LineLength
138
138
 
139
139
  File.open(file_path, "a") do |f|
140
- params[:params].each_with_index do |param, i|
140
+ cols = params[:params].reject { |n| n[:column_name] == "user_id" }
141
+ cols.each_with_index do |param, i|
141
142
  type = Souls.type_check(param[:type])
142
143
  rbs_type = Souls.rbs_type_check(param[:type])
143
144
  type = "[#{type}]" if param[:array]
144
- next if param[:column_name] == "user_id"
145
145
 
146
146
  required = param[:column_name] == "id" ? "required: true" : "required: false"
147
147
  if i.zero?
data/lib/souls/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Souls
2
- VERSION = "0.65.5".freeze
2
+ VERSION = "0.66.0".freeze
3
3
  public_constant :VERSION
4
4
  end
@@ -1 +1 @@
1
- 0.44.5
1
+ 0.45.0
@@ -1 +1 @@
1
- 0.44.5
1
+ 0.45.0
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.65.5
4
+ version: 0.66.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - POPPIN-FUMI