Skip to content

Commit

Permalink
Merge pull request #9 from bigcommerce/ruby3
Browse files Browse the repository at this point in the history
Add Ruby 3.0 support
  • Loading branch information
splittingred authored Apr 15, 2021
2 parents db6b928 + b9131ce commit c2f8957
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
27 changes: 25 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ executors:
parameters:
ruby-version:
type: string
default: "2.6.6"
default: "2.6"
ruby_2_7:
<<: *ruby_env
parameters:
ruby-version:
type: string
default: "2.7.1"
default: "2.7"
ruby_3_0:
<<: *ruby_env
parameters:
ruby-version:
type: string
default: "3.0"

commands:
pre-setup:
Expand All @@ -33,6 +39,12 @@ commands:
- 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 @@ -130,3 +142,14 @@ workflows:
- 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-prometheus gem.

### Pending Release

- Add Ruby 3 support

### 2.0.0

- Add server interceptor for measuring counters/histograms for server metrics
Expand Down
4 changes: 2 additions & 2 deletions gruf-prometheus.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ Gem::Specification.new do |spec|

spec.files = Dir['README.md', 'CHANGELOG.md', 'CODE_OF_CONDUCT.md', 'lib/**/*', 'gruf-prometheus.gemspec']
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.6'
spec.required_ruby_version = '>= 2.6', '< 3.1'

# Runtime dependencies
spec.add_runtime_dependency 'bc-prometheus-ruby', '~> 0.3'
spec.add_runtime_dependency 'bc-prometheus-ruby', '>= 0.5.1'
spec.add_runtime_dependency 'gruf', '>= 2.7'

# Development dependencies
Expand Down

0 comments on commit c2f8957

Please sign in to comment.