os_suspenders 1.8.3 → 1.8.4

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
  SHA1:
3
- metadata.gz: a7936b5c9611943e5f78ac9e49c08ff5a07ddfae
4
- data.tar.gz: 197ddd0c369580bc43d17b51b439a3de954f6a2f
3
+ metadata.gz: b21afd31e0fecf12f92485674bc89fe697d6a8e0
4
+ data.tar.gz: 8b2aac30797d0cc5f4907b97f12fba38180ee9be
5
5
  SHA512:
6
- metadata.gz: d7edf56e2492521bf003486e9d584662607bacaec3021de2e713a4f59c1918174fb75435aa14f2fe3aad7c8c740d836ece6fb1efb433219922d347861a5eff4f
7
- data.tar.gz: 4aa410f8d36e21f336369917c1f4c6248c579f6e21ac45fa38cb05361ab4afaa8fc0bdc77c75e7c469331767b3d20ca47f508b5afd8848cb56faa28297aa7323
6
+ metadata.gz: 9a6124a2bc612651e408d0763a456cc3f1c5f639a140be7e0210e2753ec96329e57ddd762edc3ac059f4a9885f77f952bc4f5bd138653ca48e5b95072f0d74f3
7
+ data.tar.gz: 75d861c63b9f2f2053c55cc68562ada5c292fb8f02698e0856d258ee5445e9b75cf2c0761edfef7511fb09680f86e0b3d4144368efaccad75e713e565b506580
@@ -220,7 +220,7 @@ end
220
220
  end
221
221
 
222
222
  def setup_foreman
223
- copy_file 'sample.env', '.sample.env'
223
+ copy_file 'sample.env', '.env'
224
224
  copy_file 'Procfile', 'Procfile'
225
225
  end
226
226
 
@@ -314,6 +314,8 @@ git remote add production git@heroku.com:#{app_name}-production.git
314
314
 
315
315
  def generate_devise
316
316
  generate 'devise:install'
317
+ inject_into_file 'config/initializers/devise.rb',
318
+ " config.secret_key = ENV['SECRET_KEY_BASE']\n", after: "Devise.setup do |config|\n"
317
319
  end
318
320
 
319
321
  def generate_devise_user
@@ -324,6 +326,11 @@ git remote add production git@heroku.com:#{app_name}-production.git
324
326
  bundle_command 'exec rake db:migrate db:test:prepare'
325
327
  end
326
328
 
329
+ def devise_token
330
+ token = generate_secret
331
+ replace_in_file '.env', 'development_secret', token
332
+ end
333
+
327
334
  private
328
335
 
329
336
  def override_path_for_tests
@@ -68,6 +68,7 @@ module Suspenders
68
68
 
69
69
  build :generate_devise
70
70
  build :generate_devise_user
71
+ build :devise_token
71
72
  build :devise_migrate
72
73
  end
73
74
 
@@ -1,3 +1,3 @@
1
1
  module Suspenders
2
- VERSION = '1.8.3'
2
+ VERSION = '1.8.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: os_suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.3
4
+ version: 1.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot/os
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-13 00:00:00.000000000 Z
11
+ date: 2014-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler