Skip to content

Commit

Permalink
Merge pull request #1 from hidakatsuya/test-against-ruby3-or-later
Browse files Browse the repository at this point in the history
Test against ruby3 or later
  • Loading branch information
hidakatsuya committed Nov 10, 2023
2 parents c13d626 + 3bb550d commit 1d1c774
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,27 @@ jobs:
strategy:
matrix:
ruby_version:
- 2.6
- 2.7
- 3.0
- '3.0'
- '3.1'
- '3.2'
prawn_version:
- 2.3
- 2.4
- '2.3'
- '2.4'
exclude:
- ruby_version: 3.0
prawn_version: 2.3
- ruby_version: '3.0'
prawn_version: '2.3'

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- uses: hidakatsuya/setup-diff-pdf@v1
with:
diff-pdf-version: 0.5
diff-pdf-version: '0.5'

- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true

- name: Install dependencies
run: |
gem install bundler
bundle install --gemfile test/gemfiles/prawn-${{ matrix.prawn_version }}.gemfile --jobs 4 --retry 3
- name: Run tests
run: bundle exec rake test
- run: bundle exec rake test
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ require 'prawn/disable_word_break'

### Ruby

2.6, 2.7, 3.0
3.0, 3.1, 3.2

### Prawn

2.3+
2.3, 2.4

## Development

Expand Down
4 changes: 3 additions & 1 deletion prawn-disable_word_break.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ Gem::Specification.new do |spec|
spec.description = 'Prawn::DisableWordBreak is an extension for Prawn that disables word-breaking by character such as space and hyphen.'
spec.homepage = 'https://github.com/hidakatsuya/prawn-disable_word_break'
spec.license = 'MIT'
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
spec.required_ruby_version = Gem::Requirement.new('>= 3.0.0')

spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
end
spec.require_paths = ['lib']

spec.add_dependency 'prawn', '~> 2.3'
spec.add_runtime_dependency 'matrix', '~> 0.4'

spec.add_development_dependency 'rake', '>= 0'
spec.add_development_dependency 'test-unit', '>= 3.3.5'
spec.add_development_dependency 'test-unit-rr', '>= 1.0.5'
Expand Down

0 comments on commit 1d1c774

Please sign in to comment.