rails_apps_composer 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/recipes/extras.rb +4 -2
- data/recipes/init.rb +9 -7
- data/recipes/learn_rails.rb +0 -4
- data/templates/layout.erb +1 -1
- data/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98fc01dcb4c6e7f9ab85bd2f01e5e0476da61fed
|
4
|
+
data.tar.gz: 379fdf2bd2cca7bb324e8a4c301aaab1d1e1583e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4027c5b3d1b7ce03bd47110ee4fa1eb35e531e36fd0258a27f69beb02b3b3558322d1fa64d13e310a85e1068db1bbc3bdf8f5ab32de681e6d182e525c9dae5e5
|
7
|
+
data.tar.gz: 2b2dcebe8496b8c886ab544d06e5b970758437f0f669663749dc064ed0635d6f792a574f20135f3d9f52013ef31e01c57a28b2482ed4fba679707613fc069638
|
data/recipes/extras.rb
CHANGED
@@ -156,9 +156,11 @@ after_everything do
|
|
156
156
|
}.each { |file| remove_file file }
|
157
157
|
# remove temporary Haml gems from Gemfile when Slim is selected
|
158
158
|
if prefer :templates, 'slim'
|
159
|
-
gsub_file 'Gemfile',
|
160
|
-
gsub_file 'Gemfile',
|
159
|
+
gsub_file 'Gemfile', /.*gem 'haml2slim'\n/, "\n"
|
160
|
+
gsub_file 'Gemfile', /.*gem 'html2haml'\n/, "\n"
|
161
161
|
end
|
162
|
+
# remove temporary rails_apps_pages gem
|
163
|
+
gsub_file 'Gemfile', /.*gem 'rails_apps_pages'\n/, ''
|
162
164
|
# remove commented lines and multiple blank lines from Gemfile
|
163
165
|
# thanks to https://github.com/perfectline/template-bucket/blob/master/cleanup.rb
|
164
166
|
gsub_file 'Gemfile', /#.*\n/, "\n"
|
data/recipes/init.rb
CHANGED
@@ -38,13 +38,15 @@ after_everything do
|
|
38
38
|
foreman_cancan = "ROLES=[admin, user, VIP]\n\n"
|
39
39
|
figaro_cancan = foreman_cancan.gsub('=', ': ')
|
40
40
|
## EMAIL
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
41
|
+
unless prefer :email, 'none'
|
42
|
+
inject_into_file 'config/secrets.yml', "\n" + " domain_name: example.com", :after => "development:" if rails_4_1?
|
43
|
+
inject_into_file 'config/secrets.yml', "\n" + " domain_name: <%= ENV[\"DOMAIN_NAME\"] %>", :after => "production:" if rails_4_1?
|
44
|
+
inject_into_file 'config/secrets.yml', "\n" + secrets_email, :after => "development:" if rails_4_1?
|
45
|
+
### 'inject_into_file' doesn't let us inject the same text twice unless we append the extra space, why?
|
46
|
+
inject_into_file 'config/secrets.yml', "\n" + secrets_email + " ", :after => "production:" if rails_4_1?
|
47
|
+
append_file '.env', foreman_email if prefer :local_env_file, 'foreman'
|
48
|
+
append_file 'config/application.yml', figaro_email if prefer :local_env_file, 'figaro'
|
49
|
+
end
|
48
50
|
## DEVISE
|
49
51
|
if prefer :authentication, 'devise'
|
50
52
|
inject_into_file 'config/secrets.yml', "\n" + secrets_d_devise, :after => "development:" if rails_4_1?
|
data/recipes/learn_rails.rb
CHANGED
@@ -74,10 +74,6 @@ if prefer :apps4, 'learn-rails'
|
|
74
74
|
|
75
75
|
copy_from_repo 'app/assets/javascripts/segmentio.js', :repo => repo
|
76
76
|
|
77
|
-
# >-------------------------------[ Cleanup ]--------------------------------<
|
78
|
-
|
79
|
-
gsub_file 'Gemfile', /.*gem 'rails_apps_pages'\n/, ''
|
80
|
-
|
81
77
|
end
|
82
78
|
end
|
83
79
|
|
data/templates/layout.erb
CHANGED
@@ -116,7 +116,7 @@ say_wizard("\033[1m\033[36m" + " \| \| \| \|" + "\
|
|
116
116
|
say_wizard("\033[1m\033[36m" + " \| \| \| \|" + "\033[0m")
|
117
117
|
say_wizard("\033[1m\033[36m" + '' + "\033[0m")
|
118
118
|
say_wizard("\033[1m\033[36m" + "Rails Composer, open source, supported by subscribers." + "\033[0m")
|
119
|
-
say_wizard("\033[1m\033[36m" + "
|
119
|
+
say_wizard("\033[1m\033[36m" + "Please join RailsApps to support development of Rails Composer." + "\033[0m")
|
120
120
|
say_wizard("\033[1m\033[36m" + "Need help? Ask on Stack Overflow with the tag \'railsapps.\'" + "\033[0m")
|
121
121
|
say_wizard("Your new application will contain diagnostics in its README file.")
|
122
122
|
|
data/version.rb
CHANGED