rails_apps_composer 3.1.23 → 3.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/recipes/init.rb +5 -5
  3. data/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59d9da77469360c3758283c8a6d07b8222d18ca1
4
- data.tar.gz: 20bed50e1da12e0022d52211446185d05e942ec7
3
+ metadata.gz: b4120bda3f8a5cfc6d3e9a767538e58a78f972b8
4
+ data.tar.gz: 0a46cd79d4a6ccab482506fa92435151af8d6139
5
5
  SHA512:
6
- metadata.gz: 4eef6d6360b3404b6fb9acaf0b3877843763c6ffc98674339a232093da03aeec04ae8f4ed22c16ba40c40481ea361a69313907dd2cf2d007bff4209ff1ec28f6
7
- data.tar.gz: b557b724c14d6085d9dd855f458a604c9cfed8ce1b4c96a7772264d5abd920faf4c18ec005abb6293fca703841eafa3f3afa27502cf510b8b20e6f224af8f9bc
6
+ metadata.gz: 9d051b902569d869207cf451229e2acbf191e4945ba22bd278bde2d0e736139cb7cea8cc81df6bf0be9c98d4009d6a16d76d0874fb42b11d4f72e9e2a0fc3263
7
+ data.tar.gz: 04f69cb6f1b9ad5e5ec55cb03306164b1bfcdd9b839c563e9cb1a50e330397176935f27cd915b07ac2ccc97f949249d60728210cbee7c3c8f04311fd4d660521
data/recipes/init.rb CHANGED
@@ -8,7 +8,7 @@ stage_three do
8
8
  env_var = " #{secret}: <%= ENV[\"#{secret.upcase}\"] %>"
9
9
  inject_into_file 'config/secrets.yml', "\n" + env_var, :after => "development:"
10
10
  ### 'inject_into_file' doesn't let us inject the same text twice unless we append the extra space, why?
11
- inject_into_file 'config/secrets.yml', "\n" + env_var + " ", :after => "production:"
11
+ inject_into_file 'config/secrets.yml', "\n" + env_var + " ", :after => "\n" + "production:"
12
12
  end
13
13
  end
14
14
  case prefs[:email]
@@ -36,11 +36,11 @@ stage_three do
36
36
  figaro_omniauth = foreman_omniauth.gsub('=', ': ')
37
37
  ## EMAIL
38
38
  inject_into_file 'config/secrets.yml', "\n" + " domain_name: example.com", :after => "development:"
39
- inject_into_file 'config/secrets.yml', "\n" + " domain_name: <%= ENV[\"DOMAIN_NAME\"] %>", :after => "production:"
39
+ inject_into_file 'config/secrets.yml', "\n" + " domain_name: <%= ENV[\"DOMAIN_NAME\"] %>", :after => "\n" + "production:"
40
40
  inject_into_file 'config/secrets.yml', "\n" + secrets_email, :after => "development:"
41
41
  unless prefer :email, 'none'
42
42
  ### 'inject_into_file' doesn't let us inject the same text twice unless we append the extra space, why?
43
- inject_into_file 'config/secrets.yml', "\n" + secrets_email + " ", :after => "production:"
43
+ inject_into_file 'config/secrets.yml', "\n" + secrets_email + " ", :after => "\n" + "production:"
44
44
  append_file '.env', foreman_email if prefer :local_env_file, 'foreman'
45
45
  append_file 'config/application.yml', figaro_email if prefer :local_env_file, 'figaro'
46
46
  end
@@ -48,7 +48,7 @@ stage_three do
48
48
  if prefer :authentication, 'devise'
49
49
  inject_into_file 'config/secrets.yml', "\n" + ' domain_name: example.com' + " ", :after => "test:"
50
50
  inject_into_file 'config/secrets.yml', "\n" + secrets_d_devise, :after => "development:"
51
- inject_into_file 'config/secrets.yml', "\n" + secrets_p_devise, :after => "production:"
51
+ inject_into_file 'config/secrets.yml', "\n" + secrets_p_devise, :after => "\n" + "production:"
52
52
  append_file '.env', foreman_devise if prefer :local_env_file, 'foreman'
53
53
  append_file 'config/application.yml', figaro_devise if prefer :local_env_file, 'figaro'
54
54
  gsub_file 'config/initializers/devise.rb', /'please-change-me-at-config-initializers-devise@example.com'/, "'no-reply@' + Rails.application.secrets.domain_name"
@@ -57,7 +57,7 @@ stage_three do
57
57
  if prefer :authentication, 'omniauth'
58
58
  inject_into_file 'config/secrets.yml', "\n" + secrets_omniauth, :after => "development:"
59
59
  ### 'inject_into_file' doesn't let us inject the same text twice unless we append the extra space, why?
60
- inject_into_file 'config/secrets.yml', "\n" + secrets_omniauth + " ", :after => "production:"
60
+ inject_into_file 'config/secrets.yml', "\n" + secrets_omniauth + " ", :after => "\n" + "production:"
61
61
  append_file '.env', foreman_omniauth if prefer :local_env_file, 'foreman'
62
62
  append_file 'config/application.yml', figaro_omniauth if prefer :local_env_file, 'figaro'
63
63
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.1.23"
2
+ VERSION = "3.1.24"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.23
4
+ version: 3.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe