Skip to content

Commit

Permalink
add Ruby 3.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-ishitani committed Dec 27, 2023
1 parent 402938a commit a714e00
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
ruby: ['3.2', '3.1', '3.0']
ruby: ['3.3', '3.2', '3.1', '3.0']
frozen_string_literal: ['yes', 'no']

env:
Expand Down Expand Up @@ -44,6 +44,14 @@ jobs:
run: |
${RGGEN_ROOT}/rggen-devtools/bin/checkout.rb
- name: Checkout stdgems-version gem
uses: actions/checkout@v4
with:
repository: taichi-ishitani/stdgems-version
path: stdgems-version
fetch-depth: 0
submodules: true

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
12 changes: 12 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,15 @@ group :rggen do
gem_patched 'facets'
gem_patched 'rubyzip'
end

if ENV.key?('CI')
if ENV['GITHUB_WORKFLOW'] == 'CI'
require File.join(root, 'stdgems-version/lib/stdgems_version')
gem 'bigdecimal', StdgemsVersion.version('bigdecimal')
gem 'csv', StdgemsVersion.version('csv')
else
# Workaround for 64kramsystem/spreadbase#30
# https://github.com/64kramsystem/spreadbase/issues/30
gem 'bigdecimal'
end
end
3 changes: 2 additions & 1 deletion rggen-spreadsheet-loader.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files lib LICENSE CODE_OF_CONDUCT.md README.md`.split($RS)
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 3.0'
spec.required_ruby_version = Gem::Requirement.new('>= 3.0')

spec.add_runtime_dependency 'csv'
spec.add_runtime_dependency 'simple_xlsx_reader', '>= 1.0.4'
spec.add_runtime_dependency 'spreadbase', '>= 0.4.0'
spec.add_runtime_dependency 'spreadsheet', '>= 1.2.5'
Expand Down

0 comments on commit a714e00

Please sign in to comment.