From 17567d182aa48c5b970e7d05270a3569869b1c4f Mon Sep 17 00:00:00 2001 From: Jenny Shen Date: Fri, 22 Mar 2024 11:37:19 -0400 Subject: [PATCH] Centralize Ruby Version to .ruby-version --- .github/workflows/main.yml | 3 ++ .gitignore | 2 -- .rubocop.yml | 1 - .ruby-version | 1 + Gemfile.lock | 55 ++++++++++++++++++++++++++++++++ shopify-ruby-definitions.gemspec | 2 +- 6 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 .ruby-version create mode 100644 Gemfile.lock diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 714c0be..18ae1dc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,10 @@ jobs: strategy: matrix: ruby: + - "3.0" + - "3.1" - "3.2" + - "3.3" steps: - uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index 6853244..9106b2a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,3 @@ /pkg/ /spec/reports/ /tmp/ - -Gemfile.lock diff --git a/.rubocop.yml b/.rubocop.yml index d8458c8..e4e5361 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,7 +7,6 @@ require: AllCops: NewCops: enable SuggestExtensions: false - TargetRubyVersion: 2.6 Style/StringLiterals: Enabled: true 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..2c828d8 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,55 @@ +PATH + remote: . + specs: + shopify-ruby-definitions (1.4.0) + +GEM + remote: https://rubygems.org/ + specs: + ast (2.4.2) + json (2.7.1) + language_server-protocol (3.17.0.3) + minitest (5.22.3) + 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) + 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-minitest (0.35.0) + rubocop (>= 1.61, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + 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) + rake (~> 13.0) + rubocop (~> 1.21) + rubocop-minitest + rubocop-shopify + shopify-ruby-definitions! + +BUNDLED WITH + 2.4.10 diff --git a/shopify-ruby-definitions.gemspec b/shopify-ruby-definitions.gemspec index 269f7df..eeb404a 100644 --- a/shopify-ruby-definitions.gemspec +++ b/shopify-ruby-definitions.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.summary = "Ruby builds used at Shopify." spec.homepage = "https://github.com/Shopify/ruby-definitions" spec.license = "MIT" - spec.required_ruby_version = ">= 2.6.0" + spec.required_ruby_version = ">= 3.0.0" spec.metadata["homepage_uri"] = spec.homepage spec.metadata["source_code_uri"] = "https://github.com/Shopify/ruby-definitions"