From edf66a3439573a380ed246580b848815d9894315 Mon Sep 17 00:00:00 2001 From: George Ma Date: Mon, 25 Mar 2024 13:48:07 -0400 Subject: [PATCH] Set minimum version for Rubocop to 1.61 This is to support `.ruby-version`: https://github.com/rubocop/rubocop/pull/12645 Also commit the Gemfile.lock: https://bundler.io/guides/faq.html#:~:text=A%3A%20Yes%2C%20you%20should%20commit,towards%20new%20and%20existing%20contributors. --- .gitignore | 1 - .rubocop.yml | 1 - .ruby-version | 1 + Gemfile | 2 +- Gemfile.lock | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 .ruby-version create mode 100644 Gemfile.lock diff --git a/.gitignore b/.gitignore index 804eafeb..1de0887d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ doc *.gem .bundle -Gemfile.lock pkg/* vendor/ tmp/* diff --git a/.rubocop.yml b/.rubocop.yml index 091306dc..9f8d0777 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,7 +5,6 @@ require: - ./lib/statsd/instrument/rubocop.rb AllCops: - TargetRubyVersion: 2.7 UseCache: true SuggestExtensions: false CacheRootDirectory: tmp/rubocop diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 00000000..15a27998 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.3.0 diff --git a/Gemfile b/Gemfile index a8a977f2..cf5c75b2 100644 --- a/Gemfile +++ b/Gemfile @@ -8,6 +8,6 @@ gem "minitest" gem "rspec" gem "mocha" gem "yard" -gem "rubocop", ">= 1.0" +gem "rubocop", "~> 1.61" gem "rubocop-shopify", require: false gem "benchmark-ips" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 00000000..b4fbac4b --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,75 @@ +PATH + remote: . + specs: + statsd-instrument (3.7.0) + +GEM + remote: https://rubygems.org/ + specs: + ast (2.4.2) + benchmark-ips (2.13.0) + diff-lcs (1.5.1) + json (2.7.1) + language_server-protocol (3.17.0.3) + minitest (5.22.3) + mocha (2.1.0) + ruby2_keywords (>= 0.0.5) + parallel (1.24.0) + parser (3.3.0.5) + ast (~> 2.4.1) + racc + racc (1.7.3) + rainbow (3.1.1) + rake (13.1.0) + regexp_parser (2.9.0) + rexml (3.2.6) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.1) + rubocop (1.62.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8, < 3.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.31.1, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.31.2) + parser (>= 3.3.0.4) + rubocop-shopify (2.15.1) + rubocop (~> 1.51) + ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) + unicode-display_width (2.5.0) + yard (0.9.36) + +PLATFORMS + arm64-darwin-23 + ruby + +DEPENDENCIES + benchmark-ips + minitest + mocha + rake + rspec + rubocop (~> 1.61) + rubocop-shopify + statsd-instrument! + yard + +BUNDLED WITH + 2.5.3