Skip to content

Commit

Permalink
1181 upgrade rails 6 (#1307)
Browse files Browse the repository at this point in the history
* Perform rails app:upgrade to prepare for upgrade to rails 6. Discard most changes from this task that either clobbered app-specific setup or were unecessary comments or formatting changes.

Update Rails to 6.0.0, update all gems with outdated dependencies

* Comment out breaking call to maintain_test_schema in rspec helper

Update rspec-rails to 4.0.0.beta3 (required for rails 6 controller tests; see rspec/rspec-rails#2086)

Configure action_dispatch media_type return to deal with deprecation warning

* (organization) Set logo to nil instead of calling purge in failed validation (fixes Rails 6 breakage)

* fix(organization) Use logo= setter instead of setting local var in validation
  • Loading branch information
ozydingo authored and seanmarcia committed Oct 20, 2019
1 parent d96ec7d commit ff364e3
Show file tree
Hide file tree
Showing 16 changed files with 221 additions and 137 deletions.
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ gem "paperclip"
gem "pg", "~> 1.1.3"
gem "prawn-rails"
gem "puma"
gem "rails", "~> 5.2.2"
gem "rails", "~> 6.0.0"
gem "sass-rails"
gem "sidekiq"
gem "simple_form"
Expand All @@ -45,7 +45,6 @@ gem "uglifier", ">= 1.3.0"
gem "therubyracer", "~> 0.12", platforms: :ruby
gem "yajl-ruby"
gem "toastr-rails"
gem "actiontext", github: "kobaltz/actiontext", branch: "archive", require: "action_text"
gem "webpacker", "> 4.0"
gem 'sidekiq-scheduler'
gem 'bootstrap-datepicker-rails'
Expand All @@ -58,7 +57,7 @@ group :development, :test do
gem "pry-remote"
gem "pry-nav"
gem 'rb-readline', '~> 0.5.3'
gem "rspec-rails", "~> 3.8"
gem "rspec-rails", "~> 4.0.0.beta3"
gem "rubocop"
gem "terminal-notifier-guard"
gem "terminal-notifier"
Expand Down
217 changes: 110 additions & 107 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,65 +1,69 @@
GIT
remote: https://github.com/kobaltz/actiontext.git
revision: ef59c4ba99d1b7614dd47f5a294eef553224db88
branch: archive
specs:
actiontext (0.1.0)
nokogiri
rails (>= 5.2.0)

GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.2)
actionpack (= 5.2.2)
actioncable (6.0.0)
actionpack (= 6.0.0)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.2)
actionpack (= 5.2.2)
actionview (= 5.2.2)
activejob (= 5.2.2)
actionmailbox (6.0.0)
actionpack (= 6.0.0)
activejob (= 6.0.0)
activerecord (= 6.0.0)
activestorage (= 6.0.0)
activesupport (= 6.0.0)
mail (>= 2.7.1)
actionmailer (6.0.0)
actionpack (= 6.0.0)
actionview (= 6.0.0)
activejob (= 6.0.0)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.2)
actionview (= 5.2.2)
activesupport (= 5.2.2)
actionpack (6.0.0)
actionview (= 6.0.0)
activesupport (= 6.0.0)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.2)
activesupport (= 5.2.2)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.0.0)
actionpack (= 6.0.0)
activerecord (= 6.0.0)
activestorage (= 6.0.0)
activesupport (= 6.0.0)
nokogiri (>= 1.8.5)
actionview (6.0.0)
activesupport (= 6.0.0)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.2)
activesupport (= 5.2.2)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (6.0.0)
activesupport (= 6.0.0)
globalid (>= 0.3.6)
activemodel (5.2.2)
activesupport (= 5.2.2)
activerecord (5.2.2)
activemodel (= 5.2.2)
activesupport (= 5.2.2)
arel (>= 9.0)
activestorage (5.2.2)
actionpack (= 5.2.2)
activerecord (= 5.2.2)
activemodel (6.0.0)
activesupport (= 6.0.0)
activerecord (6.0.0)
activemodel (= 6.0.0)
activesupport (= 6.0.0)
activestorage (6.0.0)
actionpack (= 6.0.0)
activejob (= 6.0.0)
activerecord (= 6.0.0)
marcel (~> 0.3.1)
activesupport (5.2.2)
activesupport (6.0.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.1, >= 2.1.8)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
airbrussh (1.3.1)
sshkit (>= 1.6.1, != 1.7.0)
annotate (2.7.4)
activerecord (>= 3.2, < 6.0)
annotate (3.0.2)
activerecord (>= 3.2, < 7.0)
rake (>= 10.4, < 13.0)
api-auth (2.3.1)
arel (9.0.0)
ast (2.4.0)
autoprefixer-rails (9.5.1)
execjs
Expand Down Expand Up @@ -125,7 +129,7 @@ GEM
connection_pool (2.2.2)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.4)
crass (1.0.5)
database_cleaner (1.7.0)
debug_inspector (0.0.3)
devise (4.7.1)
Expand All @@ -139,12 +143,11 @@ GEM
devise (>= 4.0.0)
diff-lcs (1.3)
docile (1.3.1)
dotenv (2.5.0)
dotenv-rails (2.5.0)
dotenv (= 2.5.0)
railties (>= 3.2, < 6.0)
dotenv (2.7.5)
dotenv-rails (2.7.5)
dotenv (= 2.7.5)
railties (>= 3.2, < 6.1)
erubi (1.9.0)
erubis (2.7.0)
et-orbi (1.2.1)
tzinfo
execjs (2.7.0)
Expand All @@ -158,19 +161,19 @@ GEM
fakeredis (0.7.0)
redis (>= 3.2, < 5.0)
ffi (1.11.1)
flipper (0.16.0)
flipper-active_record (0.16.0)
activerecord (>= 3.2, < 6)
flipper (~> 0.16.0)
flipper-ui (0.16.0)
erubis (~> 2.7.0)
flipper (~> 0.16.0)
flipper (0.17.1)
flipper-active_record (0.17.1)
activerecord (>= 4.2, < 7)
flipper (~> 0.17.1)
flipper-ui (0.17.1)
erubi (>= 1.0.0, < 2.0.0)
flipper (~> 0.17.1)
rack (>= 1.4, < 3)
rack-protection (>= 1.5.3, < 2.1.0)
font-awesome-rails (4.7.0.4)
railties (>= 3.2, < 6.0)
font-ionicons-rails (2.0.1.5)
railties (>= 3.2, < 6.0)
font-awesome-rails (4.7.0.5)
railties (>= 3.2, < 6.1)
font-ionicons-rails (2.0.1.6)
railties (>= 3.2, < 7.0)
formatador (0.2.5)
fugit (1.2.2)
et-orbi (~> 1.1, >= 1.1.8)
Expand All @@ -180,11 +183,11 @@ GEM
jquery-ui-rails (>= 5.0.2)
momentjs-rails (>= 2.9.0)
geocoder (1.5.0)
globalid (0.4.1)
globalid (0.4.2)
activesupport (>= 4.2.0)
groupdate (4.1.1)
activesupport (>= 4.2)
guard (2.14.2)
guard (2.15.1)
formatador (>= 0.2.4)
listen (>= 2.7, < 4.0)
lumberjack (>= 1.0.12, < 2.0)
Expand All @@ -205,9 +208,8 @@ GEM
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.13, < 3)
jaro_winkler (1.5.1)
jbuilder (2.8.0)
jbuilder (2.9.1)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.3)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
Expand Down Expand Up @@ -246,24 +248,23 @@ GEM
mime-types (3.2.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2018.0812)
mimemagic (0.3.2)
mimemagic (0.3.3)
mini_magick (4.9.5)
mini_mime (1.0.1)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.12.2)
momentjs-rails (2.20.1)
railties (>= 3.1)
multi_json (1.13.1)
nenv (0.3.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (5.0.2)
net_http_ssl_fix (0.0.10)
newrelic_rpm (5.6.0.349)
nio4r (2.3.1)
newrelic_rpm (6.7.0.359)
nio4r (2.5.2)
nokogiri (1.10.4)
mini_portile2 (~> 2.4.0)
notiffany (0.1.1)
notiffany (0.1.3)
nenv (~> 0.1)
shellany (~> 0.0)
orm_adapter (0.5.0)
Expand Down Expand Up @@ -302,24 +303,26 @@ GEM
puma (3.12.0)
raabro (1.1.6)
rack (2.0.7)
rack-protection (2.0.4)
rack-protection (2.0.7)
rack
rack-proxy (0.6.5)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.2)
actioncable (= 5.2.2)
actionmailer (= 5.2.2)
actionpack (= 5.2.2)
actionview (= 5.2.2)
activejob (= 5.2.2)
activemodel (= 5.2.2)
activerecord (= 5.2.2)
activestorage (= 5.2.2)
activesupport (= 5.2.2)
rails (6.0.0)
actioncable (= 6.0.0)
actionmailbox (= 6.0.0)
actionmailer (= 6.0.0)
actionpack (= 6.0.0)
actiontext (= 6.0.0)
actionview (= 6.0.0)
activejob (= 6.0.0)
activemodel (= 6.0.0)
activerecord (= 6.0.0)
activestorage (= 6.0.0)
activesupport (= 6.0.0)
bundler (>= 1.3.0)
railties (= 5.2.2)
railties (= 6.0.0)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.4)
actionpack (>= 5.0.1.x)
Expand All @@ -335,12 +338,12 @@ GEM
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (5.2.2)
actionpack (= 5.2.2)
activesupport (= 5.2.2)
railties (6.0.0)
actionpack (= 6.0.0)
activesupport (= 6.0.0)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
thor (>= 0.20.3, < 2.0)
rainbow (3.0.0)
rake (12.3.3)
rb-fsevent (0.10.3)
Expand All @@ -353,27 +356,27 @@ GEM
responders (3.0.0)
actionpack (>= 5.0)
railties (>= 5.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.2)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.0)
rspec-support (~> 3.9.0)
rspec-expectations (3.9.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-rails (3.8.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
rspec-support (~> 3.9.0)
rspec-rails (4.0.0.beta3)
actionpack (>= 4.2)
activesupport (>= 4.2)
railties (>= 4.2)
rspec-core (~> 3.8)
rspec-expectations (~> 3.8)
rspec-mocks (~> 3.8)
rspec-support (~> 3.8)
rspec-support (3.9.0)
rubocop (0.61.1)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
Expand Down Expand Up @@ -424,9 +427,9 @@ GEM
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
skylight (3.1.2)
skylight-core (= 3.1.2)
skylight-core (3.1.2)
skylight (4.1.2)
skylight-core (= 4.1.2)
skylight-core (4.1.2)
activesupport (>= 4.2.0)
slop (3.6.0)
spring (2.0.2)
Expand Down Expand Up @@ -485,18 +488,18 @@ GEM
activesupport (>= 4.2)
rack-proxy (>= 0.6.1)
railties (>= 4.2)
websocket-driver (0.7.0)
websocket-driver (0.7.1)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
websocket-extensions (0.1.4)
xpath (3.2.0)
nokogiri (~> 1.8)
yajl-ruby (1.4.1)
zeitwerk (2.2.0)

PLATFORMS
ruby

DEPENDENCIES
actiontext!
annotate
api-auth (~> 2.3)
awesome_print
Expand Down Expand Up @@ -548,11 +551,11 @@ DEPENDENCIES
pry-rails
pry-remote
puma
rails (~> 5.2.2)
rails (~> 6.0.0)
rails-controller-testing
rails-erd
rb-readline (~> 0.5.3)
rspec-rails (~> 3.8)
rspec-rails (~> 4.0.0.beta3)
rubocop
sass-rails
sidekiq
Expand Down
Loading

0 comments on commit ff364e3

Please sign in to comment.