From c97e938fb9baa6cb5b69de826dc1a2d27e0a9f0c Mon Sep 17 00:00:00 2001 From: buty4649 Date: Tue, 16 Jul 2024 10:44:58 +0900 Subject: [PATCH] Use .ruby-version --- .github/workflows/ci.yml | 4 +--- .github/workflows/release.yml | 1 - .rubocop.yml | 1 - .ruby-version | 1 + Gemfile | 2 ++ Gemfile.lock | 3 +++ 6 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 .ruby-version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e1e6d4..f78ebdc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.3 + bundler-cache: true - name: Install dependencies run: bundle install - name: Run rubocop @@ -39,7 +39,6 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.3 bundler-cache: true - name: build run: rake build:${{ matrix.os-arch }} @@ -72,7 +71,6 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.3 bundler-cache: true - name: Install dependencies run: bundle install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11a6475..c568d55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,6 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 3.3 bundler-cache: true - name: Build assets run: rake build:assets diff --git a/.rubocop.yml b/.rubocop.yml index 465bdb0..a73f358 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,7 +2,6 @@ require: rubocop-rspec AllCops: NewCops: enable - TargetRubyVersion: 3.3 SuggestExtensions: false Exclude: - build/**/* diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..a0891f5 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.3.4 diff --git a/Gemfile b/Gemfile index 96863ae..7e5a57e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,7 @@ source 'https://rubygems.org/' +ruby file: '.ruby-version' + gem 'rake' group 'test' do diff --git a/Gemfile.lock b/Gemfile.lock index 4004495..c1b4223 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -138,5 +138,8 @@ DEPENDENCIES rubocop rubocop-rspec +RUBY VERSION + ruby 3.3.4p94 + BUNDLED WITH 2.5.11