Merge pull request #3 from meatballhat/modernizin

Modernization hammer
This commit is contained in:
Dan Buch 2019-12-31 10:37:47 -05:00 committed by GitHub
commit 86127d1d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 53 additions and 32 deletions

14
.github/workflows/workflow.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Do Things
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6.x'
- run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake

View File

@ -1,4 +1,7 @@
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.6
Style/Documentation:
Enabled: false

View File

@ -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

View File

@ -1,6 +0,0 @@
language: ruby
dist: trusty
rvm: 2.4.2
cache: bundler
notifications:
email: false

View File

@ -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]

View File

@ -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

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright © 2017 Dan Buch
Copyright © 2020 Dan Buch
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require 'rubocop/rake_task'
rescue LoadError => e

View File

@ -1 +1,3 @@
# frozen_string_literal: true
run ->(*) { [301, { 'Location' => ENV['CPI_FEED_URL'] }, []] }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'aws-sdk'
class MiniS3put