From fe9927a5e1797df1e0bcb467601f2f0895fc7909 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 10 Feb 2026 19:06:06 +0100 Subject: [PATCH 1/5] CI: Remove attribute from `ruby/setup-ruby` action according to GitHub --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7b79c33..71138e4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -45,7 +45,6 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby-version }} - architecture: x64 - name: Caching of CrateDB uses: actions/cache@v5 From 79d094dfc6ef26676487e917579353fe97a6a0df Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 10 Feb 2026 18:55:19 +0100 Subject: [PATCH 2/5] CI: Validate support on Ruby 3.4 --- .github/workflows/tests.yml | 1 + Gemfile.lock | 4 ++++ crate_ruby.gemspec | 6 +++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 71138e4..42d1d63 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,6 +33,7 @@ jobs: "3.1", "3.2", "3.3", + "3.4", ] name: Ruby ${{ matrix.ruby-version }} on OS ${{ matrix.os }} diff --git a/Gemfile.lock b/Gemfile.lock index 4f7a8a6..16a5e72 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,9 +8,11 @@ GEM specs: ast (2.4.3) base64 (0.3.0) + benchmark (0.5.0) diff-lcs (1.6.2) json (2.18.1) os (1.1.4) + ostruct (0.6.3) parallel (1.27.0) parser (3.3.10.1) ast (~> 2.4.1) @@ -60,9 +62,11 @@ PLATFORMS DEPENDENCIES base64 + benchmark bundler crate_ruby! os + ostruct rspec (~> 3.10) rubocop (< 1.40) rubocop-rspec diff --git a/crate_ruby.gemspec b/crate_ruby.gemspec index 4c1add3..7fbdcb5 100644 --- a/crate_ruby.gemspec +++ b/crate_ruby.gemspec @@ -55,10 +55,14 @@ Gem::Specification.new do |spec| 'rubygems_mfa_required' => 'true' } - spec.add_development_dependency 'base64' spec.add_development_dependency 'bundler' spec.add_development_dependency 'os' spec.add_development_dependency 'rspec', '~> 3.10' spec.add_development_dependency 'rubocop', '< 1.40' spec.add_development_dependency 'rubocop-rspec' + + # Needed by rubocop. + spec.add_development_dependency 'base64' + spec.add_development_dependency 'benchmark' + spec.add_development_dependency 'ostruct' end From 8078e38d5d9896107de36dafc246dcfc5e6337b4 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 10 Feb 2026 19:02:41 +0100 Subject: [PATCH 3/5] CI: Don't limit bundler version --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 42d1d63..9e6586c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,7 +63,7 @@ jobs: - name: Bundle install run: | - gem install bundler --version '< 2.4' + gem install bundler bundle config path vendor/bundle bundle install From c17909a4c5334c9b26fb2fdc0ae8c7e2c9d66d88 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 10 Feb 2026 19:05:31 +0100 Subject: [PATCH 4/5] CI: Don't install bundler at all --- .github/workflows/tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9e6586c..fa00d35 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,7 +63,6 @@ jobs: - name: Bundle install run: | - gem install bundler bundle config path vendor/bundle bundle install From 6b8493e06fde578b7a6eca43fbd8b8b60acd4460 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 10 Feb 2026 19:25:25 +0100 Subject: [PATCH 5/5] Project: Remove dependency lock file `Gemfile.lock`. This is a library. --- .github/workflows/tests.yml | 2 +- .gitignore | 1 + DEVELOP.rst | 8 ---- Gemfile.lock | 75 ------------------------------------- 4 files changed, 2 insertions(+), 84 deletions(-) delete mode 100644 Gemfile.lock diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fa00d35..38e596b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -59,7 +59,7 @@ jobs: id: cache-gems with: path: vendor/bundle - key: gems-os=${{ matrix.os }}-ruby=${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} + key: gems-os=${{ matrix.os }}-ruby=${{ matrix.ruby-version }}-${{ hashFiles('**/*.gemspec') }} - name: Bundle install run: | diff --git a/.gitignore b/.gitignore index c89f452..dbae69c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.gem +*.lock *.rbc .bundle .config diff --git a/DEVELOP.rst b/DEVELOP.rst index 23e82eb..80d06cb 100644 --- a/DEVELOP.rst +++ b/DEVELOP.rst @@ -28,14 +28,6 @@ Update linter violations file:: $ bundle exec rubocop --auto-gen-config -Dependencies -============ - -Update lock file ``Gemfile.lock``:: - - $ bundle update - - Preparing a Release =================== diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 16a5e72..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,75 +0,0 @@ -PATH - remote: . - specs: - crate_ruby (0.2.1) - -GEM - remote: https://rubygems.org/ - specs: - ast (2.4.3) - base64 (0.3.0) - benchmark (0.5.0) - diff-lcs (1.6.2) - json (2.18.1) - os (1.1.4) - ostruct (0.6.3) - parallel (1.27.0) - parser (3.3.10.1) - ast (~> 2.4.1) - racc - prism (1.9.0) - racc (1.8.1) - rainbow (3.1.1) - regexp_parser (2.11.3) - rexml (3.4.4) - rspec (3.13.2) - rspec-core (~> 3.13.0) - rspec-expectations (~> 3.13.0) - rspec-mocks (~> 3.13.0) - rspec-core (3.13.6) - rspec-support (~> 3.13.0) - rspec-expectations (3.13.5) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.13.0) - rspec-mocks (3.13.7) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.13.0) - rspec-support (3.13.7) - rubocop (1.39.0) - json (~> 2.3) - parallel (~> 1.10) - parser (>= 3.1.2.1) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.23.0, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.49.0) - parser (>= 3.3.7.2) - prism (~> 1.7) - rubocop-rspec (2.17.1) - rubocop (~> 1.33) - ruby-progressbar (1.13.0) - unicode-display_width (2.6.0) - -PLATFORMS - x86_64-darwin-17 - x86_64-darwin-19 - x86_64-darwin-20 - x86_64-darwin-23 - x86_64-linux - -DEPENDENCIES - base64 - benchmark - bundler - crate_ruby! - os - ostruct - rspec (~> 3.10) - rubocop (< 1.40) - rubocop-rspec - -BUNDLED WITH - 2.2.16