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 +4 -4
- data/lib/suspenders/app_builder.rb +8 -1
- data/lib/suspenders/generators/app_generator.rb +1 -0
- data/lib/suspenders/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b21afd31e0fecf12f92485674bc89fe697d6a8e0
|
4
|
+
data.tar.gz: 8b2aac30797d0cc5f4907b97f12fba38180ee9be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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', '.
|
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
|
data/lib/suspenders/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|