diff --git a/.circleci/config.yml b/.circleci/config.yml index a4eca7a..71bc03a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -10,15 +10,9 @@ ruby_env: &ruby_env RAILS_ENV: test RUBY_VERSION: <> docker: - - image: circleci/ruby:<> + - image: cimg/ruby:<> executors: - ruby_2_6: - <<: *ruby_env - parameters: - ruby-version: - type: string - default: "2.6" ruby_2_7: <<: *ruby_env parameters: @@ -31,6 +25,12 @@ executors: ruby-version: type: string default: "3.0" + ruby_3_1: + <<: *ruby_env + parameters: + ruby-version: + type: string + default: "3.1" commands: pre-setup: steps: @@ -41,13 +41,25 @@ commands: gem_cache_key: type: string default: gem-cache-v2 + grpc_ruby_build_procs: + type: integer + default: 4 steps: - restore_cache: keys: - <>-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }} - <>-{{ arch }}-{{ .Branch }} - <> - - run: bundle check || bundle install --path vendor/bundle + - run: + name: "Bundle install" + command: | + export GRPC_RUBY_BUILD_PROCS=<> + # due to needing GRPC_RUBY_BUILD_PROCS, we need to explicitly install at least this version + gem install grpc -v '>= 1.44.0.pre2' --verbose --no-document + bundle config set --local path 'vendor/bundle' + bundle lock --add-platform x86_64-linux + bundle check || bundle install + bundle clean - save_cache: key: <>-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }} paths: @@ -89,7 +101,7 @@ jobs: parameters: e: type: executor - default: "ruby_2_6" + default: "ruby_2_7" steps: - pre-setup - bundle-install @@ -99,7 +111,7 @@ jobs: parameters: e: type: executor - default: "ruby_2_6" + default: "ruby_2_7" steps: - pre-setup - bundle-install @@ -109,7 +121,7 @@ jobs: parameters: e: type: executor - default: "ruby_2_6" + default: "ruby_2_7" steps: - pre-setup - bundle-install @@ -117,17 +129,6 @@ jobs: workflows: version: 2 - ruby_2_6: - jobs: - - bundle-audit: - name: "ruby-2_6-bundle_audit" - e: "ruby_2_6" - - rubocop: - name: "ruby-2_6-rubocop" - e: "ruby_2_6" - - rspec-unit: - name: "ruby-2_6-rspec" - e: "ruby_2_6" ruby_2_7: jobs: - bundle-audit: @@ -150,3 +151,14 @@ workflows: - rspec-unit: name: "ruby-3_0-rspec" e: "ruby_3_0" + ruby_3_1: + jobs: + - bundle-audit: + name: "ruby-3_1-bundle_audit" + e: "ruby_3_1" + - rubocop: + name: "ruby-3_1-rubocop" + e: "ruby_3_1" + - rspec-unit: + name: "ruby-3_1-rspec" + e: "ruby_3_1" diff --git a/.rubocop.yml b/.rubocop.yml index 60c4796..9585e5d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,5 @@ AllCops: - TargetRubyVersion: 2.6 + TargetRubyVersion: 2.7 Exclude: - spec/**/* - .bundle/**/* diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ddc754..2cf834f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ Changelog for the gruf-lightstep gem. ### Pending Release +- Add support for Ruby 3.1 +- Drop support for Ruby 2.6 + ### 1.5.1 - Remove unnecessarily strict dev dependencies diff --git a/gruf-lightstep.gemspec b/gruf-lightstep.gemspec index f1d32a7..72238b5 100644 --- a/gruf-lightstep.gemspec +++ b/gruf-lightstep.gemspec @@ -32,7 +32,7 @@ Gem::Specification.new do |spec| spec.files = Dir['README.md', 'CHANGELOG.md', 'CODE_OF_CONDUCT.md', 'lib/**/*', 'gruf-lightstep.gemspec'] spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 2.6' + spec.required_ruby_version = '>= 2.7' spec.add_development_dependency 'bundler-audit', '>= 0.6' spec.add_development_dependency 'pry', '>= 0.13' diff --git a/lib/gruf/lightstep/version.rb b/lib/gruf/lightstep/version.rb index de7398b..a034723 100644 --- a/lib/gruf/lightstep/version.rb +++ b/lib/gruf/lightstep/version.rb @@ -17,6 +17,6 @@ # module Gruf module Lightstep - VERSION = '1.5.2.pre' + VERSION = '1.6.0.pre' end end