Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mimemagic gem #58

Closed
wants to merge 13 commits into from
Closed
58 changes: 58 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

jobs:
test:

runs-on: ubuntu-latest
services:
postgres:
image: postgres:10
# The postgres container requires the postgres user to be setup with a password in order to start it due to security
# reasons
env:
POSTGRES_PASSWORD: postgres
ports: ['5432:5432']
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
ruby-version: ['2.7']

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: prepare database
env:
RAILS_ENV: test
run: |
sudo apt-get -yqq install libpq-dev
bundle install --no-deployment --jobs 4 --retry 3
cp config/database.github.yml config/database.yml
bundle exec rails db:create
bundle exec rails db:migrate
yarn --frozen-lockfile
- name: Run tests
run: bundle exec rails spec
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.5
2.7.2
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "2.6.5"
ruby "2.7.2"

gem 'dotenv-rails'
gem "rack"
Expand Down
143 changes: 75 additions & 68 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ GEM
activerecord (6.0.3.2)
activemodel (= 6.0.3.2)
activesupport (= 6.0.3.2)
activerecord-import (1.0.5)
activerecord-import (1.0.8)
activerecord (>= 3.2)
activestorage (6.0.3.2)
actionpack (= 6.0.3.2)
Expand All @@ -74,11 +74,11 @@ GEM
app_perf_rpm (0.2.5)
msgpack
opentracing
autoprefixer-rails (9.8.5)
autoprefixer-rails (10.2.4.0)
execjs
bcrypt (3.1.13)
bcrypt (3.1.16)
bindex (0.8.1)
bootsnap (1.4.6)
bootsnap (1.7.2)
msgpack (~> 1.0)
bootstrap-sass (3.4.1)
autoprefixer-rails (>= 5.2.1)
Expand All @@ -88,48 +88,47 @@ GEM
calculate-all (0.2.1)
activerecord
coderay (1.1.3)
concurrent-ruby (1.1.6)
concurrent-ruby (1.1.8)
connection_pool (2.2.3)
crass (1.0.6)
devise (4.7.2)
devise (4.7.3)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
devise_invitable (2.0.2)
devise_invitable (2.0.3)
actionmailer (>= 5.0)
devise (>= 4.6)
diff-lcs (1.4.4)
docile (1.3.2)
docile (1.3.5)
dotenv (2.7.6)
dotenv-rails (2.7.6)
dotenv (= 2.7.6)
railties (>= 3.2)
erubi (1.9.0)
etc (1.1.0)
erubi (1.10.0)
execjs (2.7.0)
factory_bot (6.1.0)
activesupport (>= 5.0.0)
factory_bot_rails (6.1.0)
factory_bot (~> 6.1.0)
railties (>= 5.0.0)
faker (2.13.0)
faker (2.17.0)
i18n (>= 1.6, < 2)
ffi (1.13.1)
font-awesome-rails (4.7.0.5)
railties (>= 3.2, < 6.1)
foreman (0.87.1)
ffi (1.15.0)
font-awesome-rails (4.7.0.7)
railties (>= 3.2, < 7)
foreman (0.87.2)
globalid (0.4.2)
activesupport (>= 4.2.0)
groupdate (3.2.1)
activesupport (>= 3)
haml (5.1.2)
haml (5.2.1)
temple (>= 0.8.0)
tilt
i18n (1.8.3)
i18n (1.8.9)
concurrent-ruby (~> 1.0)
jbuilder (2.10.0)
jbuilder (2.11.2)
activesupport (>= 5.0.0)
jquery-rails (4.4.0)
rails-dom-testing (>= 1, < 3)
Expand All @@ -151,41 +150,46 @@ GEM
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.6.0)
loofah (2.9.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (0.3.3)
mimemagic (~> 0.3.2)
method_source (1.0.0)
mimemagic (0.3.5)
mimemagic (0.3.10)
nokogiri (~> 1)
rake
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.14.1)
msgpack (1.3.3)
mini_portile2 (2.5.0)
minitest (5.14.4)
msgpack (1.4.2)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
nio4r (2.5.2)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
oj (3.10.6)
nio4r (2.5.7)
nokogiri (1.11.2)
mini_portile2 (~> 2.5.0)
racc (~> 1.4)
nokogiri (1.11.2-x86_64-linux)
racc (~> 1.4)
oj (3.11.3)
opentracing (0.5.0)
orm_adapter (0.5.0)
passenger (6.0.5)
etc
passenger (6.0.7)
rack
rake (>= 0.8.1)
pg (1.2.3)
pg_array_parser (0.0.9)
pg_histogram (0.3)
activerecord (>= 4.0)
pg (>= 0.1)
pry (0.13.1)
pry (0.14.0)
coderay (~> 1.1)
method_source (~> 1.0)
racc (1.5.2)
rack (2.2.3)
rack-protection (2.0.8.1)
rack-protection (2.1.0)
rack
rack-proxy (0.6.5)
rack
Expand Down Expand Up @@ -217,37 +221,37 @@ GEM
method_source
rake (>= 0.8.7)
thor (>= 0.20.3, < 2.0)
rake (13.0.1)
rake (13.0.3)
rb-fsevent (0.10.4)
rb-inotify (0.10.1)
ffi (~> 1.0)
rdoc (6.2.1)
redis (4.2.1)
redis-namespace (1.7.0)
rdoc (6.3.0)
redis (4.2.5)
redis-namespace (1.8.1)
redis (>= 3.0.4)
responders (3.0.1)
actionpack (>= 5.0)
railties (>= 5.0)
roda (3.33.0)
roda (3.42.0)
rack
rspec-core (3.9.2)
rspec-support (~> 3.9.3)
rspec-expectations (3.9.2)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-rails (4.0.1)
rspec-support (~> 3.10.0)
rspec-rails (4.0.2)
actionpack (>= 4.2)
activesupport (>= 4.2)
railties (>= 4.2)
rspec-core (~> 3.9)
rspec-expectations (~> 3.9)
rspec-mocks (~> 3.9)
rspec-support (~> 3.9)
rspec-support (3.9.3)
ruby2_keywords (0.0.2)
rspec-core (~> 3.10)
rspec-expectations (~> 3.10)
rspec-mocks (~> 3.10)
rspec-support (~> 3.10)
rspec-support (3.10.2)
ruby2_keywords (0.0.4)
ruby_dep (1.5.0)
sass-rails (6.0.0)
sassc-rails (~> 2.1, >= 2.1.1)
Expand All @@ -259,51 +263,53 @@ GEM
sprockets (> 3.0)
sprockets-rails
tilt
sdoc (1.1.0)
sdoc (2.0.4)
rdoc (>= 5.0)
semantic_range (2.3.0)
sidekiq (6.1.0)
semantic_range (3.0.0)
sidekiq (6.2.0)
connection_pool (>= 2.2.2)
rack (~> 2.0)
redis (>= 4.2.0)
simplecov (0.18.5)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.2)
sinatra (2.0.8.1)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.2)
sinatra (2.1.0)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.8.1)
rack (~> 2.2)
rack-protection (= 2.1.0)
tilt (~> 2.0)
spring (2.1.0)
spring (2.1.1)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
temple (0.8.2)
thor (1.0.1)
thor (1.1.0)
thread_safe (0.3.6)
tilt (2.0.10)
tzinfo (1.2.7)
tzinfo (1.2.9)
thread_safe (~> 0.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
vmstat (2.3.1)
warden (1.2.8)
rack (>= 2.0.6)
web-console (4.0.4)
warden (1.2.9)
rack (>= 2.0.9)
web-console (4.1.0)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
webpacker (5.1.1)
webpacker (5.2.1)
activesupport (>= 5.2)
rack-proxy (>= 0.6.1)
railties (>= 5.2)
Expand All @@ -313,10 +319,11 @@ GEM
websocket-driver (0.7.3)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
zeitwerk (2.3.1)
zeitwerk (2.4.2)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
activerecord-import
Expand Down Expand Up @@ -368,7 +375,7 @@ DEPENDENCIES
webpacker-react

RUBY VERSION
ruby 2.6.5p114
ruby 2.7.2p137

BUNDLED WITH
1.17.3
2.2.11
8 changes: 8 additions & 0 deletions config/database.github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test:
adapter: postgresql
encoding: unicode
host: localhost
port: 5432
username: postgres
password: postgres
database: app_perf_test