Skip to content

Commit

Permalink
Test diff ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kla committed Jul 6, 2024
1 parent e0cdf2f commit ead9b9f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ env:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["2.7", "3.0", "3.1", "3.2", "3.3"]

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -16,5 +20,7 @@ jobs:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}-v1
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- run: bin/setup
- run: bin/test
14 changes: 14 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
appraise "ruby-2.7" do
end

appraise "ruby-3.0" do
end

appraise "ruby-3.1" do
end

appraise "ruby-3.2" do
end

appraise "ruby-3.3" do
end
13 changes: 8 additions & 5 deletions time_slice.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@ Gem::Specification.new do |spec|
spec.summary = "A Ruby library for slicing time."
spec.homepage = "https://github.com/kla/time_slice"

spec.files = ::Dir.glob("{lib}/**/*")
spec.files = ::Dir.glob("lib/**/*")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.7.0"

spec.add_dependency("activesupport", "> 5.1")
spec.add_dependency("rounding")
spec.add_dependency("rounding", "> 1.0")

spec.add_development_dependency("rake")
spec.add_development_dependency("minitest")
spec.add_development_dependency("mocha")
spec.add_development_dependency("appraisal", "~> 2.5.0")
spec.add_development_dependency("minitest", "~> 5.24.1")
spec.add_development_dependency("mocha", "~> 2.4.0")
spec.add_development_dependency("rake", "~> 13.2.1")
end

0 comments on commit ead9b9f

Please sign in to comment.