Skip to content

Commit

Permalink
Merge pull request #16 from bigcommerce/ruby-3
Browse files Browse the repository at this point in the history
Add support for Ruby 3.0
  • Loading branch information
splittingred authored Apr 16, 2021
2 parents 442307b + 6859a0f commit 898ed62
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3 deletions.
43 changes: 41 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,32 @@ executors:
parameters:
ruby-version:
type: string
default: "2.6.3"

default: "2.6"
ruby_2_7:
<<: *ruby_env
parameters:
ruby-version:
type: string
default: "2.7"
ruby_3_0:
<<: *ruby_env
parameters:
ruby-version:
type: string
default: "3.0"
commands:
pre-setup:
steps:
- add_ssh_keys
- checkout
bundle-install:
steps:
- run:
name: "Install bundler 1.17.3"
command: |
echo 'export BUNDLER_VERSION=1.17.3' >> $BASH_ENV
source $BASH_ENV
gem install bundler:1.17.3
- restore_cache:
keys:
- gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
Expand Down Expand Up @@ -113,3 +130,25 @@ workflows:
- rspec-unit:
name: "ruby-2_6-rspec"
e: "ruby_2_6"
ruby_2_7:
jobs:
- bundle-audit:
name: "ruby-2_7-bundle_audit"
e: "ruby_2_7"
- rubocop:
name: "ruby-2_7-rubocop"
e: "ruby_2_7"
- rspec-unit:
name: "ruby-2_7-rspec"
e: "ruby_2_7"
ruby_3_0:
jobs:
- bundle-audit:
name: "ruby-3_0-bundle_audit"
e: "ruby_3_0"
- rubocop:
name: "ruby-3_0-rubocop"
e: "ruby_3_0"
- rspec-unit:
name: "ruby-3_0-rspec"
e: "ruby_3_0"
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Changelog for the gruf-lightstep gem.

### Pending Release

- Add official support for Ruby 3

### 1.4.0

- Ensure `error` span tag is always set when an exception is raised
Expand Down
2 changes: 1 addition & 1 deletion gruf-lightstep.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.6'

spec.add_development_dependency 'bundler', '~> 1.11'
spec.add_development_dependency 'bundler-audit', '~> 0.6'
Expand Down

0 comments on commit 898ed62

Please sign in to comment.