From 9199f989acde70fb01ea101f32810a77b19a001f Mon Sep 17 00:00:00 2001 From: nagaya Date: Tue, 27 May 2025 16:03:35 +0900 Subject: [PATCH 1/2] Bump Ruby version on ci --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7314053..91db0ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - ruby: ["2.7", "3.0", "3.1"] + ruby: ["3.2", "3.3", "3.4"] runs-on: "ubuntu-latest" continue-on-error: false steps: @@ -32,6 +32,6 @@ jobs: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: - ruby-version: "3.1" + ruby-version: "3.2" bundler-cache: true - run: bundle exec rubocop From d8a81c8af30105600fcb4c1095d451e5e25cc150 Mon Sep 17 00:00:00 2001 From: nagaya Date: Tue, 27 May 2025 16:22:19 +0900 Subject: [PATCH 2/2] Autocorrect by rubocop --- spec/ruboty/handlers/github_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/ruboty/handlers/github_spec.rb b/spec/ruboty/handlers/github_spec.rb index bfcc092..a15fa53 100644 --- a/spec/ruboty/handlers/github_spec.rb +++ b/spec/ruboty/handlers/github_spec.rb @@ -81,7 +81,7 @@ %(ruboty create issue "#{title}" on #{user}/#{repository}) end - include_examples 'requires access token without access token' + it_behaves_like 'requires access token without access token' context 'with access token' do it 'creates a new issue with given title on given repository' do @@ -115,7 +115,7 @@ %(ruboty search issues "#{query}") end - include_examples 'requires access token without access token' + it_behaves_like 'requires access token without access token' context 'with access token' do it 'search an issue with given query' do @@ -169,7 +169,7 @@ 1 end - include_examples 'requires access token without access token' + it_behaves_like 'requires access token without access token' context 'with closed issue' do it 'replies so' do