rails_apps_composer 2.4.1 → 2.4.2
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.
- checksums.yaml +4 -4
- data/recipes/apps4.rb +64 -1
- data/recipes/email.rb +25 -17
- data/recipes/gems.rb +59 -48
- data/recipes/init.rb +13 -7
- data/recipes/railsapps.rb +21 -3
- data/templates/layout.erb +0 -5
- data/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: 62ce05c341f22e3bf91c2ef04d2c189d3ff0498a
|
4
|
+
data.tar.gz: df89f3952f5ab4ed020d743d9a49ed1a6887d906
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 976f7aab418f6e2bebd97acb217fefd6a6a532fcf3ddda576bbce21c2a91d23e8d7a0d7bdbc2425fd66c33705c130b253cc47fc15e180ab5895e351515d8d380
|
7
|
+
data.tar.gz: 33072b0fe0ffe1c32810ed983035489223109d9c907cd927f25536c48f4a73ef9a357f9884e9dfd8a43cbba2d5f0bdde4e5945691c3e2f5a2a1722b1630b3106
|
data/recipes/apps4.rb
CHANGED
@@ -22,7 +22,6 @@ if prefer :apps4, 'learn-rails'
|
|
22
22
|
|
23
23
|
# >-------------------------------[ Clean up starter app ]--------------------------------<
|
24
24
|
|
25
|
-
gsub_file 'Gemfile', /gem 'sdoc'/, "# gem 'sdoc'"
|
26
25
|
# remove commented lines and multiple blank lines from Gemfile
|
27
26
|
# thanks to https://github.com/perfectline/template-bucket/blob/master/cleanup.rb
|
28
27
|
gsub_file 'Gemfile', /#.*\n/, "\n"
|
@@ -84,6 +83,70 @@ if prefer :apps4, 'learn-rails'
|
|
84
83
|
end # after_bundler
|
85
84
|
end # learn-rails
|
86
85
|
|
86
|
+
if prefer :apps4, 'rails-bootstrap'
|
87
|
+
|
88
|
+
# >-------------------------------[ Gems ]--------------------------------<
|
89
|
+
|
90
|
+
add_gem 'high_voltage'
|
91
|
+
|
92
|
+
# >-------------------------------[ after_everything ]--------------------------------<
|
93
|
+
|
94
|
+
after_everything do
|
95
|
+
say_wizard "recipe running after 'bundle install'"
|
96
|
+
repo = 'https://raw.github.com/RailsApps/rails-bootstrap/master/'
|
97
|
+
|
98
|
+
# >-------------------------------[ Clean up starter app ]--------------------------------<
|
99
|
+
|
100
|
+
# remove commented lines and multiple blank lines from Gemfile
|
101
|
+
# thanks to https://github.com/perfectline/template-bucket/blob/master/cleanup.rb
|
102
|
+
gsub_file 'Gemfile', /#.*\n/, "\n"
|
103
|
+
gsub_file 'Gemfile', /\n^\s*\n/, "\n"
|
104
|
+
# remove commented lines and multiple blank lines from config/routes.rb
|
105
|
+
gsub_file 'config/routes.rb', / #.*\n/, "\n"
|
106
|
+
gsub_file 'config/routes.rb', /\n^\s*\n/, "\n"
|
107
|
+
# GIT
|
108
|
+
git :add => '-A' if prefer :git, true
|
109
|
+
git :commit => '-qm "rails_apps_composer: clean up starter app"' if prefer :git, true
|
110
|
+
|
111
|
+
# >-------------------------------[ Models ]--------------------------------<
|
112
|
+
|
113
|
+
copy_from_repo 'app/models/visitor.rb', :repo => repo
|
114
|
+
|
115
|
+
# >-------------------------------[ Init ]--------------------------------<
|
116
|
+
copy_from_repo 'config/application.yml', :repo => repo
|
117
|
+
remove_file 'config/application.example.yml'
|
118
|
+
copy_file destination_root + '/config/application.yml', destination_root + '/config/application.example.yml'
|
119
|
+
|
120
|
+
# >-------------------------------[ Controllers ]--------------------------------<
|
121
|
+
|
122
|
+
copy_from_repo 'app/controllers/visitors_controller.rb', :repo => repo
|
123
|
+
|
124
|
+
# >-------------------------------[ Views ]--------------------------------<
|
125
|
+
|
126
|
+
copy_from_repo 'app/views/layouts/_messages.html.erb', :repo => repo
|
127
|
+
copy_from_repo 'app/views/layouts/_navigation.html.erb', :repo => repo
|
128
|
+
copy_from_repo 'app/views/layouts/application.html.erb', :repo => repo
|
129
|
+
copy_from_repo 'app/views/pages/about.html.erb', :repo => repo
|
130
|
+
copy_from_repo 'app/views/visitors/new.html.erb', :repo => repo
|
131
|
+
|
132
|
+
# >-------------------------------[ Routes ]--------------------------------<
|
133
|
+
|
134
|
+
copy_from_repo 'config/routes.rb', :repo => repo
|
135
|
+
### CORRECT APPLICATION NAME ###
|
136
|
+
gsub_file 'config/routes.rb', /^.*.routes.draw do/, "#{app_const}.routes.draw do"
|
137
|
+
|
138
|
+
# >-------------------------------[ Assets ]--------------------------------<
|
139
|
+
|
140
|
+
copy_from_repo 'app/assets/javascripts/application.js', :repo => repo
|
141
|
+
copy_from_repo 'app/assets/stylesheets/application.css.scss', :repo => repo
|
142
|
+
copy_from_repo 'app/assets/stylesheets/bootstrap_and_overrides.css.scss', :repo => repo
|
143
|
+
|
144
|
+
### GIT ###
|
145
|
+
git :add => '-A' if prefer :git, true
|
146
|
+
git :commit => '-qm "rails_apps_composer: rails-bootstrap app"' if prefer :git, true
|
147
|
+
end # after_bundler
|
148
|
+
end # rails-bootstrap
|
149
|
+
|
87
150
|
__END__
|
88
151
|
|
89
152
|
name: apps4
|
data/recipes/email.rb
CHANGED
@@ -4,9 +4,16 @@
|
|
4
4
|
after_bundler do
|
5
5
|
say_wizard "recipe running after 'bundle install'"
|
6
6
|
unless prefer :email, 'none'
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
if Rails::VERSION::MAJOR.to_s == "4"
|
8
|
+
send_email_text = <<-TEXT
|
9
|
+
# Send email in development mode.
|
10
|
+
config.action_mailer.perform_deliveries = true
|
11
|
+
TEXT
|
12
|
+
inject_into_file 'config/environments/development.rb', send_email_text, :after => "config.assets.debug = true"
|
13
|
+
else
|
14
|
+
### DEVELOPMENT
|
15
|
+
gsub_file 'config/environments/development.rb', /# Don't care if the mailer can't send/, '# ActionMailer Config'
|
16
|
+
gsub_file 'config/environments/development.rb', /config.action_mailer.raise_delivery_errors = false/ do
|
10
17
|
<<-RUBY
|
11
18
|
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
12
19
|
config.action_mailer.delivery_method = :smtp
|
@@ -15,17 +22,17 @@ config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
|
15
22
|
config.action_mailer.raise_delivery_errors = true
|
16
23
|
config.action_mailer.default :charset => "utf-8"
|
17
24
|
RUBY
|
18
|
-
|
19
|
-
|
20
|
-
|
25
|
+
end
|
26
|
+
### TEST
|
27
|
+
inject_into_file 'config/environments/test.rb', :before => "\nend" do
|
21
28
|
<<-RUBY
|
22
29
|
\n
|
23
30
|
# ActionMailer Config
|
24
31
|
config.action_mailer.default_url_options = { :host => 'example.com' }
|
25
32
|
RUBY
|
26
|
-
|
27
|
-
|
28
|
-
|
33
|
+
end
|
34
|
+
### PRODUCTION
|
35
|
+
gsub_file 'config/environments/production.rb', /config.active_support.deprecation = :notify/ do
|
29
36
|
<<-RUBY
|
30
37
|
config.active_support.deprecation = :notify
|
31
38
|
|
@@ -37,6 +44,7 @@ config.active_support.deprecation = :notify
|
|
37
44
|
config.action_mailer.raise_delivery_errors = false
|
38
45
|
config.action_mailer.default :charset => "utf-8"
|
39
46
|
RUBY
|
47
|
+
end
|
40
48
|
end
|
41
49
|
end
|
42
50
|
### GMAIL ACCOUNT
|
@@ -46,15 +54,15 @@ RUBY
|
|
46
54
|
config.action_mailer.smtp_settings = {
|
47
55
|
address: "smtp.gmail.com",
|
48
56
|
port: 587,
|
49
|
-
domain: "
|
57
|
+
domain: ENV["DOMAIN_NAME"],
|
50
58
|
authentication: "plain",
|
51
59
|
enable_starttls_auto: true,
|
52
60
|
user_name: ENV["GMAIL_USERNAME"],
|
53
61
|
password: ENV["GMAIL_PASSWORD"]
|
54
62
|
}
|
55
63
|
TEXT
|
56
|
-
inject_into_file 'config/environments/development.rb', gmail_configuration_text, :after =>
|
57
|
-
inject_into_file 'config/environments/production.rb', gmail_configuration_text, :after =>
|
64
|
+
inject_into_file 'config/environments/development.rb', gmail_configuration_text, :after => "config.assets.debug = true"
|
65
|
+
inject_into_file 'config/environments/production.rb', gmail_configuration_text, :after => "config.active_support.deprecation = :notify"
|
58
66
|
end
|
59
67
|
### SENDGRID ACCOUNT
|
60
68
|
if prefer :email, 'sendgrid'
|
@@ -63,14 +71,14 @@ TEXT
|
|
63
71
|
config.action_mailer.smtp_settings = {
|
64
72
|
address: "smtp.sendgrid.net",
|
65
73
|
port: 25,
|
66
|
-
domain: "
|
74
|
+
domain: ENV["DOMAIN_NAME"],
|
67
75
|
authentication: "plain",
|
68
76
|
user_name: ENV["SENDGRID_USERNAME"],
|
69
77
|
password: ENV["SENDGRID_PASSWORD"]
|
70
78
|
}
|
71
79
|
TEXT
|
72
|
-
inject_into_file 'config/environments/development.rb', sendgrid_configuration_text, :after =>
|
73
|
-
inject_into_file 'config/environments/production.rb', sendgrid_configuration_text, :after =>
|
80
|
+
inject_into_file 'config/environments/development.rb', sendgrid_configuration_text, :after => "config.assets.debug = true"
|
81
|
+
inject_into_file 'config/environments/production.rb', sendgrid_configuration_text, :after => "config.active_support.deprecation = :notify"
|
74
82
|
end
|
75
83
|
### MANDRILL ACCOUNT
|
76
84
|
if prefer :email, 'mandrill'
|
@@ -83,8 +91,8 @@ TEXT
|
|
83
91
|
:password => ENV["MANDRILL_API_KEY"]
|
84
92
|
}
|
85
93
|
TEXT
|
86
|
-
inject_into_file 'config/environments/development.rb', mandrill_configuration_text, :after =>
|
87
|
-
inject_into_file 'config/environments/production.rb', mandrill_configuration_text, :after =>
|
94
|
+
inject_into_file 'config/environments/development.rb', mandrill_configuration_text, :after => "config.assets.debug = true"
|
95
|
+
inject_into_file 'config/environments/production.rb', mandrill_configuration_text, :after => "config.active_support.deprecation = :notify"
|
88
96
|
end
|
89
97
|
### GIT
|
90
98
|
git :add => '-A' if prefer :git, true
|
data/recipes/gems.rb
CHANGED
@@ -6,6 +6,11 @@
|
|
6
6
|
## Ruby on Rails
|
7
7
|
insert_into_file('Gemfile', "ruby '#{RUBY_VERSION}'\n", :before => /^ *gem 'rails'/, :force => false)
|
8
8
|
|
9
|
+
## Cleanup
|
10
|
+
# remove the 'sdoc' gem
|
11
|
+
gsub_file 'Gemfile', /group :doc do/, ''
|
12
|
+
gsub_file 'Gemfile', /\s*gem 'sdoc', require: false\nend/, ''
|
13
|
+
|
9
14
|
## Web Server
|
10
15
|
if (prefs[:dev_webserver] == prefs[:prod_webserver])
|
11
16
|
add_gem 'thin' if prefer :dev_webserver, 'thin'
|
@@ -21,10 +26,14 @@ else
|
|
21
26
|
end
|
22
27
|
|
23
28
|
## Rails 4.0 attr_accessible Compatibility
|
24
|
-
|
29
|
+
if prefer :apps4, false
|
30
|
+
add_gem 'protected_attributes' if Rails::VERSION::MAJOR.to_s == "4"
|
31
|
+
end
|
25
32
|
|
26
33
|
## Database Adapter
|
27
|
-
|
34
|
+
unless prefer :database, 'default'
|
35
|
+
gsub_file 'Gemfile', /gem 'sqlite3'\n/, '' unless prefer :database, 'sqlite'
|
36
|
+
end
|
28
37
|
add_gem 'mongoid' if prefer :orm, 'mongoid'
|
29
38
|
gsub_file 'Gemfile', /gem 'pg'.*/, ''
|
30
39
|
add_gem 'pg' if prefer :database, 'postgresql'
|
@@ -115,7 +124,7 @@ end
|
|
115
124
|
|
116
125
|
## Form Builder
|
117
126
|
if Rails::VERSION::MAJOR.to_s == "4"
|
118
|
-
add_gem 'simple_form', '
|
127
|
+
add_gem 'simple_form', '>= 3.0.0.rc' if prefer :form_builder, 'simple_form'
|
119
128
|
else
|
120
129
|
add_gem 'simple_form' if prefer :form_builder, 'simple_form'
|
121
130
|
end
|
@@ -150,57 +159,59 @@ git :commit => '-qm "rails_apps_composer: Gemfile"' if prefer :git, true
|
|
150
159
|
|
151
160
|
### CREATE DATABASE ###
|
152
161
|
after_bundler do
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
162
|
+
unless prefer :database, 'default'
|
163
|
+
copy_from_repo 'config/database-postgresql.yml', :prefs => 'postgresql'
|
164
|
+
copy_from_repo 'config/database-mysql.yml', :prefs => 'mysql'
|
165
|
+
generate 'mongoid:config' if prefer :orm, 'mongoid'
|
166
|
+
remove_file 'config/database.yml' if prefer :orm, 'mongoid'
|
167
|
+
if prefer :database, 'postgresql'
|
168
|
+
begin
|
169
|
+
pg_username = ask_wizard("Username for PostgreSQL? (leave blank to use the app name)")
|
170
|
+
if pg_username.blank?
|
171
|
+
say_wizard "Creating a user named '#{app_name}' for PostgreSQL"
|
172
|
+
run "createuser #{app_name}" if prefer :database, 'postgresql'
|
173
|
+
gsub_file "config/database.yml", /username: .*/, "username: #{app_name}"
|
174
|
+
else
|
175
|
+
gsub_file "config/database.yml", /username: .*/, "username: #{pg_username}"
|
176
|
+
pg_password = ask_wizard("Password for PostgreSQL user #{pg_username}?")
|
177
|
+
gsub_file "config/database.yml", /password:/, "password: #{pg_password}"
|
178
|
+
say_wizard "set config/database.yml for username/password #{pg_username}/#{pg_password}"
|
179
|
+
end
|
180
|
+
rescue StandardError => e
|
181
|
+
raise "unable to create a user for PostgreSQL, reason: #{e}"
|
182
|
+
end
|
183
|
+
gsub_file "config/database.yml", /database: myapp_development/, "database: #{app_name}_development"
|
184
|
+
gsub_file "config/database.yml", /database: myapp_test/, "database: #{app_name}_test"
|
185
|
+
gsub_file "config/database.yml", /database: myapp_production/, "database: #{app_name}_production"
|
186
|
+
end
|
187
|
+
if prefer :database, 'mysql'
|
188
|
+
mysql_username = ask_wizard("Username for MySQL? (leave blank to use the app name)")
|
189
|
+
if mysql_username.blank?
|
163
190
|
gsub_file "config/database.yml", /username: .*/, "username: #{app_name}"
|
164
191
|
else
|
165
|
-
gsub_file "config/database.yml", /username: .*/, "username: #{
|
166
|
-
|
167
|
-
gsub_file "config/database.yml", /password:/, "password: #{
|
168
|
-
say_wizard "set config/database.yml for username/password #{
|
192
|
+
gsub_file "config/database.yml", /username: .*/, "username: #{mysql_username}"
|
193
|
+
mysql_password = ask_wizard("Password for MySQL user #{mysql_username}?")
|
194
|
+
gsub_file "config/database.yml", /password:/, "password: #{mysql_password}"
|
195
|
+
say_wizard "set config/database.yml for username/password #{mysql_username}/#{mysql_password}"
|
169
196
|
end
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
gsub_file "config/database.yml", /database: myapp_development/, "database: #{app_name}_development"
|
174
|
-
gsub_file "config/database.yml", /database: myapp_test/, "database: #{app_name}_test"
|
175
|
-
gsub_file "config/database.yml", /database: myapp_production/, "database: #{app_name}_production"
|
176
|
-
end
|
177
|
-
if prefer :database, 'mysql'
|
178
|
-
mysql_username = ask_wizard("Username for MySQL? (leave blank to use the app name)")
|
179
|
-
if mysql_username.blank?
|
180
|
-
gsub_file "config/database.yml", /username: .*/, "username: #{app_name}"
|
181
|
-
else
|
182
|
-
gsub_file "config/database.yml", /username: .*/, "username: #{mysql_username}"
|
183
|
-
mysql_password = ask_wizard("Password for MySQL user #{mysql_username}?")
|
184
|
-
gsub_file "config/database.yml", /password:/, "password: #{mysql_password}"
|
185
|
-
say_wizard "set config/database.yml for username/password #{mysql_username}/#{mysql_password}"
|
197
|
+
gsub_file "config/database.yml", /database: myapp_development/, "database: #{app_name}_development"
|
198
|
+
gsub_file "config/database.yml", /database: myapp_test/, "database: #{app_name}_test"
|
199
|
+
gsub_file "config/database.yml", /database: myapp_production/, "database: #{app_name}_production"
|
186
200
|
end
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
run 'bundle exec rake db:drop'
|
195
|
-
else
|
196
|
-
raise "aborted at user's request"
|
201
|
+
unless prefer :database, 'sqlite'
|
202
|
+
affirm = yes_wizard? "Drop any existing databases named #{app_name}?"
|
203
|
+
if affirm
|
204
|
+
run 'bundle exec rake db:drop'
|
205
|
+
else
|
206
|
+
raise "aborted at user's request"
|
207
|
+
end
|
197
208
|
end
|
209
|
+
run 'bundle exec rake db:create:all' unless prefer :orm, 'mongoid'
|
210
|
+
run 'bundle exec rake db:create' if prefer :orm, 'mongoid'
|
211
|
+
## Git
|
212
|
+
git :add => '-A' if prefer :git, true
|
213
|
+
git :commit => '-qm "rails_apps_composer: create database"' if prefer :git, true
|
198
214
|
end
|
199
|
-
run 'bundle exec rake db:create:all' unless prefer :orm, 'mongoid'
|
200
|
-
run 'bundle exec rake db:create' if prefer :orm, 'mongoid'
|
201
|
-
## Git
|
202
|
-
git :add => '-A' if prefer :git, true
|
203
|
-
git :commit => '-qm "rails_apps_composer: create database"' if prefer :git, true
|
204
215
|
end # after_bundler
|
205
216
|
|
206
217
|
### GENERATORS ###
|
data/recipes/init.rb
CHANGED
@@ -20,11 +20,13 @@ after_everything do
|
|
20
20
|
append_file 'config/application.yml', credentials if prefs[:local_env_file]
|
21
21
|
if prefs[:local_env_file]
|
22
22
|
## DEFAULT USER
|
23
|
-
|
23
|
+
unless prefer :starter_app, false
|
24
|
+
append_file 'config/application.yml' do <<-FILE
|
24
25
|
ADMIN_NAME: First User
|
25
26
|
ADMIN_EMAIL: user@example.com
|
26
27
|
ADMIN_PASSWORD: changeme
|
27
28
|
FILE
|
29
|
+
end
|
28
30
|
end
|
29
31
|
## AUTHENTICATION
|
30
32
|
if prefer :authentication, 'omniauth'
|
@@ -46,10 +48,12 @@ FILE
|
|
46
48
|
copy_file destination_root + '/config/application.yml', destination_root + '/config/application.example.yml'
|
47
49
|
end
|
48
50
|
### DATABASE SEED ###
|
49
|
-
|
50
|
-
|
51
|
+
if prefs[:local_env_file]
|
52
|
+
append_file 'db/seeds.rb' do <<-FILE
|
53
|
+
# Environment variables (ENV['...']) can be set in the file config/application.yml.
|
51
54
|
# See http://railsapps.github.io/rails-environment-variables.html
|
52
55
|
FILE
|
56
|
+
end
|
53
57
|
end
|
54
58
|
if (prefer :authorization, 'cancan')
|
55
59
|
unless prefer :orm, 'mongoid'
|
@@ -99,10 +103,12 @@ FILE
|
|
99
103
|
end
|
100
104
|
### APPLY DATABASE SEED ###
|
101
105
|
unless prefer :orm, 'mongoid'
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
+
unless prefer :database, 'default'
|
107
|
+
## ACTIVE_RECORD
|
108
|
+
say_wizard "applying migrations and seeding the database"
|
109
|
+
run 'bundle exec rake db:migrate'
|
110
|
+
run 'bundle exec rake db:test:prepare'
|
111
|
+
end
|
106
112
|
else
|
107
113
|
## MONGOID
|
108
114
|
say_wizard "dropping database, creating indexes and seeding the database"
|
data/recipes/railsapps.rb
CHANGED
@@ -19,8 +19,9 @@ when "4"
|
|
19
19
|
["I want to build my own application", "none"]] unless prefs.has_key? :apps4
|
20
20
|
case prefs[:apps4]
|
21
21
|
when 'railsapps'
|
22
|
-
prefs[:apps4] = multiple_choice "
|
23
|
-
[["learn-rails", "learn-rails"]
|
22
|
+
prefs[:apps4] = multiple_choice "Starter apps for Rails 4.0. More to come.",
|
23
|
+
[["learn-rails", "learn-rails"],
|
24
|
+
["rails-bootstrap", "rails-bootstrap"]]
|
24
25
|
when 'contributed_app'
|
25
26
|
prefs[:apps4] = multiple_choice "No contributed applications are available.",
|
26
27
|
[["continue", "none"]]
|
@@ -53,7 +54,7 @@ case prefs[:apps4]
|
|
53
54
|
prefs[:continuous_testing] = false
|
54
55
|
when 'learn-rails'
|
55
56
|
prefs[:git] = true
|
56
|
-
prefs[:database] = '
|
57
|
+
prefs[:database] = 'default'
|
57
58
|
prefs[:unit_test] = false
|
58
59
|
prefs[:integration] = false
|
59
60
|
prefs[:fixtures] = false
|
@@ -68,6 +69,23 @@ case prefs[:apps4]
|
|
68
69
|
prefs[:quiet_assets] = true
|
69
70
|
prefs[:local_env_file] = true
|
70
71
|
prefs[:better_errors] = true
|
72
|
+
when 'rails-bootstrap'
|
73
|
+
prefs[:git] = true
|
74
|
+
prefs[:database] = 'default'
|
75
|
+
prefs[:unit_test] = false
|
76
|
+
prefs[:integration] = false
|
77
|
+
prefs[:fixtures] = false
|
78
|
+
prefs[:frontend] = 'bootstrap'
|
79
|
+
prefs[:bootstrap] = 'sass'
|
80
|
+
prefs[:email] = 'none'
|
81
|
+
prefs[:authentication] = false
|
82
|
+
prefs[:devise_modules] = false
|
83
|
+
prefs[:authorization] = false
|
84
|
+
prefs[:starter_app] = false
|
85
|
+
prefs[:form_builder] = 'simple_form'
|
86
|
+
prefs[:quiet_assets] = true
|
87
|
+
prefs[:local_env_file] = true
|
88
|
+
prefs[:better_errors] = true
|
71
89
|
end
|
72
90
|
|
73
91
|
case prefs[:railsapps]
|
data/templates/layout.erb
CHANGED
@@ -25,11 +25,6 @@
|
|
25
25
|
|
26
26
|
# >----------------------------[ Initial Setup ]------------------------------<
|
27
27
|
|
28
|
-
initializer 'generators.rb', <<-RUBY
|
29
|
-
Rails.application.config.generators do |g|
|
30
|
-
end
|
31
|
-
RUBY
|
32
|
-
|
33
28
|
module Gemfile
|
34
29
|
class GemInfo
|
35
30
|
def initialize(name) @name=name; @group=[]; @opts={}; end
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|