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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6dc5c70cb98579f63e22680ad0b1d522117eb65b1492d50bba5de23d7f0a662c
4
- data.tar.gz: c97e53c5a59374b48b0331e470a1684e20dae53d3e70983a370c2a96211d3f29
3
+ metadata.gz: 890e00ac9d3e53837f98a7dbf3cf158bba6d8582c65f48112b428d35852ac388
4
+ data.tar.gz: 7e9395ed08ac1eb6aa369478a0f1678f35ce68a733694335ca7235fe7e65c6b3
5
5
  SHA512:
6
- metadata.gz: 7880528eeedca62eb57f65612351aa057e0cb0177932fc285547516c05253fe8c4c9986c0657b3cc2466863351901ca7c0234db492653fceb53ad6e9d9a4410f
7
- data.tar.gz: 417d84ca0b5b64439a0b6fc8d089ab4a24b5f23e7bc056b645c370809929dcf10bde6cdc5225e8affef781e38793efbc609f46ce78481a238e1c75991f45d467
6
+ metadata.gz: 363fe3371d203c7ab31ff04b5fe7ca58a09c874f28aabc0cbe944591ec438a84a966232e028f171ae4b4ec1b1f183f2d564b7440143007ca41c8e31e5afcad90
7
+ data.tar.gz: 319cf29a2b8006c7b22f8af13f678401a5e4a84c91fa60f7680fe28c36d57228df9e87ce11416fa0e80721f49ca9b685c299b1be1683868b7b148b396b3b1c72
@@ -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
- 'worker: bundle exec sidekiq -C config/sidekiq.yml'
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
@@ -5,5 +5,5 @@ module Suspenders
5
5
  read("#{File.dirname(__FILE__)}/../../.ruby-version").
6
6
  strip.
7
7
  freeze
8
- VERSION = "2.35".freeze
8
+ VERSION = "2.36".freeze
9
9
  end
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.35'
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