Skip to content

Commit

Permalink
Centralize Ruby Version to .ruby-version
Browse files Browse the repository at this point in the history
Set minimum version of Rubocop to 1.61
This is to support `.ruby-version`: rubocop/rubocop#12645
  • Loading branch information
george-ma authored and jenshenny committed May 1, 2024
1 parent 1254a5c commit 26ddcca
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/benchmark.yml
Expand Up @@ -13,7 +13,6 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true

- name: Run benchmark on branch
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Expand Up @@ -13,7 +13,6 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true

- name: Run Rubocop
Expand Down
1 change: 0 additions & 1 deletion .rubocop.yml
Expand Up @@ -5,7 +5,6 @@ require:
- ./lib/statsd/instrument/rubocop.rb

AllCops:
TargetRubyVersion: 2.7
UseCache: true
SuggestExtensions: false
CacheRootDirectory: tmp/rubocop
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
@@ -0,0 +1 @@
3.3.0
2 changes: 2 additions & 0 deletions statsd-instrument.gemspec
Expand Up @@ -20,5 +20,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.6.0"

spec.metadata['allowed_push_host'] = "https://rubygems.org"
end

0 comments on commit 26ddcca

Please sign in to comment.