Upgrade Rails to 5.1

Note we need to upgrade the bullet gem, although another option would be
to remove it completely.

Now we don't need the rubocop rules for deprecated methods, since using
them will raise an error and we'll be notified immediately.
This commit is contained in:
Javi Martín
2019-04-26 19:36:44 +02:00
parent f56306ff7d
commit 31fa6b8bde
3 changed files with 51 additions and 64 deletions

View File

@@ -198,15 +198,6 @@ Performance/EndWith:
Performance/StartWith: Performance/StartWith:
Enabled: true Enabled: true
Rails/ActionFilter:
Enabled: true
Rails/ApplicationJob:
Enabled: true
Rails/ApplicationRecord:
Enabled: true
Rails/CreateTableWithTimestamps: Rails/CreateTableWithTimestamps:
Enabled: true Enabled: true
Exclude: Exclude:
@@ -241,9 +232,6 @@ Rails/HasManyOrHasOneDependent:
Enabled: true Enabled: true
Severity: refactor Severity: refactor
Rails/HttpPositionalArguments:
Enabled: true
Rails/InverseOf: Rails/InverseOf:
Enabled: true Enabled: true
Exclude: Exclude:

View File

@@ -1,6 +1,6 @@
source "https://rubygems.org" source "https://rubygems.org"
gem "rails", "5.0.7.2" gem "rails", "5.1.7"
gem "acts-as-taggable-on", "~> 5.0.0" gem "acts-as-taggable-on", "~> 5.0.0"
gem "acts_as_votable", "~> 0.11.1" gem "acts_as_votable", "~> 0.11.1"
@@ -66,7 +66,7 @@ source "https://rails-assets.org" do
end end
group :development, :test do group :development, :test do
gem "bullet", "~> 5.7.0" gem "bullet", "~> 5.9.0"
gem "byebug", "~> 10.0.0" gem "byebug", "~> 10.0.0"
gem "factory_bot_rails", "~> 4.8.2" gem "factory_bot_rails", "~> 4.8.2"
gem "faker", "~> 1.8.7" gem "faker", "~> 1.8.7"

View File

@@ -10,39 +10,39 @@ GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
remote: https://rails-assets.org/ remote: https://rails-assets.org/
specs: specs:
actioncable (5.0.7.2) actioncable (5.1.7)
actionpack (= 5.0.7.2) actionpack (= 5.1.7)
nio4r (>= 1.2, < 3.0) nio4r (~> 2.0)
websocket-driver (~> 0.6.1) websocket-driver (~> 0.6.1)
actionmailer (5.0.7.2) actionmailer (5.1.7)
actionpack (= 5.0.7.2) actionpack (= 5.1.7)
actionview (= 5.0.7.2) actionview (= 5.1.7)
activejob (= 5.0.7.2) activejob (= 5.1.7)
mail (~> 2.5, >= 2.5.4) mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
actionpack (5.0.7.2) actionpack (5.1.7)
actionview (= 5.0.7.2) actionview (= 5.1.7)
activesupport (= 5.0.7.2) activesupport (= 5.1.7)
rack (~> 2.0) rack (~> 2.0)
rack-test (~> 0.6.3) rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2) rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.7.2) actionview (5.1.7)
activesupport (= 5.0.7.2) activesupport (= 5.1.7)
builder (~> 3.1) builder (~> 3.1)
erubis (~> 2.7.0) erubi (~> 1.4)
rails-dom-testing (~> 2.0) rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3) rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.0.7.2) activejob (5.1.7)
activesupport (= 5.0.7.2) activesupport (= 5.1.7)
globalid (>= 0.3.6) globalid (>= 0.3.6)
activemodel (5.0.7.2) activemodel (5.1.7)
activesupport (= 5.0.7.2) activesupport (= 5.1.7)
activerecord (5.0.7.2) activerecord (5.1.7)
activemodel (= 5.0.7.2) activemodel (= 5.1.7)
activesupport (= 5.0.7.2) activesupport (= 5.1.7)
arel (~> 7.0) arel (~> 8.0)
activesupport (5.0.7.2) activesupport (5.1.7)
concurrent-ruby (~> 1.0, >= 1.0.2) concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2) i18n (>= 0.7, < 2)
minitest (~> 5.1) minitest (~> 5.1)
@@ -70,7 +70,7 @@ GEM
nokogiri nokogiri
ancestry (3.0.7) ancestry (3.0.7)
activerecord (>= 3.2.0) activerecord (>= 3.2.0)
arel (7.1.4) arel (8.0.0)
ast (2.4.0) ast (2.4.0)
audited (4.9.0) audited (4.9.0)
activerecord (>= 4.2, < 6.1) activerecord (>= 4.2, < 6.1)
@@ -91,9 +91,9 @@ GEM
smart_properties smart_properties
browser (2.5.3) browser (2.5.3)
builder (3.2.4) builder (3.2.4)
bullet (5.7.1) bullet (5.9.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
uniform_notifier (~> 1.11.0) uniform_notifier (~> 1.11)
byebug (10.0.0) byebug (10.0.0)
cancancan (2.3.0) cancancan (2.3.0)
capistrano (3.10.1) capistrano (3.10.1)
@@ -144,7 +144,7 @@ GEM
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.12.2) coffee-script-source (1.12.2)
concurrent-ruby (1.1.5) concurrent-ruby (1.1.6)
coveralls (0.8.22) coveralls (0.8.22)
json (>= 1.8, < 3) json (>= 1.8, < 3)
simplecov (~> 0.16.1) simplecov (~> 0.16.1)
@@ -210,7 +210,6 @@ GEM
smart_properties smart_properties
errbase (0.0.3) errbase (0.0.3)
erubi (1.8.0) erubi (1.8.0)
erubis (2.7.0)
execjs (2.7.0) execjs (2.7.0)
factory_bot (4.8.2) factory_bot (4.8.2)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
@@ -332,7 +331,7 @@ GEM
kramdown (~> 1.12, >= 1.12.0) kramdown (~> 1.12, >= 1.12.0)
mixlib-cli (~> 1.7, >= 1.7.0) mixlib-cli (~> 1.7, >= 1.7.0)
mixlib-config (~> 2.2, >= 2.2.1) mixlib-config (~> 2.2, >= 2.2.1)
method_source (0.9.2) method_source (1.0.0)
mime-types (3.1) mime-types (3.1)
mime-types-data (~> 3.2015) mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521) mime-types-data (3.2016.0521)
@@ -351,7 +350,7 @@ GEM
net-ssh (5.0.2) net-ssh (5.0.2)
newrelic_rpm (4.1.0.333) newrelic_rpm (4.1.0.333)
nio4r (2.5.2) nio4r (2.5.2)
nokogiri (1.10.8) nokogiri (1.10.9)
mini_portile2 (~> 2.4.0) mini_portile2 (~> 2.4.0)
nori (2.6.0) nori (2.6.0)
oauth (0.5.4) oauth (0.5.4)
@@ -405,26 +404,26 @@ GEM
public_suffix (4.0.1) public_suffix (4.0.1)
puma (4.3.3) puma (4.3.3)
nio4r (~> 2.0) nio4r (~> 2.0)
rack (2.1.1) rack (2.2.2)
rack-accept (0.4.5) rack-accept (0.4.5)
rack (>= 0.4) rack (>= 0.4)
rack-attack (5.0.1) rack-attack (5.0.1)
rack rack
rack-proxy (0.6.5) rack-proxy (0.6.5)
rack rack
rack-test (0.6.3) rack-test (1.1.0)
rack (>= 1.0) rack (>= 1.0, < 3)
rails (5.0.7.2) rails (5.1.7)
actioncable (= 5.0.7.2) actioncable (= 5.1.7)
actionmailer (= 5.0.7.2) actionmailer (= 5.1.7)
actionpack (= 5.0.7.2) actionpack (= 5.1.7)
actionview (= 5.0.7.2) actionview (= 5.1.7)
activejob (= 5.0.7.2) activejob (= 5.1.7)
activemodel (= 5.0.7.2) activemodel (= 5.1.7)
activerecord (= 5.0.7.2) activerecord (= 5.1.7)
activesupport (= 5.0.7.2) activesupport (= 5.1.7)
bundler (>= 1.3.0) bundler (>= 1.3.0)
railties (= 5.0.7.2) railties (= 5.1.7)
sprockets-rails (>= 2.0.0) sprockets-rails (>= 2.0.0)
rails-assets-leaflet (1.2.0) rails-assets-leaflet (1.2.0)
rails-assets-markdown-it (8.2.2) rails-assets-markdown-it (8.2.2)
@@ -436,9 +435,9 @@ GEM
rails-i18n (5.1.3) rails-i18n (5.1.3)
i18n (>= 0.7, < 2) i18n (>= 0.7, < 2)
railties (>= 5.0, < 6) railties (>= 5.0, < 6)
railties (5.0.7.2) railties (5.1.7)
actionpack (= 5.0.7.2) actionpack (= 5.1.7)
activesupport (= 5.0.7.2) activesupport (= 5.1.7)
method_source method_source
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0) thor (>= 0.18.1, < 2.0)
@@ -577,7 +576,7 @@ GEM
uglifier (4.1.19) uglifier (4.1.19)
execjs (>= 0.3.0, < 3) execjs (>= 0.3.0, < 3)
unicode-display_width (1.6.0) unicode-display_width (1.6.0)
uniform_notifier (1.11.0) uniform_notifier (1.13.0)
user_agent_parser (2.6.0) user_agent_parser (2.6.0)
uuidtools (2.1.5) uuidtools (2.1.5)
warden (1.2.8) warden (1.2.8)
@@ -591,7 +590,7 @@ GEM
railties (>= 4.2) railties (>= 4.2)
websocket-driver (0.6.5) websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0) websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3) websocket-extensions (0.1.4)
whenever (0.10.0) whenever (0.10.0)
chronic (>= 0.6.3) chronic (>= 0.6.3)
wicked_pdf (1.1.0) wicked_pdf (1.1.0)
@@ -609,7 +608,7 @@ DEPENDENCIES
ancestry (~> 3.0.7) ancestry (~> 3.0.7)
audited (~> 4.9.0) audited (~> 4.9.0)
autoprefixer-rails (~> 8.2.0) autoprefixer-rails (~> 8.2.0)
bullet (~> 5.7.0) bullet (~> 5.9.0)
byebug (~> 10.0.0) byebug (~> 10.0.0)
cancancan (~> 2.3.0) cancancan (~> 2.3.0)
capistrano (~> 3.10.1) capistrano (~> 3.10.1)
@@ -664,7 +663,7 @@ DEPENDENCIES
pg (~> 0.21.0) pg (~> 0.21.0)
pg_search (~> 2.0.1) pg_search (~> 2.0.1)
puma (~> 4.3.3) puma (~> 4.3.3)
rails (= 5.0.7.2) rails (= 5.1.7)
rails-assets-leaflet! rails-assets-leaflet!
rails-assets-markdown-it (~> 8.2.1)! rails-assets-markdown-it (~> 8.2.1)!
recipient_interceptor (~> 0.2.0) recipient_interceptor (~> 0.2.0)