Skip to content

Commit 440428d

Browse files
authored
Merge pull request #107 from fastruby/add-ruby-3-2-support
Support Ruby 3.2
2 parents 4754640 + d861650 commit 440428d

File tree

6 files changed

+19
-5
lines changed

6 files changed

+19
-5
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
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 }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## main [(unreleased)](https://github.com/fastruby/skunk/compare/v0.5.2...HEAD)
99

1010
* <INSERT YOUR FEATURE OR BUGFIX HERE>
11+
* [FEATURE: Add Ruby 3.2 Support](https://github.com/fastruby/skunk/pull/106)
1112
* [BUGFIX: Fix skunk workflow](https://github.com/fastruby/skunk/pull/104)
1213
* [BUGFIX: Fix documentation and refactor `skunk_score` method](https://github.com/fastruby/skunk/pull/102)
1314
* [FEATURE: Improve main workflow](https://github.com/fastruby/skunk/pull/99)

Gemfile

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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 "simplecov", "< 0.19.0"
11+
gem "vcr", "< 6.1.0"

skunk.gemspec

Lines changed: 1 addition & 2 deletions
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)