Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ group :development, :test do
gem 'irb', '~> 1.18.0'
gem 'rack', '~> 3.1' # for yard server
gem 'rackup', '~> 2.1' # for yard server
gem 'rbs', '~> 4.0.0'
gem 'rbs', '~> 4.2.0'
gem 'redcarpet', '~> 3.6.0'
gem 'rubocop', '~> 1.90.0', require: false
gem 'steep', '~> 2.0.0'
gem 'steep', '~> 2.1.0'
gem 'webrick', '~> 1.9.1'
gem 'yard', '~> 0.9.20' # for yard server
end
Expand Down
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rbs (4.0.3)
rbs (4.2.0)
logger
prism (>= 1.6.0)
tsort
Expand Down Expand Up @@ -100,7 +100,7 @@ GEM
prism (~> 1.7)
ruby-progressbar (1.13.0)
securerandom (0.4.1)
steep (2.0.0)
steep (2.1.0)
concurrent-ruby (>= 1.1.10)
csv (>= 3.0.9)
fileutils (>= 1.1.0)
Expand All @@ -111,7 +111,7 @@ GEM
parser (>= 3.2)
prism (>= 0.25.0)
rainbow (>= 2.2.2, < 4.0)
rbs (~> 4.0)
rbs (~> 4.2)
securerandom (>= 0.1)
strscan (>= 1.0.0)
terminal-table (>= 2, < 5)
Expand Down Expand Up @@ -145,11 +145,11 @@ DEPENDENCIES
rack (~> 3.1)
rackup (~> 2.1)
rake (~> 13.0)
rbs (~> 4.0.0)
rbs (~> 4.2.0)
redcarpet (~> 3.6.0)
rspec (~> 3.13.0)
rubocop (~> 1.90.0)
steep (~> 2.0.0)
steep (~> 2.1.0)
webmock (~> 3.26.0)
webrick (~> 1.9.1)
yard (~> 0.9.20)
Expand Down Expand Up @@ -191,7 +191,7 @@ CHECKSUMS
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
rb-fsevent (0.11.2) sha256=43900b972e7301d6570f64b850a5aa67833ee7d87b458ee92805d56b7318aefe
rb-inotify (0.11.1) sha256=a0a700441239b0ff18eb65e3866236cd78613d6b9f78fea1f9ac47a85e47be6e
rbs (4.0.3) sha256=5a7bf70e2628549d9a1f44eae447b2cfe55968a9c60cfff52693a4bdcc020e14
rbs (4.2.0) sha256=51f7b886dcc05bc09e10b901daa6a81829f6adc03101d6ca9ea4aac6103e0674
rdoc (8.0.0) sha256=03bf8c08a9639658855a0cfd77c0abca8325c227693f7f33f82957811348c469
redcarpet (3.6.1) sha256=d444910e6aa55480c6bcdc0cdb057626e8a32c054c29e793fa642ba2f155f445
regexp_parser (2.12.0) sha256=35a916a1d63190ab5c9009457136ae5f3c0c7512d60291d0d1378ba18ce08ebb
Expand All @@ -206,7 +206,7 @@ CHECKSUMS
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
steep (2.0.0) sha256=6eb0ecc09637bbb54f0a5f2cf63daea6d3208ccace64b4f1107d976333605c30
steep (2.1.0) sha256=1daf53573283b0e6d404a7273cca41fe5c15b14ece05167934f5ffc179e171d9
strscan (3.1.8) sha256=aae2db611a225559f21ffbb71765c9a4e60fd262534a9ea84f4f11c7f32f679e
terminal-table (4.0.0) sha256=f504793203f8251b2ea7c7068333053f0beeea26093ec9962e62ea79f94301d2
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ module Line
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
{%- if model.model.vendorExtensions.get("x-children") != null and model.model.vendorExtensions.get("x-discriminator-property") != null %}
klass = detect_class(type: symbolized_args[:{{ model.model.vendorExtensions.get("x-discriminator-property") }}])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
{%- endif %}
{%- set steepIgnore = '' -%}
{%- for p in model.model.requiredVars %}{%- if p.defaultValue == null and model.model.vendorExtensions.get("x-selector").propertyName != p.name %}{%- set steepIgnore = ' # steep:ignore InsufficientKeywordArguments' %}{%- endif %}{%- endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/demographic_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/flex_box_background.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/flex_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/flex_container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/imagemap_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/mention_target.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/recipient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/substitution_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/messaging_api/model/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/webhook/model/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/webhook/model/membership_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/webhook/model/mentionee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/webhook/model/message_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/webhook/model/module_content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
2 changes: 1 addition & 1 deletion lib/line/bot/v2/webhook/model/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def initialize(
def self.create(args)
symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
klass = detect_class(type: symbolized_args[:type])
return klass.new(**symbolized_args) if klass # steep:ignore UnannotatedEmptyCollection
return klass.new(**symbolized_args) if klass
return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
end

Expand Down
20 changes: 0 additions & 20 deletions rbs_collection.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ gems:
revision: 0ef449166f72c767f58f920cc36aca818fbf082f
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: date
version: '0'
source:
type: stdlib
- name: dbm
version: '0'
source:
type: stdlib
- name: diff-lcs
version: '1.5'
source:
Expand Down Expand Up @@ -89,14 +81,6 @@ gems:
version: 1.9.0
source:
type: rubygems
- name: pstore
version: '0'
source:
type: stdlib
- name: psych
version: '0'
source:
type: stdlib
- name: rdoc
version: '0'
source:
Expand All @@ -105,10 +89,6 @@ gems:
version: '0'
source:
type: stdlib
- name: stringio
version: '0'
source:
type: stdlib
- name: timeout
version: '0'
source:
Expand Down