diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 2180af5..190e10b 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@master - uses: actions/setup-ruby@v1 with: - ruby-version: '2.x' + ruby-version: '2.6.5' - run: | gem install bundler bundle install --jobs 4 --retry 3 diff --git a/.rubocop.yml b/.rubocop.yml index 14fb6ee..60da610 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,7 @@ inherit_from: .rubocop_todo.yml +AllCops: + TargetRubyVersion: 2.6 + Style/Documentation: Enabled: false diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 5cfd420..456ee5d 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2018-01-13 11:27:47 -0500 using RuboCop version 0.52.1. +# on 2019-12-31 10:11:37 -0500 using RuboCop version 0.78.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new diff --git a/Gemfile b/Gemfile index e5307fc..8f3e883 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,8 @@ +# frozen_string_literal: true + source 'https://rubygems.org' -ruby '2.4.1' if ENV.key?('DYNO') +ruby '2.6.5' if ENV.key?('DYNO') gem 'aws-sdk', '~> 2' gem 'pry', group: %i[development test] diff --git a/Gemfile.lock b/Gemfile.lock index 647fd14..fd9bc0c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,37 +1,39 @@ GEM remote: https://rubygems.org/ specs: - ast (2.3.0) - aws-sdk (2.10.117) - aws-sdk-resources (= 2.10.117) - aws-sdk-core (2.10.117) + ast (2.4.0) + aws-eventstream (1.0.3) + aws-sdk (2.11.421) + aws-sdk-resources (= 2.11.421) + aws-sdk-core (2.11.421) aws-sigv4 (~> 1.0) jmespath (~> 1.0) - aws-sdk-resources (2.10.117) - aws-sdk-core (= 2.10.117) - aws-sigv4 (1.0.2) + aws-sdk-resources (2.11.421) + aws-sdk-core (= 2.11.421) + aws-sigv4 (1.1.0) + aws-eventstream (~> 1.0, >= 1.0.2) coderay (1.1.2) - jmespath (1.3.1) - method_source (0.9.0) - parallel (1.12.1) - parser (2.4.0.2) - ast (~> 2.3) - powerpack (0.1.1) - pry (0.11.3) + jaro_winkler (1.5.4) + jmespath (1.4.0) + method_source (0.9.2) + parallel (1.19.1) + parser (2.7.0.1) + ast (~> 2.4.0) + pry (0.12.2) coderay (~> 1.1.0) method_source (~> 0.9.0) - rack (2.0.3) + rack (2.0.8) rainbow (3.0.0) - rake (12.3.0) - rubocop (0.52.1) + rake (13.0.1) + rubocop (0.78.0) + jaro_winkler (~> 1.5.1) parallel (~> 1.10) - parser (>= 2.4.0.2, < 3.0) - powerpack (~> 0.1) + parser (>= 2.6) rainbow (>= 2.2.2, < 4.0) ruby-progressbar (~> 1.7) - unicode-display_width (~> 1.0, >= 1.0.1) - ruby-progressbar (1.9.0) - unicode-display_width (1.3.0) + unicode-display_width (>= 1.4.0, < 1.7) + ruby-progressbar (1.10.1) + unicode-display_width (1.6.0) PLATFORMS ruby @@ -44,4 +46,4 @@ DEPENDENCIES rubocop BUNDLED WITH - 1.16.1 + 2.1.2 diff --git a/Rakefile b/Rakefile index be86fd9..3745221 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + begin require 'rubocop/rake_task' rescue LoadError => e diff --git a/config.ru b/config.ru index 62bc808..5486f53 100644 --- a/config.ru +++ b/config.ru @@ -1 +1,3 @@ +# frozen_string_literal: true + run ->(*) { [301, { 'Location' => ENV['CPI_FEED_URL'] }, []] } diff --git a/mini_s3put.rb b/mini_s3put.rb index 9bb0545..27f4698 100644 --- a/mini_s3put.rb +++ b/mini_s3put.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'aws-sdk' class MiniS3put