Skip to content

Commit 4beb566

Browse files
authored
Merge pull request #501 from srogers/develop
Release v126
2 parents b62ed93 + 138eab3 commit 4beb566

File tree

4 files changed

+78
-73
lines changed

4 files changed

+78
-73
lines changed

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
source 'https://rubygems.org'
22

3-
ruby '2.5.8'
3+
ruby '2.6.6'
44

5-
gem 'rails', '5.2.4.4'
5+
gem 'rails', '5.2.4.5'
66
gem 'pg'
77
gem 'puma'
88
gem 'uglifier'

Gemfile.lock

+64-57
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,43 @@ GIT
99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
actioncable (5.2.4.4)
13-
actionpack (= 5.2.4.4)
12+
actioncable (5.2.4.5)
13+
actionpack (= 5.2.4.5)
1414
nio4r (~> 2.0)
1515
websocket-driver (>= 0.6.1)
16-
actionmailer (5.2.4.4)
17-
actionpack (= 5.2.4.4)
18-
actionview (= 5.2.4.4)
19-
activejob (= 5.2.4.4)
16+
actionmailer (5.2.4.5)
17+
actionpack (= 5.2.4.5)
18+
actionview (= 5.2.4.5)
19+
activejob (= 5.2.4.5)
2020
mail (~> 2.5, >= 2.5.4)
2121
rails-dom-testing (~> 2.0)
22-
actionpack (5.2.4.4)
23-
actionview (= 5.2.4.4)
24-
activesupport (= 5.2.4.4)
22+
actionpack (5.2.4.5)
23+
actionview (= 5.2.4.5)
24+
activesupport (= 5.2.4.5)
2525
rack (~> 2.0, >= 2.0.8)
2626
rack-test (>= 0.6.3)
2727
rails-dom-testing (~> 2.0)
2828
rails-html-sanitizer (~> 1.0, >= 1.0.2)
29-
actionview (5.2.4.4)
30-
activesupport (= 5.2.4.4)
29+
actionview (5.2.4.5)
30+
activesupport (= 5.2.4.5)
3131
builder (~> 3.1)
3232
erubi (~> 1.4)
3333
rails-dom-testing (~> 2.0)
3434
rails-html-sanitizer (~> 1.0, >= 1.0.3)
35-
activejob (5.2.4.4)
36-
activesupport (= 5.2.4.4)
35+
activejob (5.2.4.5)
36+
activesupport (= 5.2.4.5)
3737
globalid (>= 0.3.6)
38-
activemodel (5.2.4.4)
39-
activesupport (= 5.2.4.4)
40-
activerecord (5.2.4.4)
41-
activemodel (= 5.2.4.4)
42-
activesupport (= 5.2.4.4)
38+
activemodel (5.2.4.5)
39+
activesupport (= 5.2.4.5)
40+
activerecord (5.2.4.5)
41+
activemodel (= 5.2.4.5)
42+
activesupport (= 5.2.4.5)
4343
arel (>= 9.0)
44-
activestorage (5.2.4.4)
45-
actionpack (= 5.2.4.4)
46-
activerecord (= 5.2.4.4)
44+
activestorage (5.2.4.5)
45+
actionpack (= 5.2.4.5)
46+
activerecord (= 5.2.4.5)
4747
marcel (~> 0.3.1)
48-
activesupport (5.2.4.4)
48+
activesupport (5.2.4.5)
4949
concurrent-ruby (~> 1.0, >= 1.0.2)
5050
i18n (>= 0.7, < 2)
5151
minitest (~> 5.1)
@@ -62,7 +62,7 @@ GEM
6262
activerecord (>= 5.2, < 6.2)
6363
activesupport (>= 5.2, < 6.2)
6464
request_store (~> 1.0)
65-
autoprefixer-rails (10.2.0.0)
65+
autoprefixer-rails (10.2.4.0)
6666
execjs
6767
better_errors (2.9.1)
6868
coderay (>= 1.0.0)
@@ -89,13 +89,14 @@ GEM
8989
rack-test (>= 0.6.3)
9090
regexp_parser (>= 1.5, < 3.0)
9191
xpath (~> 3.2)
92-
carrierwave (2.1.0)
92+
carrierwave (2.1.1)
9393
activemodel (>= 5.0.0)
9494
activesupport (>= 5.0.0)
9595
addressable (~> 2.6)
9696
image_processing (~> 1.1)
9797
mimemagic (>= 0.3.0)
9898
mini_mime (>= 0.1.3)
99+
ssrf_filter (~> 1.0)
99100
chartkick (3.4.2)
100101
childprocess (3.0.0)
101102
choice (0.2.0)
@@ -158,7 +159,12 @@ GEM
158159
cucumber-core (~> 8.0, >= 8.0.1)
159160
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
160161
cucumber-messages (~> 13.0, >= 13.0.1)
161-
database_cleaner (1.8.5)
162+
database_cleaner (2.0.1)
163+
database_cleaner-active_record (~> 2.0.0)
164+
database_cleaner-active_record (2.0.0)
165+
activerecord (>= 5.a)
166+
database_cleaner-core (~> 2.0.0)
167+
database_cleaner-core (2.0.1)
162168
debug_inspector (1.0.0)
163169
diff-lcs (1.4.4)
164170
dotenv (2.7.6)
@@ -169,7 +175,7 @@ GEM
169175
erubis (2.7.0)
170176
ethon (0.12.0)
171177
ffi (>= 1.3.0)
172-
excon (0.78.1)
178+
excon (0.79.0)
173179
execjs (2.7.0)
174180
factory_bot (6.1.0)
175181
activesupport (>= 5.0.0)
@@ -216,7 +222,7 @@ GEM
216222
i18n (>= 0.7)
217223
multi_json
218224
request_store (>= 1.0)
219-
groupdate (5.2.1)
225+
groupdate (5.2.2)
220226
activesupport (>= 5)
221227
haml (5.2.1)
222228
temple (>= 0.8.0)
@@ -232,7 +238,7 @@ GEM
232238
haml (>= 4.0, < 6)
233239
nokogiri (>= 1.6.0)
234240
ruby_parser (~> 3.5)
235-
i18n (1.8.7)
241+
i18n (1.8.9)
236242
concurrent-ruby (~> 1.0)
237243
i18n_data (0.10.0)
238244
image_info (1.2.2)
@@ -298,7 +304,7 @@ GEM
298304
middleware (0.1.0)
299305
mime-types (3.3.1)
300306
mime-types-data (~> 3.2015)
301-
mime-types-data (3.2020.1104)
307+
mime-types-data (3.2021.0212)
302308
mimemagic (0.3.5)
303309
mini_magick (4.11.0)
304310
mini_mime (1.0.2)
@@ -310,7 +316,7 @@ GEM
310316
net-http-persistent (4.0.1)
311317
connection_pool (~> 2.2)
312318
net_http_timeout_errors (0.3.5)
313-
nio4r (2.5.4)
319+
nio4r (2.5.5)
314320
nokogiri (1.11.1)
315321
mini_portile2 (~> 2.5.0)
316322
racc (~> 1.4)
@@ -339,30 +345,30 @@ GEM
339345
middleware
340346
thor
341347
thread_safe
342-
pry (0.13.1)
348+
pry (0.14.0)
343349
coderay (~> 1.1)
344350
method_source (~> 1.0)
345351
public_suffix (4.0.6)
346-
puma (5.2.0)
352+
puma (5.2.1)
347353
nio4r (~> 2.0)
348354
racc (1.5.2)
349355
rack (2.2.3)
350356
rack-protection (2.1.0)
351357
rack
352358
rack-test (1.1.0)
353359
rack (>= 1.0, < 3)
354-
rails (5.2.4.4)
355-
actioncable (= 5.2.4.4)
356-
actionmailer (= 5.2.4.4)
357-
actionpack (= 5.2.4.4)
358-
actionview (= 5.2.4.4)
359-
activejob (= 5.2.4.4)
360-
activemodel (= 5.2.4.4)
361-
activerecord (= 5.2.4.4)
362-
activestorage (= 5.2.4.4)
363-
activesupport (= 5.2.4.4)
360+
rails (5.2.4.5)
361+
actioncable (= 5.2.4.5)
362+
actionmailer (= 5.2.4.5)
363+
actionpack (= 5.2.4.5)
364+
actionview (= 5.2.4.5)
365+
activejob (= 5.2.4.5)
366+
activemodel (= 5.2.4.5)
367+
activerecord (= 5.2.4.5)
368+
activestorage (= 5.2.4.5)
369+
activesupport (= 5.2.4.5)
364370
bundler (>= 1.3.0)
365-
railties (= 5.2.4.4)
371+
railties (= 5.2.4.5)
366372
sprockets-rails (>= 2.0.0)
367373
rails-assets-tether (1.1.1)
368374
rails-controller-testing (1.0.5)
@@ -372,16 +378,16 @@ GEM
372378
rails-dom-testing (2.0.3)
373379
activesupport (>= 4.2.0)
374380
nokogiri (>= 1.6)
375-
rails-erd (1.6.0)
381+
rails-erd (1.6.1)
376382
activerecord (>= 4.2)
377383
activesupport (>= 4.2)
378384
choice (~> 0.2.0)
379385
ruby-graphviz (~> 1.2)
380386
rails-html-sanitizer (1.3.0)
381387
loofah (~> 2.3)
382-
railties (5.2.4.4)
383-
actionpack (= 5.2.4.4)
384-
activesupport (= 5.2.4.4)
388+
railties (5.2.4.5)
389+
actionpack (= 5.2.4.5)
390+
activesupport (= 5.2.4.5)
385391
method_source
386392
rake (>= 0.8.7)
387393
thor (>= 0.19.0, < 2.0)
@@ -395,7 +401,7 @@ GEM
395401
request_store (1.5.0)
396402
rack (>= 1.4)
397403
rexml (3.2.4)
398-
rmagick (4.1.2)
404+
rmagick (4.2.1)
399405
rspec (3.10.0)
400406
rspec-core (~> 3.10.0)
401407
rspec-expectations (~> 3.10.0)
@@ -422,7 +428,7 @@ GEM
422428
rspec-mocks (~> 3.10)
423429
rspec-support (~> 3.10)
424430
rspec-support (3.10.2)
425-
rubocop (1.9.0)
431+
rubocop (1.10.0)
426432
parallel (~> 1.10)
427433
parser (>= 3.0.0.0)
428434
rainbow (>= 2.2.2, < 4.0)
@@ -437,7 +443,7 @@ GEM
437443
activesupport (>= 4.2.0)
438444
rack (>= 1.1)
439445
rubocop (>= 0.90.0, < 2.0)
440-
rubocop-rspec (2.1.0)
446+
rubocop-rspec (2.2.0)
441447
rubocop (~> 1.0)
442448
rubocop-ast (>= 1.1.0)
443449
ruby-graphviz (1.2.5)
@@ -460,7 +466,7 @@ GEM
460466
sprockets (> 3.0)
461467
sprockets-rails
462468
tilt
463-
scout_apm (4.0.3)
469+
scout_apm (4.0.4)
464470
parser
465471
scrypt (3.0.7)
466472
ffi-compiler (>= 1.0, < 2.0)
@@ -479,9 +485,9 @@ GEM
479485
sidekiq-status (1.1.4)
480486
chronic_duration
481487
sidekiq (>= 3.0)
482-
simple_form (5.0.3)
483-
actionpack (>= 5.0)
484-
activemodel (>= 5.0)
488+
simple_form (5.1.0)
489+
actionpack (>= 5.2)
490+
activemodel (>= 5.2)
485491
sixarm_ruby_unaccent (1.2.0)
486492
social-share-button (1.2.3)
487493
coffee-rails
@@ -494,6 +500,7 @@ GEM
494500
actionpack (>= 4.0)
495501
activesupport (>= 4.0)
496502
sprockets (>= 3.0.0)
503+
ssrf_filter (1.0.7)
497504
sys-uname (1.2.2)
498505
ffi (~> 1.1)
499506
temple (0.8.2)
@@ -569,7 +576,7 @@ DEPENDENCIES
569576
prawn-table
570577
pry
571578
puma
572-
rails (= 5.2.4.4)
579+
rails (= 5.2.4.5)
573580
rails-assets-tether
574581
rails-controller-testing
575582
rails-erd
@@ -596,7 +603,7 @@ DEPENDENCIES
596603
webrat
597604

598605
RUBY VERSION
599-
ruby 2.5.8p224
606+
ruby 2.6.6p146
600607

601608
BUNDLED WITH
602-
2.2.5
609+
2.2.11

config/environments/production.rb

+11-13
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@
4545
# config.action_cable.mount_path = nil
4646

4747

48-
# Force SSL only on production - staging doesn't have a cert
49-
if ENV['MAIL_HOST'] == 'objectivistmedia.com'
50-
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
51-
config.force_ssl = true
52-
config.ssl_options = { redirect: { status: 307, port: 81 } }
53-
end
48+
# SSL now works on Heroku for both fee and paid apps, so force SSL in both staging and production.
49+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
50+
config.force_ssl = true
51+
config.ssl_options = { redirect: { status: 307, port: 81 } }
5452

5553
# Use a different cache store in production.
5654
# config.cache_store = :mem_cache_store
@@ -70,13 +68,13 @@
7068
Rails.application.routes.default_url_options[:host] = ENV['MAIL_HOST']
7169

7270
ActionMailer::Base.smtp_settings = {
73-
:address => 'smtp.sendgrid.net',
74-
:port => '587',
75-
:authentication => :plain,
76-
:user_name => ENV['SENDGRID_USERNAME'],
77-
:password => ENV['SENDGRID_PASSWORD'],
78-
:domain => 'heroku.com',
79-
:enable_starttls_auto => true
71+
:port => ENV['MAILGUN_SMTP_PORT'],
72+
:address => ENV['MAILGUN_SMTP_SERVER'],
73+
:user_name => ENV['MAILGUN_SMTP_LOGIN'],
74+
:password => ENV['MAILGUN_SMTP_PASSWORD'],
75+
:domain => ENV['MAIL_HOST'],
76+
:authentication => :plain,
77+
:enable_starttls_auto => true # SendGrid had this - carrying it forward
8078
}
8179

8280
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to

lib/tasks/heroku.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace :heroku do
44
# This prevents the environment of the forked command from getting the wrong environment. Weirdly, when the
55
# heroku:deploy task runs, it calls the copy of run() in the statements namespace - so both are fixed. The
66
# culprit for getting the wrong Ruby into the environment seems to be the Heroku toolbelt.
7-
Bundler.with_clean_env { sh *cmd }
7+
Bundler.with_unbundled_env { sh *cmd }
88
raise "Command #{cmd.inspect} failed!" unless $?.success?
99
end
1010

0 commit comments

Comments
 (0)