Skip to content

Commit 6a57ffc

Browse files
author
Vidas P
committed
Upgrade to Rails 6
1 parent 14e4651 commit 6a57ffc

File tree

16 files changed

+307
-341
lines changed

16 files changed

+307
-341
lines changed

.rubocop.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Style/FrozenStringLiteralComment:
2424
Enabled: false
2525
Lint/UnderscorePrefixedVariableName:
2626
Enabled: false
27-
Style/BracesAroundHashParameters:
28-
Enabled: false
2927
Metrics/BlockLength:
3028
Enabled: false
3129
Style/BlockDelimiters:

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [current]
99
### Fixed
10-
- Update puma (CVE-2020-5249)
11-
- Update rails, grape (CVE-2020-5267)
10+
- Update puma (CVE-2020-5249).
11+
- Update rails, grape (CVE-2020-5267).
12+
13+
### Changed
14+
- Upgrade to Rails 6.
1215

1316

1417
## [0.9.7] - 2020-02-28

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.6.3-slim
1+
FROM ruby:2.6.6-slim
22

33
COPY docker/scripts/prepare /scripts/
44
RUN /scripts/prepare

Gemfile

Lines changed: 29 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,6 @@ source 'https://rubygems.org'
22

33
ruby '>=2.6.0'
44

5-
# Ensure github repositories are fetched using HTTPS
6-
git_source(:github) do |repo_name|
7-
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
8-
"https://github.com/#{repo_name}.git"
9-
end if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('2')
10-
11-
# Introduces a scope for gem loading based on a condition
12-
def if_true(condition)
13-
if condition
14-
yield
15-
else
16-
# When not including the gems, we still want our Gemfile.lock
17-
# to include them, so we scope them to an unsupported platform.
18-
platform :ruby_18, &proc
19-
end
20-
end
21-
225
# Optional libraries. To conserve RAM, comment out any that you don't need,
236
# then run `bundle` and commit the updated Gemfile and Gemfile.lock.
247
# TODO: update
@@ -43,11 +26,10 @@ gem 'omniauth-37signals' # BasecampAgent
4326
gem 'omniauth-wunderlist'
4427

4528
gem 'ace-rails-ap', '~> 4.2'
46-
gem 'bootsnap', '>= 1.1.0', require: false
29+
gem 'bootsnap', '>= 1.4.6', require: false
4730
gem 'execjs', '~> 2.7.0'
4831
gem 'mini_racer', '~> 0.2.8'
49-
gem 'bootstrap', '~> 4.3.1'
50-
gem 'bootstrap-kaminari-views', '~> 0.0.5'
32+
gem 'bootstrap', '~> 4.4.1'
5133
gem 'daemons', '~> 1.2.6'
5234
gem 'delayed_job', '~> 4.1.8'
5335
gem 'delayed_job_active_record', '~> 4.1.4'
@@ -57,83 +39,77 @@ gem 'dotenv', '~> 2.5.0'
5739
gem 'faraday', '~> 0.9'
5840
gem 'faraday_middleware', '~> 0.12.2'
5941
gem 'feedjira', '~> 2.2'
60-
gem 'font-awesome-sass', '~> 5.6.1'
42+
gem 'font-awesome-sass', '~> 5.12.0'
6143
gem 'httparty', '~> 0.16'
6244
gem 'jquery-rails', '~> 4.3.5'
63-
gem 'json', '~> 2.2.0'
45+
gem 'json', '~> 2.3.0'
6446
gem 'jsonpath', '~> 1.0.1'
6547
gem 'kaminari', '~> 1.1.1'
6648
gem 'kramdown', '~> 2.1.0'
6749
gem 'liquid', '~> 4.0.3'
68-
gem 'loofah', '~> 2.3.1'
50+
gem 'loofah', '~> 2.5.0'
6951
gem 'mini_magick', '~> 4.9.5'
7052
gem 'nokogiri', '~> 1.10.8'
7153
gem 'omniauth', '~> 1.9.0'
7254
gem 'rack-timeout', '~> 0.5.1'
73-
gem 'rails', '~> 5.2.4.2'
74-
gem 'rails-html-sanitizer', '~> 1.0.4'
55+
gem 'rails', '~> 6.0.2'
56+
gem 'rails-html-sanitizer', '~> 1.3.0'
7557
# TODO: Removing coffee-rails breaks deployment on heroku, investigate.
7658
gem 'coffee-rails', '~> 4.2.2'
7759
# TODO: update
7860
gem 'rufus-scheduler', '~> 3.4.2', require: false
7961
gem 'sass-rails', '~> 5.0'
62+
gem 'sassc', '~>2.3.0'
8063
# TODO: update
8164
gem 'select2-rails', '~> 3.5.4'
8265
gem 'source-sans-pro-rails', '~> 0.7.0'
8366
gem 'spectrum-rails', '~> 1.8.0'
8467
gem 'sprockets', '~> 3.7.2'
8568
# TODO: update
86-
gem 'typhoeus', '~> 0.6.3'
69+
gem 'typhoeus', '~> 1.3.1'
8770
gem 'uglifier', '~> 4.1.18'
8871
gem 'jquery-datatables', '~> 1.10.19'
89-
gem 'grape', '~> 1.3.1'
72+
gem 'grape', '~> 1.3.2'
9073
gem 'grape-entity', '~> 0.8.0'
9174
gem 'jwt', '~> 2.2.1'
9275

9376
group :development do
94-
gem 'foreman', '~> 0.86.0'
95-
gem 'bullet', '~> 6.0.1'
96-
gem 'sqlite3', '~> 1.4.1'
97-
gem 'better_errors', '~> 2.5.1'
77+
gem 'foreman', '~> 0.87.1'
78+
gem 'bullet', '~> 6.1.0'
79+
gem 'sqlite3', '~> 1.4.2'
80+
gem 'better_errors', '~> 2.7.0'
9881
gem 'binding_of_caller', '~> 0.8.0'
99-
gem 'guard', '~> 2.16.1'
82+
gem 'guard', '~> 2.16.2'
10083
gem 'guard-livereload', '~> 2.5.2'
10184
gem 'guard-rspec', '~> 4.7.3'
102-
gem 'letter_opener_web', '~> 1.3.4'
103-
gem 'overcommit', '~> 0.51.0'
85+
gem 'letter_opener_web', '~> 1.4.0'
86+
gem 'overcommit', '~> 0.53.0'
10487
gem 'rack-livereload', '~> 0.3.17'
105-
gem 'rails_best_practices', '~> 1.19.4'
106-
gem 'reek', '~> 5.4.0'
107-
gem 'rubocop', '~> 0.76.0'
88+
gem 'rails_best_practices', '~> 1.20.0'
89+
gem 'reek', '~> 6.0.0'
90+
gem 'rubocop', '~> 0.82.0'
10891
gem 'web-console', '~> 3.7.0'
10992

110-
if_true(ENV['SPRING']) do
111-
gem 'spring-commands-rspec', '~> 1.0.4'
112-
gem 'spring', '~> 2.0.2'
113-
gem 'spring-watcher-listen', '~> 2.0.1'
114-
end
115-
11693
group :test do
117-
gem 'capybara', '~> 3.29.0'
118-
gem 'capybara-screenshot', '~> 1.0.23'
94+
gem 'capybara', '~> 3.32.1'
95+
gem 'capybara-screenshot', '~> 1.0.24'
11996
gem 'capybara-select2', require: false
12097
gem 'codecov', '~> 0.1.16', require: false
12198
gem 'delorean', '~> 2.1.0'
122-
gem 'parallel_split_test', '~> 0.7.0'
123-
gem 'pry-byebug', '~> 3.7.0'
99+
gem 'pry-byebug', '~> 3.9.0'
124100
gem 'pry-rails', '~> 0.3.9'
125101
gem 'rails-controller-testing', '~> 1.0.4'
126102
# TODO: update
127103
gem 'rr', '~> 1.1.2'
128104
gem 'rspec', '~> 3.9.0'
129-
gem 'rspec-rails', '~> 3.9.0'
105+
gem 'rspec-rails', '~> 4.0.0'
130106
gem 'rspec-collection_matchers', '~> 1.2.0'
131107
gem 'rspec-html-matchers', '~> 0.9.2'
132108
gem 'rspec_junit_formatter', '~> 0.4.1'
133-
gem 'selenium-webdriver', '~> 3.142.6'
134-
gem 'shoulda-matchers', '~> 4.1.2'
135-
gem 'vcr', '~> 5.0.0'
136-
gem 'webmock', '~> 3.7.6'
109+
gem 'selenium-webdriver', '~> 3.142.7'
110+
gem 'shoulda-matchers', '~> 4.3.0'
111+
gem 'vcr', '~> 5.1.0'
112+
gem 'webmock', '~> 3.8.3'
137113
end
138114
end
139115

@@ -146,6 +122,4 @@ ENV['DATABASE_ADAPTER'] ||=
146122
'sqlite3'
147123
end
148124

149-
if_true(ENV['DATABASE_ADAPTER'].strip == 'postgresql') do
150-
gem 'pg', '~> 1.1.4'
151-
end
125+
gem 'pg', '~> 1.2.3'

0 commit comments

Comments
 (0)