From e3de691e598e8ef3adb64f75ca4b87cbcb5c900e Mon Sep 17 00:00:00 2001 From: Jenny Shen Date: Thu, 21 Mar 2024 11:50:06 -0400 Subject: [PATCH] Centralize ruby version definition to .ruby-version --- .github/workflows/lint.yml | 2 -- .gitignore | 2 -- .rubocop.yml | 1 - .ruby-version | 1 + Gemfile.lock | 68 ++++++++++++++++++++++++++++++++++++++ ruby_memcheck.gemspec | 2 +- 6 files changed, 70 insertions(+), 6 deletions(-) create mode 100644 .ruby-version create mode 100644 Gemfile.lock diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 90be54c..4d6e978 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,7 +6,5 @@ jobs: steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.0' - run: bundle install --jobs=3 --retry=3 --path=vendor/bundle - run: bundle exec rubocop diff --git a/.gitignore b/.gitignore index a4a9da9..0fe004b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -Gemfile.lock - /.bundle/ /.yardoc /_yardoc/ diff --git a/.rubocop.yml b/.rubocop.yml index fb07f65..a3c1975 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,7 +2,6 @@ inherit_gem: rubocop-shopify: rubocop.yml AllCops: - TargetRubyVersion: 2.6 SuggestExtensions: false Style/GlobalVars: diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..15a2799 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.3.0 diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..7f83882 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,68 @@ +PATH + remote: . + specs: + ruby_memcheck (2.3.0) + nokogiri + +GEM + remote: https://rubygems.org/ + specs: + ast (2.4.2) + json (2.7.1) + language_server-protocol (3.17.0.3) + mini_portile2 (2.8.5) + minitest (5.22.3) + minitest-parallel_fork (1.3.1) + minitest (>= 5.15.0) + nokogiri (1.16.3) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + nokogiri (1.16.3-arm64-darwin) + racc (~> 1.4) + 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) + rake-compiler (1.2.7) + rake + regexp_parser (2.9.0) + rexml (3.2.6) + rspec-core (3.13.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) + unicode-display_width (2.5.0) + +PLATFORMS + ruby + +DEPENDENCIES + minitest (~> 5.0) + minitest-parallel_fork (~> 1.2) + rake (~> 13.0) + rake-compiler (~> 1.1) + rspec-core + rubocop (~> 1.22) + rubocop-shopify (~> 2.3) + ruby_memcheck! + +BUNDLED WITH + 2.4.10 diff --git a/ruby_memcheck.gemspec b/ruby_memcheck.gemspec index ccd3328..a27b60c 100644 --- a/ruby_memcheck.gemspec +++ b/ruby_memcheck.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.summary = "Use Valgrind memcheck without going crazy" spec.homepage = "https://github.com/Shopify/ruby_memcheck" spec.license = "MIT" - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") + spec.required_ruby_version = ">= 3.0.0" spec.metadata["homepage_uri"] = spec.homepage