From f8f7459d790667de55e9d72bb5be09482e37840a Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Wed, 25 Sep 2024 17:07:00 +0200 Subject: [PATCH] Drop support of Ruby 2.7, add support of Ruby 3.3 --- .github/workflows/rspec.yml | 11 +--- .rubocop.yml | 2 +- gemfiles/.DS_Store | Bin 0 -> 6148 bytes gemfiles/faraday0.gemfile | 8 --- gemfiles/faraday0.gemfile.lock | 94 --------------------------------- netbox-client-ruby.gemspec | 2 +- 6 files changed, 3 insertions(+), 114 deletions(-) create mode 100644 gemfiles/.DS_Store delete mode 100644 gemfiles/faraday0.gemfile delete mode 100644 gemfiles/faraday0.gemfile.lock diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index 0f4cfbf..e059115 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -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 }} diff --git a/.rubocop.yml b/.rubocop.yml index 7994466..830f0f9 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,7 +6,7 @@ require: AllCops: NewCops: enable - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.0 Exclude: - bin/* - gemfiles/* diff --git a/gemfiles/.DS_Store b/gemfiles/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 1) - faraday (>= 0.11.0, < 3) - faraday-detailed_logger (~> 2.1) - ipaddress (~> 0.8, >= 0.8.3) - openssl (>= 2.0.5) - -GEM - remote: https://rubygems.org/ - specs: - ast (2.4.2) - coderay (1.1.3) - concurrent-ruby (1.2.2) - diff-lcs (1.5.0) - dry-configurable (1.0.1) - dry-core (~> 1.0, < 2) - zeitwerk (~> 2.6) - dry-core (1.0.0) - concurrent-ruby (~> 1.0) - zeitwerk (~> 2.6) - faraday (0.11.0) - multipart-post (>= 1.2, < 3) - faraday-detailed_logger (2.4.0) - faraday (>= 0.8, < 2) - zeitwerk (~> 2.0) - faraday_middleware (0.14.0) - faraday (>= 0.7.4, < 1.0) - ipaddress (0.8.3) - method_source (1.0.0) - multipart-post (2.3.0) - openssl (3.2.0) - parallel (1.23.0) - parser (3.2.2.3) - ast (~> 2.4.1) - racc - pry (0.14.2) - coderay (~> 1.1) - method_source (~> 1.0) - racc (1.7.1) - rainbow (3.1.1) - rake (13.0.6) - regexp_parser (2.8.1) - rexml (3.2.6) - rspec (3.12.0) - rspec-core (~> 3.12.0) - rspec-expectations (~> 3.12.0) - rspec-mocks (~> 3.12.0) - rspec-core (3.12.2) - rspec-support (~> 3.12.0) - rspec-expectations (3.12.3) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-mocks (3.12.6) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-support (3.12.1) - rubocop (0.93.1) - parallel (~> 1.10) - parser (>= 2.7.1.5) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8) - rexml - rubocop-ast (>= 0.6.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.29.0) - parser (>= 3.2.1.0) - rubocop-rspec (1.44.1) - rubocop (~> 0.87) - rubocop-ast (>= 0.7.1) - ruby-progressbar (1.13.0) - unicode-display_width (1.8.0) - zeitwerk (2.6.12) - -PLATFORMS - arm64-darwin-22 - x86_64-linux - -DEPENDENCIES - bundler (~> 2.1) - faraday (= 0.11) - faraday_middleware (< 1) - netbox-client-ruby! - pry (~> 0.10) - rake (~> 13) - rspec (~> 3.5) - rubocop (~> 0.48) - rubocop-rspec (~> 1.15) - -BUNDLED WITH - 2.4.10 diff --git a/netbox-client-ruby.gemspec b/netbox-client-ruby.gemspec index 6010199..35ae9ff 100644 --- a/netbox-client-ruby.gemspec +++ b/netbox-client-ruby.gemspec @@ -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'