From f1498b219c0a2fcc3fbe069954b697bcca5862e8 Mon Sep 17 00:00:00 2001 From: akouryy Date: Thu, 25 May 2023 20:12:19 +0900 Subject: [PATCH] Add rbs_collection.yaml --- .github/workflows/test.yaml | 1 + .gitignore | 1 + rbs_collection.lock.yaml | 26 ++++++++++++++++++++++++++ rbs_collection.yaml | 22 ++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 rbs_collection.lock.yaml create mode 100644 rbs_collection.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 483afb45..97e32986 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -35,6 +35,7 @@ jobs: ruby-version: ${{ matrix.ruby }} bundler-cache: true - run: bundle install + - run: bundle exec rbs collection install - run: bundle exec steep check test-ruby: runs-on: ubuntu-20.04 diff --git a/.gitignore b/.gitignore index e14c5727..6061f25a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/.gem_rbs_collection/ /tmp .irbrc /Gemfile.lock diff --git a/rbs_collection.lock.yaml b/rbs_collection.lock.yaml new file mode 100644 index 00000000..c6f72890 --- /dev/null +++ b/rbs_collection.lock.yaml @@ -0,0 +1,26 @@ +--- +sources: +- type: git + name: ruby/gem_rbs_collection + revision: 28208148c7e64a25e9b86b9723b4c3a2cef14e81 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +path: ".gem_rbs_collection" +gems: +- name: erb + version: '0' + source: + type: stdlib +- name: stackprof + version: '0.2' + source: + type: git + name: ruby/gem_rbs_collection + revision: 28208148c7e64a25e9b86b9723b4c3a2cef14e81 + remote: https://github.com/ruby/gem_rbs_collection.git + repo_dir: gems +- name: strscan + version: '0' + source: + type: stdlib +gemfile_lock_path: Gemfile.lock diff --git a/rbs_collection.yaml b/rbs_collection.yaml new file mode 100644 index 00000000..248712f2 --- /dev/null +++ b/rbs_collection.yaml @@ -0,0 +1,22 @@ +# 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: + - name: erb + - name: strscan + # Skip loading rbs gem's RBS. + # It's unnecessary if you don't use rbs as a library. + - name: rbs + ignore: true