Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@ jobs:
matrix:
os: [ "ubuntu-22.04", "macos-15-intel" ] # , windows-latest ]
ruby-version: [
"2.4",
"2.5",
"2.6",
"2.7",
"3.0",
"3.1",
"3.2",
"3.3",
"2.0",
"3.4",
]

Expand Down Expand Up @@ -74,6 +67,6 @@ jobs:
run: bundle exec rspec

- name: Run rubocop
# rubocop does not work on old versions of Ruby.
if: ${{ matrix.ruby-version != '2.4' && matrix.ruby-version != '2.5' }}
# rubocop 1.39 does not work on Ruby up to 2.5.
if: ${{ matrix.ruby-version != '2.0' }}
run: bundle exec rubocop
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ AllCops:

Gemspec/RequiredRubyVersion:
Enabled: false

Gemspec/RubyVersionGlobalsUsage:
Enabled: false
6 changes: 3 additions & 3 deletions crate_ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rubocop-rspec'

# Needed by rubocop.
spec.add_development_dependency 'base64'
spec.add_development_dependency 'benchmark'
spec.add_development_dependency 'ostruct'
spec.add_development_dependency 'base64' if RUBY_VERSION >= '2.3'
spec.add_development_dependency 'benchmark' if RUBY_VERSION >= '2.3'
spec.add_development_dependency 'ostruct' if RUBY_VERSION >= '2.3'
end