welaika-suspenders 2.35 → 2.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG_WELAIKA.md +4 -0
- data/lib/suspenders/adapters/heroku.rb +9 -0
- data/lib/suspenders/app_builder.rb +4 -1
- data/lib/suspenders/generators/app_generator.rb +1 -0
- data/lib/suspenders/generators/jobs_generator.rb +2 -2
- data/lib/suspenders/version.rb +1 -1
- data/templates/bin_auto_migrate +0 -0
- data/templates/dotfiles/.nvmrc +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 890e00ac9d3e53837f98a7dbf3cf158bba6d8582c65f48112b428d35852ac388
|
4
|
+
data.tar.gz: 7e9395ed08ac1eb6aa369478a0f1678f35ce68a733694335ca7235fe7e65c6b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 363fe3371d203c7ab31ff04b5fe7ca58a09c874f28aabc0cbe944591ec438a84a966232e028f171ae4b4ec1b1f183f2d564b7440143007ca41c8e31e5afcad90
|
7
|
+
data.tar.gz: 319cf29a2b8006c7b22f8af13f678401a5e4a84c91fa60f7680fe28c36d57228df9e87ce11416fa0e80721f49ca9b685c299b1be1683868b7b148b396b3b1c72
|
data/CHANGELOG_WELAIKA.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
2.36 (October 20th, 2019)
|
2
|
+
* Feature: add nvmrc with latest node lts (dubnium)
|
3
|
+
* Fix: heroku auto migrate functionality
|
4
|
+
|
1
5
|
2.35 (October 20th, 2019)
|
2
6
|
* Change: add more exclusion to rubocop (from the default configuration on github)
|
3
7
|
* Change: configure autoprefixer browsers list
|
@@ -94,6 +94,15 @@ module Suspenders
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
+
def set_heroku_auto_migrate
|
98
|
+
%w(staging production).each do |environment|
|
99
|
+
run_toolbelt_command(
|
100
|
+
"config:add AUTO_MIGRATE_DB=true",
|
101
|
+
environment,
|
102
|
+
)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
97
106
|
def set_heroku_buildpacks
|
98
107
|
%w(staging production).each do |environment|
|
99
108
|
run_toolbelt_command(
|
@@ -11,6 +11,7 @@ module Suspenders
|
|
11
11
|
:create_production_heroku_app,
|
12
12
|
:create_staging_heroku_app,
|
13
13
|
:set_heroku_application_host,
|
14
|
+
:set_heroku_auto_migrate,
|
14
15
|
:set_heroku_backup_schedule,
|
15
16
|
:set_heroku_rails_secrets,
|
16
17
|
:set_heroku_remotes,
|
@@ -239,7 +240,9 @@ config.public_file_server.headers = {
|
|
239
240
|
end
|
240
241
|
|
241
242
|
def configure_automatic_deployment
|
242
|
-
append_file "Procfile", "release: bin/auto_migrate"
|
243
|
+
append_file "Procfile", "release: bin/auto_migrate\n"
|
244
|
+
copy_file "bin_auto_migrate", "bin/auto_migrate"
|
245
|
+
chmod "bin/auto_migrate", 0o755
|
243
246
|
end
|
244
247
|
|
245
248
|
def setup_bundler_audit
|
@@ -117,6 +117,7 @@ module Suspenders
|
|
117
117
|
build :set_heroku_remotes
|
118
118
|
build :set_heroku_rails_secrets
|
119
119
|
build :set_heroku_application_host
|
120
|
+
build :set_heroku_auto_migrate
|
120
121
|
build :set_heroku_backup_schedule
|
121
122
|
build :set_heroku_sentry_configuration
|
122
123
|
build :set_heroku_smtp_settings
|
@@ -10,7 +10,7 @@ module Suspenders
|
|
10
10
|
def configure_foreman
|
11
11
|
append_to_file(
|
12
12
|
'Procfile',
|
13
|
-
|
13
|
+
"worker: bundle exec sidekiq -C config/sidekiq.yml\n"
|
14
14
|
)
|
15
15
|
end
|
16
16
|
|
@@ -45,7 +45,7 @@ module Suspenders
|
|
45
45
|
def configure_active_job
|
46
46
|
inject_into_file(
|
47
47
|
"config/application.rb",
|
48
|
-
"\n config.active_job.queue_adapter = :sidekiq",
|
48
|
+
"\n config.active_job.queue_adapter = :sidekiq\n",
|
49
49
|
before: "\n end",
|
50
50
|
)
|
51
51
|
end
|
data/lib/suspenders/version.rb
CHANGED
data/templates/bin_auto_migrate
CHANGED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
lts/dubnium
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: welaika-suspenders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.36'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thoughtbot
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- templates/dockerignore
|
193
193
|
- templates/dotfiles/.ctags
|
194
194
|
- templates/dotfiles/.env
|
195
|
+
- templates/dotfiles/.nvmrc
|
195
196
|
- templates/email.rb
|
196
197
|
- templates/errors.rb
|
197
198
|
- templates/factory_bot.rake
|