Skip to content

Commit

Permalink
Merge pull request #107 from fastruby/add-ruby-3-2-support
Browse files Browse the repository at this point in the history
Support Ruby 3.2
  • Loading branch information
etagwerker authored Feb 14, 2023
2 parents 4754640 + d861650 commit 440428d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.4
bundler-cache: true
- name: Build and run tests
env:
BUNDLE_GEMFILE: "Gemfile-Ruby-2-4"
Expand All @@ -35,8 +34,9 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5
bundler-cache: true
- name: Build and run tests
env:
BUNDLE_GEMFILE: "Gemfile-Ruby-2-5"
run: |
gem install bundler -v 2.3.26
bundle install --jobs 4 --retry 3
Expand All @@ -47,7 +47,7 @@ jobs:
strategy:
matrix:
os: [ubuntu]
ruby-version: [2.6, 2.7, "3.0", 3.1]
ruby-version: [2.6, 2.7, "3.0", 3.1, 3.2]
steps:
- uses: actions/checkout@v2
- name: Setup Ruby ${{ matrix.ruby-version }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## main [(unreleased)](https://github.com/fastruby/skunk/compare/v0.5.2...HEAD)

* <INSERT YOUR FEATURE OR BUGFIX HERE>
* [FEATURE: Add Ruby 3.2 Support](https://github.com/fastruby/skunk/pull/106)
* [BUGFIX: Fix skunk workflow](https://github.com/fastruby/skunk/pull/104)
* [BUGFIX: Fix documentation and refactor `skunk_score` method](https://github.com/fastruby/skunk/pull/102)
* [FEATURE: Improve main workflow](https://github.com/fastruby/skunk/pull/99)
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

# Specify your gem's dependencies in skunk.gemspec
gemspec

gem "vcr", "~> 6.1.0"
1 change: 1 addition & 0 deletions Gemfile-Ruby-2-4
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
gemspec

gem "simplecov", "< 0.19.0"
gem "vcr", "< 6.1.0"
11 changes: 11 additions & 0 deletions Gemfile-Ruby-2-5
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# frozen_string_literal: true

source "https://rubygems.org"

git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

# Specify your gem's dependencies in skunk.gemspec
gemspec

gem "simplecov", "< 0.19.0"
gem "vcr", "< 6.1.0"
3 changes: 1 addition & 2 deletions skunk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
spec.description = "Knows how to calculate the SkunkScore for a set of Ruby modules"
spec.homepage = "https://github.com/fastruby/skunk"

spec.required_ruby_version = [">= 2.4.0", "< 3.2"]
spec.required_ruby_version = [">= 2.4.0", "< 3.3"]

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

0 comments on commit 440428d

Please sign in to comment.