Skip to content

Commit 8f0eb33

Browse files
committed
Add ruby 3.4 CI and gem base64 listed
1 parent 5380532 commit 8f0eb33

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ubuntu]
12-
ruby-version: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
12+
ruby-version: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Setup Ruby ${{ matrix.ruby-version }}
@@ -19,6 +19,18 @@ jobs:
1919
bundler-cache: true
2020
- name: Build and run tests
2121
run: |
22-
gem install bundler -v 2.4.6
22+
RUBY_VERSION_STR="${{ matrix.ruby-version }}"
23+
case "$RUBY_VERSION_STR" in
24+
2.6*) BUNDLER_CONSTRAINT=">= 2.2.0, < 2.4.22" ;;
25+
2.7*) BUNDLER_CONSTRAINT="2.4.22" ;;
26+
3.0) BUNDLER_CONSTRAINT=">= 2.4.0, < 2.7.2" ;;
27+
3.1) BUNDLER_CONSTRAINT=">= 2.4.0, < 2.7.2" ;;
28+
3.2) BUNDLER_CONSTRAINT=">= 2.7.2, < 4" ;;
29+
3.3) BUNDLER_CONSTRAINT=">= 2.7.2, < 4" ;;
30+
3.4) BUNDLER_CONSTRAINT=">= 2.7.2, < 4" ;;
31+
esac
32+
33+
gem install bundler -v "$BUNDLER_CONSTRAINT"
34+
echo "Bundler installed: $(bundle -v)"
2335
bundle install --jobs 4 --retry 3
2436
bundle exec rake

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
77
# Specify your gem's dependencies in skunk.gemspec
88
gemspec
99

10+
gem "base64", "~> 0.3.0" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4")
1011
gem "reek", "~> 6.1"
1112
gem "rubocop", "~> 1.48"
1213
gem "vcr", "~> 6.1.0"

0 commit comments

Comments
 (0)