diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 55cbcb952e..5740532237 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -53,7 +53,13 @@ jobs: ruby-version: ${{ matrix.ruby }} - name: Install dependencies - run: bundle install + run: | + if [[ "${{ matrix.ruby }}" < "3.1" ]]; then + gem install bundler:2.4.22 + bundle _2.4.22_ install + else + bundle install + fi - name: Run tests run: bundle exec rake test diff --git a/Gemfile b/Gemfile index f42af99f61..fdb7b2c838 100644 --- a/Gemfile +++ b/Gemfile @@ -6,9 +6,11 @@ source 'https://rubygems.org' gemspec gem 'benchmark' +gem 'irb' gem 'minitest', '5.26.1' gem 'pry', '0.15.2' gem 'rake', '13.3.1' +gem 'rdoc' gem 'rubocop', '1.81.7' gem 'rubocop-minitest', '0.38.2' gem 'rubocop-rake', '0.7.1' diff --git a/Gemfile.lock b/Gemfile.lock index 38daf95a60..1e694fd9a1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,9 +11,16 @@ GEM benchmark (0.5.0) coderay (1.1.3) concurrent-ruby (1.3.5) + date (3.5.1) docile (1.4.1) + erb (6.0.1) i18n (1.14.7) concurrent-ruby (~> 1.0) + io-console (0.8.2) + irb (1.16.0) + pp (>= 0.6.0) + rdoc (>= 4.0.0) + reline (>= 0.4.2) json (2.16.0) language_server-protocol (3.17.0.5) lint_roller (1.1.0) @@ -24,14 +31,26 @@ GEM ast (~> 2.4.1) racc power_assert (3.0.1) + pp (0.6.3) + prettyprint + prettyprint (0.2.0) prism (1.6.0) pry (0.15.2) coderay (~> 1.1) method_source (~> 1.0) + psych (5.3.1) + date + stringio racc (1.8.1) rainbow (3.1.1) rake (13.3.1) + rdoc (7.0.3) + erb + psych (>= 4.0.0) + tsort regexp_parser (2.11.3) + reline (0.6.3) + io-console (~> 0.5) rubocop (1.81.7) json (~> 2.3) language_server-protocol (~> 3.17.0.2) @@ -60,9 +79,11 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.13.2) simplecov_json_formatter (0.1.4) + stringio (3.2.0) test-unit (3.7.1) power_assert timecop (0.9.10) + tsort (0.2.0) unicode-display_width (3.2.0) unicode-emoji (~> 4.1) unicode-emoji (4.1.0) @@ -75,9 +96,11 @@ PLATFORMS DEPENDENCIES benchmark faker! + irb minitest (= 5.26.1) pry (= 0.15.2) rake (= 13.3.1) + rdoc rubocop (= 1.81.7) rubocop-minitest (= 0.38.2) rubocop-rake (= 0.7.1) @@ -87,4 +110,4 @@ DEPENDENCIES yard (= 0.9.37) BUNDLED WITH - 2.4.22 + 4.0.3