Skip to content

Commit

Permalink
Drop support of Ruby 2.7, add support of Ruby 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Sep 25, 2024
1 parent 2dae118 commit f8f7459
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 114 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,13 @@ jobs:
matrix:
os: [ubuntu-latest]
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby: ['2.7', '3.0', '3.1', '3.2']
ruby: ['3.0', '3.1', '3.2', '3.3']
gemfile:
[
'Gemfile',
'gemfiles/faraday0.gemfile',
'gemfiles/faraday1.gemfile',
'gemfiles/faraday2.gemfile',
]
# Faraday 0.x with Ruby 3.x not supported
exclude:
- ruby: '3.0'
gemfile: gemfiles/faraday0.gemfile
- ruby: '3.1'
gemfile: gemfiles/faraday0.gemfile
- ruby: '3.2'
gemfile: gemfiles/faraday0.gemfile
runs-on: ${{ matrix.os }}
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0
Exclude:
- bin/*
- gemfiles/*
Expand Down
Binary file added gemfiles/.DS_Store
Binary file not shown.
8 changes: 0 additions & 8 deletions gemfiles/faraday0.gemfile

This file was deleted.

94 changes: 0 additions & 94 deletions gemfiles/faraday0.gemfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion netbox-client-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }

spec.required_ruby_version = '>= 2.7.0'
spec.required_ruby_version = '>= 3.0.0'

spec.add_dependency 'dry-configurable', '~> 1'
spec.add_dependency 'faraday', '>= 0.11.0', '< 3'
Expand Down

0 comments on commit f8f7459

Please sign in to comment.