diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2426e6..b00f111 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: [2.6, 2.7, 3.4, 4.0] + ruby-version: [3.4, 4.0] steps: - name: Checkout code uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 diff --git a/Gemfile b/Gemfile index 25e99fd..5ed89d6 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,6 @@ gemspec gem 'rake', '~> 12.0' -gem 'rubocop', require: false +gem 'rubocop', '~> 1.81', require: false -gem 'rspec', require: false +gem 'rspec', '~> 3.13', require: false diff --git a/lib/microcms.rb b/lib/microcms.rb index f302ffa..2bb49e2 100644 --- a/lib/microcms.rb +++ b/lib/microcms.rb @@ -128,7 +128,7 @@ def delete(endpoint, id) private - # rubocop:disable Style/MethodLength + # rubocop:disable-next Metrics/MethodLength def build_query(option) { draftKey: option[:draftKey], @@ -142,7 +142,6 @@ def build_query(option) ids: option[:ids] ? option[:ids].join(',') : nil }.select { |_key, value| value } end - # rubocop:enable Style/MethodLength def put(endpoint, content, option = {}) body = content.reject { |key, _value| key == :id }