mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-01 16:05:40 +03:00
Update gems and CI, drop CI support for rails 5.2 and ruby 2.6
This commit is contained in:
6
.github/workflows/pronto.yaml
vendored
6
.github/workflows/pronto.yaml
vendored
@@ -4,15 +4,17 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
name: Pronto lint
|
name: Pronto lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
BUNDLE_ONLY: lint
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: git fetch --no-tags --prune --unshallow origin +refs/heads/*:refs/remotes/origin/*
|
- run: git fetch --no-tags --prune --unshallow origin +refs/heads/*:refs/remotes/origin/*
|
||||||
- name: Install ruby
|
- name: Install ruby
|
||||||
uses: ruby/setup-ruby@v1
|
uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: '2.6'
|
ruby-version: '3.2'
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
- run: bundle exec pronto run -f github_status github_pr_review -c origin/master
|
- run: bundle exec pronto run -f text github_status github_pr_review -c origin/master
|
||||||
env:
|
env:
|
||||||
PRONTO_GITHUB_ACCESS_TOKEN: ${{ github.token }}
|
PRONTO_GITHUB_ACCESS_TOKEN: ${{ github.token }}
|
||||||
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
|
PRONTO_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
|
||||||
|
|||||||
20
.github/workflows/test.yaml
vendored
20
.github/workflows/test.yaml
vendored
@@ -1,5 +1,7 @@
|
|||||||
name: Test
|
name: Test
|
||||||
on: [push]
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
jobs:
|
jobs:
|
||||||
runTests:
|
runTests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -7,22 +9,12 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# EKAM
|
- ruby-version: 2.7.8
|
||||||
- ruby-version: 2.5.8
|
|
||||||
rails-version: 52
|
|
||||||
# InSales
|
|
||||||
- ruby-version: 2.6.6
|
|
||||||
rails-version: 52
|
|
||||||
- ruby-version: 2.6.6
|
|
||||||
rails-version: 60
|
rails-version: 60
|
||||||
- ruby-version: 2.7.5
|
- ruby-version: 2.7.8
|
||||||
rails-version: 60
|
|
||||||
- ruby-version: 2.7.5
|
|
||||||
rails-version: 61
|
rails-version: 61
|
||||||
- ruby-version: 2.7.5
|
|
||||||
rails-version: 70
|
|
||||||
# EDGE
|
# EDGE
|
||||||
- ruby-version: 3.1.0
|
- ruby-version: 3.2.2
|
||||||
rails-version: 70
|
rails-version: 70
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ inherit_from:
|
|||||||
- https://raw.githubusercontent.com/insales/code_style/master/ruby/rubocop_rails.yml
|
- https://raw.githubusercontent.com/insales/code_style/master/ruby/rubocop_rails.yml
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: 2.6
|
TargetRubyVersion: 2.7
|
||||||
TargetRailsVersion: 5.2
|
TargetRailsVersion: 6.0
|
||||||
|
|||||||
@@ -1,15 +1,11 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
appraise 'rails_52' do
|
|
||||||
gem 'rails', '~> 5.2.6'
|
|
||||||
end
|
|
||||||
|
|
||||||
appraise 'rails_60' do
|
appraise 'rails_60' do
|
||||||
gem 'rails', '~> 6.0.4.4'
|
gem 'rails', '~>6.0.4'
|
||||||
end
|
end
|
||||||
|
|
||||||
appraise 'rails_61' do
|
appraise 'rails_61' do
|
||||||
gem 'rails', '~>6.1.4.4'
|
gem 'rails', '~>6.1.4'
|
||||||
end
|
end
|
||||||
|
|
||||||
appraise 'rails_70' do
|
appraise 'rails_70' do
|
||||||
|
|||||||
24
Gemfile
24
Gemfile
@@ -5,10 +5,8 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" }
|
|||||||
|
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
gem 'appraisal'
|
|
||||||
|
|
||||||
gem 'fastimage'
|
gem 'fastimage'
|
||||||
gem 'pg', '~> 1.1.4'
|
gem 'pg'
|
||||||
|
|
||||||
gem 'aws-sdk-s3'
|
gem 'aws-sdk-s3'
|
||||||
gem 'fog-local'
|
gem 'fog-local'
|
||||||
@@ -26,13 +24,17 @@ gem 'pry-byebug'
|
|||||||
|
|
||||||
gem 'addressable'
|
gem 'addressable'
|
||||||
|
|
||||||
group :lint do
|
unless defined?(Appraisal)
|
||||||
gem 'rubocop', '0.81.0'
|
gem 'appraisal'
|
||||||
gem 'rubocop-rails', '2.5.2'
|
|
||||||
gem 'rubocop-rspec', '1.38.1'
|
|
||||||
gem 'rubocop-performance', '1.5.2'
|
|
||||||
|
|
||||||
gem 'pronto', '>= 0.11', require: false
|
group :lint do
|
||||||
gem 'pronto-brakeman', require: false
|
gem 'rubocop', '~>0.81'
|
||||||
gem 'pronto-rubocop', require: false
|
gem 'rubocop-rails'
|
||||||
|
gem 'rubocop-rspec'
|
||||||
|
gem 'rubocop-performance'
|
||||||
|
|
||||||
|
gem 'pronto', '>= 0.11', require: false
|
||||||
|
gem 'pronto-brakeman', require: false
|
||||||
|
gem 'pronto-rubocop', require: false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
# This file was generated by Appraisal
|
|
||||||
|
|
||||||
source "https://rubygems.org"
|
|
||||||
|
|
||||||
gem "appraisal"
|
|
||||||
gem "fastimage"
|
|
||||||
gem "pg", "~> 1.1.4"
|
|
||||||
gem "aws-sdk-s3"
|
|
||||||
gem "fog-local"
|
|
||||||
gem "delayed_paperclip", git: "https://github.com/insales/delayed_paperclip.git"
|
|
||||||
gem "rails", "~> 5.2.6"
|
|
||||||
gem "sidekiq"
|
|
||||||
gem "test-unit"
|
|
||||||
gem "mocha"
|
|
||||||
gem "thoughtbot-shoulda", ">= 2.9.0"
|
|
||||||
gem "pry"
|
|
||||||
gem "pry-byebug"
|
|
||||||
gem "addressable"
|
|
||||||
|
|
||||||
group :lint do
|
|
||||||
gem "rubocop", "0.81.0"
|
|
||||||
gem "rubocop-rails", "2.5.2"
|
|
||||||
gem "rubocop-rspec", "1.38.1"
|
|
||||||
gem "rubocop-performance", "1.5.2"
|
|
||||||
gem "pronto", ">= 0.11", require: false
|
|
||||||
gem "pronto-brakeman", require: false
|
|
||||||
gem "pronto-rubocop", require: false
|
|
||||||
end
|
|
||||||
|
|
||||||
gemspec path: "../"
|
|
||||||
@@ -2,13 +2,12 @@
|
|||||||
|
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "appraisal"
|
|
||||||
gem "fastimage"
|
gem "fastimage"
|
||||||
gem "pg", "~> 1.1.4"
|
gem "pg"
|
||||||
gem "aws-sdk-s3"
|
gem "aws-sdk-s3"
|
||||||
gem "fog-local"
|
gem "fog-local"
|
||||||
gem "delayed_paperclip", git: "https://github.com/insales/delayed_paperclip.git"
|
gem "delayed_paperclip", git: "https://github.com/insales/delayed_paperclip.git"
|
||||||
gem "rails", "~> 6.0.4.4"
|
gem "rails", "~>6.0.4"
|
||||||
gem "sidekiq"
|
gem "sidekiq"
|
||||||
gem "test-unit"
|
gem "test-unit"
|
||||||
gem "mocha"
|
gem "mocha"
|
||||||
@@ -17,14 +16,4 @@ gem "pry"
|
|||||||
gem "pry-byebug"
|
gem "pry-byebug"
|
||||||
gem "addressable"
|
gem "addressable"
|
||||||
|
|
||||||
group :lint do
|
|
||||||
gem "rubocop", "0.81.0"
|
|
||||||
gem "rubocop-rails", "2.5.2"
|
|
||||||
gem "rubocop-rspec", "1.38.1"
|
|
||||||
gem "rubocop-performance", "1.5.2"
|
|
||||||
gem "pronto", ">= 0.11", require: false
|
|
||||||
gem "pronto-brakeman", require: false
|
|
||||||
gem "pronto-rubocop", require: false
|
|
||||||
end
|
|
||||||
|
|
||||||
gemspec path: "../"
|
gemspec path: "../"
|
||||||
|
|||||||
@@ -2,13 +2,12 @@
|
|||||||
|
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "appraisal"
|
|
||||||
gem "fastimage"
|
gem "fastimage"
|
||||||
gem "pg", "~> 1.1.4"
|
gem "pg"
|
||||||
gem "aws-sdk-s3"
|
gem "aws-sdk-s3"
|
||||||
gem "fog-local"
|
gem "fog-local"
|
||||||
gem "delayed_paperclip", git: "https://github.com/insales/delayed_paperclip.git"
|
gem "delayed_paperclip", git: "https://github.com/insales/delayed_paperclip.git"
|
||||||
gem "rails", "~>6.1.4.4"
|
gem "rails", "~>6.1.4"
|
||||||
gem "sidekiq"
|
gem "sidekiq"
|
||||||
gem "test-unit"
|
gem "test-unit"
|
||||||
gem "mocha"
|
gem "mocha"
|
||||||
@@ -17,14 +16,4 @@ gem "pry"
|
|||||||
gem "pry-byebug"
|
gem "pry-byebug"
|
||||||
gem "addressable"
|
gem "addressable"
|
||||||
|
|
||||||
group :lint do
|
|
||||||
gem "rubocop", "0.81.0"
|
|
||||||
gem "rubocop-rails", "2.5.2"
|
|
||||||
gem "rubocop-rspec", "1.38.1"
|
|
||||||
gem "rubocop-performance", "1.5.2"
|
|
||||||
gem "pronto", ">= 0.11", require: false
|
|
||||||
gem "pronto-brakeman", require: false
|
|
||||||
gem "pronto-rubocop", require: false
|
|
||||||
end
|
|
||||||
|
|
||||||
gemspec path: "../"
|
gemspec path: "../"
|
||||||
|
|||||||
@@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "appraisal"
|
|
||||||
gem "fastimage"
|
gem "fastimage"
|
||||||
gem "pg", "~> 1.1.4"
|
gem "pg"
|
||||||
gem "aws-sdk-s3"
|
gem "aws-sdk-s3"
|
||||||
gem "fog-local"
|
gem "fog-local"
|
||||||
gem "delayed_paperclip", git: "https://github.com/insales/delayed_paperclip.git"
|
gem "delayed_paperclip", git: "https://github.com/insales/delayed_paperclip.git"
|
||||||
@@ -17,14 +16,4 @@ gem "pry"
|
|||||||
gem "pry-byebug"
|
gem "pry-byebug"
|
||||||
gem "addressable"
|
gem "addressable"
|
||||||
|
|
||||||
group :lint do
|
|
||||||
gem "rubocop", "0.81.0"
|
|
||||||
gem "rubocop-rails", "2.5.2"
|
|
||||||
gem "rubocop-rspec", "1.38.1"
|
|
||||||
gem "rubocop-performance", "1.5.2"
|
|
||||||
gem "pronto", ">= 0.11", require: false
|
|
||||||
gem "pronto-brakeman", require: false
|
|
||||||
gem "pronto-rubocop", require: false
|
|
||||||
end
|
|
||||||
|
|
||||||
gemspec path: "../"
|
gemspec path: "../"
|
||||||
|
|||||||
Reference in New Issue
Block a user