Skip to content

Commit d6f01e4

Browse files
authored
Support Ruby 3.2 (#105)
* Add support to Ruby 3.2
1 parent be53167 commit d6f01e4

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
uses: ruby/setup-ruby@v1
1919
with:
2020
ruby-version: 2.4
21-
bundler-cache: true
2221
- name: Build and run tests
2322
env:
2423
BUNDLE_GEMFILE: "Gemfile-Ruby-2-4"
@@ -35,8 +34,9 @@ jobs:
3534
uses: ruby/setup-ruby@v1
3635
with:
3736
ruby-version: 2.5
38-
bundler-cache: true
3937
- name: Build and run tests
38+
env:
39+
BUNDLE_GEMFILE: "Gemfile-Ruby-2-5"
4040
run: |
4141
gem install bundler -v 2.3.26
4242
bundle install --jobs 4 --retry 3
@@ -47,7 +47,7 @@ jobs:
4747
strategy:
4848
matrix:
4949
os: [ubuntu]
50-
ruby-version: [2.6, 2.7, "3.0", 3.1]
50+
ruby-version: [2.6, 2.7, "3.0", 3.1, 3.2]
5151
steps:
5252
- uses: actions/checkout@v2
5353
- name: Setup Ruby ${{ matrix.ruby-version }}

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
66

77
# Specify your gem's dependencies in skunk.gemspec
88
gemspec
9+
10+
gem "vcr", "~> 6.1.0"

Gemfile-Ruby-2-4

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
88
gemspec
99

1010
gem "simplecov", "< 0.19.0"
11+
gem "vcr", "< 6.1.0"

Gemfile-Ruby-2-5

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6+
7+
# Specify your gem's dependencies in skunk.gemspec
8+
gemspec
9+
10+
gem "vcr", "< 6.1.0"

skunk.gemspec

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
1414
spec.description = "Knows how to calculate the SkunkScore for a set of Ruby modules"
1515
spec.homepage = "https://github.com/fastruby/skunk"
1616

17-
spec.required_ruby_version = [">= 2.4.0", "< 3.2"]
17+
spec.required_ruby_version = [">= 2.4.0", "< 3.3"]
1818

1919
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
2020
# to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -52,6 +52,5 @@ Gem::Specification.new do |spec|
5252
spec.add_development_dependency "rubocop", "~> 1.0"
5353
spec.add_development_dependency "simplecov", "~> 0.18"
5454
spec.add_development_dependency "simplecov-console", "0.5.0"
55-
spec.add_development_dependency "vcr", "~> 6.0.0"
5655
spec.add_development_dependency "webmock", "~> 3.10.0"
5756
end

0 commit comments

Comments
 (0)