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
14 changes: 2 additions & 12 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,8 @@ jobs:
- run: bundle exec rubocop
- run: bundle exec rspec
- run: bundle exec yard stats ./lib/line/bot/v2 --fail-on-warning

rbs:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
with:
ruby-version: '3.2'
- run: gem install rbs
- run: rbs -I sig validate
Comment on lines -40 to -50
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove rbs checks from here after this PR gets approve.
image

- run: bundle exec rbs collection install
- run: bundle exec rbs -I sig validate

pinact:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ source 'https://rubygems.org'
gemspec

gem 'multipart-post', '~> 2.4.1', require: false
gem 'net-http', '~> 0.6.0', require: false

group :development, :test do
# ref: http://docs.rubocop.org/en/latest/installation/
gem 'rack', '~> 3.0'
gem 'rbs', '~> 3.9.2'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we don't write version explicitly, github actions runner uses 2.9.x and throws error.

gem 'rubocop', '~> 1.75.0', require: false
gem 'steep', '~> 1.10.0'
gem 'webrick', '~> 1.9.1'
Expand Down
6 changes: 5 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ GEM
json (2.10.2)
language_server-protocol (3.17.0.4)
lint_roller (1.1.0)
logger (1.7.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.7.0)
minitest (5.25.5)
multipart-post (2.4.1)
net-http (0.6.0)
uri
mutex_m (0.3.0)
parallel (1.26.3)
parser (3.3.7.4)
Expand Down Expand Up @@ -138,8 +140,10 @@ DEPENDENCIES
addressable (~> 2.3)
line-bot-api!
multipart-post (~> 2.4.1)
net-http (~> 0.6.0)
rack (~> 3.0)
rake (~> 13.0)
rbs (~> 3.9.2)
rspec (~> 3.13.0)
rubocop (~> 1.75.0)
steep (~> 1.10.0)
Expand Down
140 changes: 140 additions & 0 deletions rbs_collection.lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
---
path: ".gem_rbs_collection"
gems:
- name: addressable
version: '2.8'
source:
type: git
name: ruby/gem_rbs_collection
revision: 2813b6be44d7617d5defa2aaecdbd4540ee1c418
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: bigdecimal
version: '3.1'
source:
type: git
name: ruby/gem_rbs_collection
revision: 2813b6be44d7617d5defa2aaecdbd4540ee1c418
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: cgi
version: '0'
source:
type: stdlib
- name: diff-lcs
version: '1.5'
source:
type: git
name: ruby/gem_rbs_collection
revision: 2813b6be44d7617d5defa2aaecdbd4540ee1c418
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: digest
version: '0'
source:
type: stdlib
- name: erb
version: '0'
source:
type: stdlib
- name: fileutils
version: '0'
source:
type: stdlib
- name: hashdiff
version: '1.1'
source:
type: git
name: ruby/gem_rbs_collection
revision: 2813b6be44d7617d5defa2aaecdbd4540ee1c418
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: logger
version: '0'
source:
type: stdlib
- name: monitor
version: '0'
source:
type: stdlib
- name: net-http
version: '0'
source:
type: stdlib
- name: net-protocol
version: '0'
source:
type: stdlib
- name: openssl
version: '0'
source:
type: stdlib
- name: optparse
version: '0'
source:
type: stdlib
- name: rack
version: '2.2'
source:
type: git
name: ruby/gem_rbs_collection
revision: 2813b6be44d7617d5defa2aaecdbd4540ee1c418
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: rake
version: '13.0'
source:
type: git
name: ruby/gem_rbs_collection
revision: 2813b6be44d7617d5defa2aaecdbd4540ee1c418
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: ripper
version: '0'
source:
type: stdlib
- name: singleton
version: '0'
source:
type: stdlib
- name: socket
version: '0'
source:
type: stdlib
- name: stringio
version: '0'
source:
type: stdlib
- name: tempfile
version: '0'
source:
type: stdlib
- name: timeout
version: '0'
source:
type: stdlib
- name: uri
version: '0'
source:
type: stdlib
- name: webmock
version: '3.19'
source:
type: git
name: ruby/gem_rbs_collection
revision: 2813b6be44d7617d5defa2aaecdbd4540ee1c418
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
- name: webrick
version: 1.9.1
source:
type: rubygems
- name: yard
version: '0.9'
source:
type: git
name: ruby/gem_rbs_collection
revision: 2813b6be44d7617d5defa2aaecdbd4540ee1c418
remote: https://github.com/ruby/gem_rbs_collection.git
repo_dir: gems
gemfile_lock_path: Gemfile.lock
19 changes: 19 additions & 0 deletions rbs_collection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Download sources
sources:
- type: git
name: ruby/gem_rbs_collection
remote: https://github.com/ruby/gem_rbs_collection.git
revision: main
repo_dir: gems

# You can specify local directories as sources also.
# - type: local
# path: path/to/your/local/repository

# A directory to install the downloaded RBSs
path: .gem_rbs_collection

gems:
# stdlibs
- name: net-http
- name: uri