Skip to content

Commit

Permalink
upgrade rails to 6.0.3 (gitcoinco#1260)
Browse files Browse the repository at this point in the history
* upgrade rails to 6.0.3

* bump CI cache key
  • Loading branch information
andrewmcodes authored May 7, 2020
1 parent 8b7f172 commit 554e8c4
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 98 deletions.
35 changes: 17 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ jobs:
- restore_cache:
name: Restore gem cache
keys:
- gem-cache-v7-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- gem-cache-v7-{{ arch }}-{{ .Branch }}
- gem-cache-v7-{{ arch }}
- gem-cache-v7
- gem-cache-v8-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- gem-cache-v8-{{ arch }}-{{ .Branch }}
- gem-cache-v8-{{ arch }}
- gem-cache-v8
- restore_cache:
name: Restore yarn cache
keys:
- yarn-cache-v7-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-cache-v7-{{ arch }}-{{ .Branch }}
- yarn-cache-v7-{{ arch }}
- yarn-cache-v7
- yarn-cache-v8-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-cache-v8-{{ arch }}-{{ .Branch }}
- yarn-cache-v8-{{ arch }}
- yarn-cache-v8
- restore_cache:
name: Restore assets cache
keys:
- assets-cache-v7-{{ checksum "dependency_checksum" }}-{{ arch }}-{{ .Branch }}
- assets-cache-v7-{{ checksum "dependency_checksum" }}-{{ arch }}
- assets-cache-v7-{{ checksum "dependency_checksum" }}
- assets-cache-v8-{{ checksum "dependency_checksum" }}-{{ arch }}-{{ .Branch }}
- assets-cache-v8-{{ checksum "dependency_checksum" }}-{{ arch }}
- assets-cache-v8-{{ checksum "dependency_checksum" }}
- run:
name: Install gem dependencies
command: |
Expand All @@ -66,27 +66,26 @@ jobs:
name: Save gem cache
paths:
- vendor/bundle
key: gem-cache-v7-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
key: gem-cache-v8-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- save_cache:
name: Save yarn cache
paths:
- ~/.cache/yarn
key: yarn-cache-v7-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
key: yarn-cache-v8-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
- save_cache:
name: Save assets cache
paths:
- public/packs-test
- public/assets
- tmp/cache/webpacker
- tmp/cache/assets/sprockets
key: assets-cache-v7-{{ checksum "dependency_checksum" }}-{{ arch }}-{{ .Branch }}
key: assets-cache-v8-{{ checksum "dependency_checksum" }}-{{ arch }}-{{ .Branch }}
- run:
name: Set up DB
command: bundle exec rails db:drop db:create db:structure:load --trace
# This task is broken until Rails 6.0.3 is released. See comment in bin/standardize.
# - run:
# name: Run zeitwerk check
# command: bundle exec rails zeitwerk:check
- run:
name: Run zeitwerk check
command: bundle exec rails zeitwerk:check
- run:
name: Run tests
command: bundle exec rails test
Expand Down
134 changes: 68 additions & 66 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,38 @@ GIT
GEM
remote: https://rubygems.org/
specs:
actioncable (6.0.2.2)
actionpack (= 6.0.2.2)
actioncable (6.0.3)
actionpack (= 6.0.3)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (6.0.2.2)
actionpack (= 6.0.2.2)
activejob (= 6.0.2.2)
activerecord (= 6.0.2.2)
activestorage (= 6.0.2.2)
activesupport (= 6.0.2.2)
actionmailbox (6.0.3)
actionpack (= 6.0.3)
activejob (= 6.0.3)
activerecord (= 6.0.3)
activestorage (= 6.0.3)
activesupport (= 6.0.3)
mail (>= 2.7.1)
actionmailer (6.0.2.2)
actionpack (= 6.0.2.2)
actionview (= 6.0.2.2)
activejob (= 6.0.2.2)
actionmailer (6.0.3)
actionpack (= 6.0.3)
actionview (= 6.0.3)
activejob (= 6.0.3)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (6.0.2.2)
actionview (= 6.0.2.2)
activesupport (= 6.0.2.2)
actionpack (6.0.3)
actionview (= 6.0.3)
activesupport (= 6.0.3)
rack (~> 2.0, >= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.0.2.2)
actionpack (= 6.0.2.2)
activerecord (= 6.0.2.2)
activestorage (= 6.0.2.2)
activesupport (= 6.0.2.2)
actiontext (6.0.3)
actionpack (= 6.0.3)
activerecord (= 6.0.3)
activestorage (= 6.0.3)
activesupport (= 6.0.3)
nokogiri (>= 1.8.5)
actionview (6.0.2.2)
activesupport (= 6.0.2.2)
actionview (6.0.3)
activesupport (= 6.0.3)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
Expand All @@ -48,25 +48,25 @@ GEM
addressable
active_storage_svg_sanitizer (0.1.0)
rails (>= 5.2)
activejob (6.0.2.2)
activesupport (= 6.0.2.2)
activejob (6.0.3)
activesupport (= 6.0.3)
globalid (>= 0.3.6)
activemodel (6.0.2.2)
activesupport (= 6.0.2.2)
activerecord (6.0.2.2)
activemodel (= 6.0.2.2)
activesupport (= 6.0.2.2)
activestorage (6.0.2.2)
actionpack (= 6.0.2.2)
activejob (= 6.0.2.2)
activerecord (= 6.0.2.2)
activemodel (6.0.3)
activesupport (= 6.0.3)
activerecord (6.0.3)
activemodel (= 6.0.3)
activesupport (= 6.0.3)
activestorage (6.0.3)
actionpack (= 6.0.3)
activejob (= 6.0.3)
activerecord (= 6.0.3)
marcel (~> 0.3.1)
activesupport (6.0.2.2)
activesupport (6.0.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2)
zeitwerk (~> 2.2, >= 2.2.2)
acts_as_commentable_with_threading (2.0.1)
activerecord (>= 4.0)
activesupport (>= 4.0)
Expand All @@ -82,8 +82,8 @@ GEM
activerecord (>= 4.0.0, < 7.0)
awesome_print (1.8.0)
aws-eventstream (1.1.0)
aws-partitions (1.307.0)
aws-sdk-core (3.94.0)
aws-partitions (1.310.0)
aws-sdk-core (3.94.1)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1)
Expand Down Expand Up @@ -169,7 +169,7 @@ GEM
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
devise_invitable (2.0.1)
devise_invitable (2.0.2)
actionmailer (>= 5.0)
devise (>= 4.6)
diffy (3.3.0)
Expand Down Expand Up @@ -217,6 +217,7 @@ GEM
hiredis (0.6.3)
html_tokenizer (0.0.7)
htmlentities (4.3.4)
http-accept (1.7.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (1.8.2)
Expand Down Expand Up @@ -277,7 +278,7 @@ GEM
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2020.0425)
mimemagic (0.3.4)
mimemagic (0.3.5)
mini_magick (4.10.1)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
Expand All @@ -304,7 +305,7 @@ GEM
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
net-http-digest_auth (1.4.1)
net-http-persistent (3.1.0)
net-http-persistent (4.0.0)
connection_pool (~> 2.2)
netaddr (2.0.4)
netrc (0.11.0)
Expand Down Expand Up @@ -366,29 +367,29 @@ GEM
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (6.0.2.2)
actioncable (= 6.0.2.2)
actionmailbox (= 6.0.2.2)
actionmailer (= 6.0.2.2)
actionpack (= 6.0.2.2)
actiontext (= 6.0.2.2)
actionview (= 6.0.2.2)
activejob (= 6.0.2.2)
activemodel (= 6.0.2.2)
activerecord (= 6.0.2.2)
activestorage (= 6.0.2.2)
activesupport (= 6.0.2.2)
rails (6.0.3)
actioncable (= 6.0.3)
actionmailbox (= 6.0.3)
actionmailer (= 6.0.3)
actionpack (= 6.0.3)
actiontext (= 6.0.3)
actionview (= 6.0.3)
activejob (= 6.0.3)
activemodel (= 6.0.3)
activerecord (= 6.0.3)
activestorage (= 6.0.3)
activesupport (= 6.0.3)
bundler (>= 1.3.0)
railties (= 6.0.2.2)
railties (= 6.0.3)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (6.0.2.2)
actionpack (= 6.0.2.2)
activesupport (= 6.0.2.2)
railties (6.0.3)
actionpack (= 6.0.3)
activesupport (= 6.0.3)
method_source
rake (>= 0.8.7)
thor (>= 0.20.3, < 2.0)
Expand All @@ -398,7 +399,7 @@ GEM
rb-inotify (0.10.1)
ffi (~> 1.0)
rb-readline (0.5.5)
redis (4.1.3)
redis (4.1.4)
regexp_parser (1.7.0)
render_later (0.1.1)
rack
Expand All @@ -407,22 +408,23 @@ GEM
responders (3.0.0)
actionpack (>= 5.0)
railties (>= 5.0)
rest-client (2.0.2)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
reverse_markdown (1.4.0)
nokogiri
rexml (3.2.4)
rollbar (2.25.0)
rubocop (0.80.1)
rubocop (0.82.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.7.0.1)
rainbow (>= 2.2.2, < 4.0)
rexml
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-performance (1.5.2)
rubocop (>= 0.71.0)
ruby-ole (1.2.12.2)
Expand Down Expand Up @@ -484,7 +486,7 @@ GEM
sixarm_ruby_unaccent (1.2.0)
slack-notifier (2.3.2)
smart_properties (1.15.0)
solargraph (0.39.3)
solargraph (0.39.7)
backport (~> 1.1)
benchmark
bundler (>= 1.17.2)
Expand Down Expand Up @@ -513,8 +515,8 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
standard (0.2.5)
rubocop (~> 0.80.1)
standard (0.3.0)
rubocop (~> 0.82.0)
rubocop-performance (~> 1.5.2)
statsd-ruby (1.4.0)
stimulus_reflex (3.1.4)
Expand Down Expand Up @@ -554,7 +556,7 @@ GEM
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (1.6.1)
unicode-display_width (1.7.0)
unicode_utils (1.4.0)
uniform_notifier (1.13.0)
url (0.3.2)
Expand All @@ -564,7 +566,7 @@ GEM
activesupport (>= 5.0.0, < 7.0)
warden (1.2.8)
rack (>= 2.0.6)
web-console (4.0.1)
web-console (4.0.2)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
Expand All @@ -584,7 +586,7 @@ GEM
websocket-extensions (0.1.4)
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.24)
yard (0.9.25)
zeitwerk (2.3.0)

PLATFORMS
Expand Down
8 changes: 2 additions & 6 deletions bin/standardize
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@ echo "== Checking ERB Lint =="
bundle exec erblint --config .erb-lint.yml --autocorrect app/views/**/*.html.erb app/components/**/*.html.erb
echo "== Checking Prettier-Standard =="
yarn run prettier:format
# echo "== Checking Zeitwerk =="
# We need to wait for rails 6.0.3 to release (sometime in January) to be able to use
# this again due an issue with this rake task that was fixed but not released.
# Issue: https://github.com/rails/rails/issues/37966
# Fix: https://github.com/rails/rails/commit/da28edf9baf0bd83b5308564bdcd8f4673b492bd
# bundle exec rails zeitwerk:check
echo "== Checking Zeitwerk =="
bundle exec rails zeitwerk:check
Loading

0 comments on commit 554e8c4

Please sign in to comment.