rails_apps_composer 2.4.18 → 2.4.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b511d58b33d67f613a79d7f9902056efb786c57c
4
- data.tar.gz: df3e563a32e37ffc5d263b24793560d72ceb9a57
3
+ metadata.gz: 45443754bcf923a8c2e89db7e0676571add637ee
4
+ data.tar.gz: f0a5dc8616f9857f768629d13d955802856fe344
5
5
  SHA512:
6
- metadata.gz: 37e1d6c41c055d7db93e76c38107085896ad446d5d278e1a76c8e860244f77acd6e947e71855958dff1ea40d98e5538d9699ab56a4854cb6d9ae17dc5326c2e3
7
- data.tar.gz: 9eb7887cbd3adc013d8121f06bc817dca9190e8ab813c44a2ec22bac04f8357082df6d8d630a1da517db0622e37a959b36e4d8ddcf1180f072ee18a931599e03
6
+ metadata.gz: 75d4759a7856d60f659983e77c80803885b9d1acbac8e09e8a8825d507dfc84e1e1e0263e37e9101a950cc724d061134893bb3324d0bf3ba016fa8d5cc0d9809
7
+ data.tar.gz: 4eaf50f8d6cf0bea077b2943f75fd602c68c352a54ee8cdef79faf1b530663df8e615910b84f595e6d696f0b9d230e24d53eccd8a0474021e170fff4a39e1ec4
data/README.textile CHANGED
@@ -25,14 +25,6 @@ The "Guide to the Rails Apps Composer Gem":http://railsapps.github.io/tutorial-r
25
25
 
26
26
  Any issues? Please create a "GitHub issue":http://github.com/RailsApps/rails_apps_composer/issues.
27
27
 
28
- h3. From the RailsApps Project
29
-
30
- The "RailsApps project":http://railsapps.github.io/ provides example applications that developers use as starter apps. Hundreds of developers use the apps, report problems as they arise, and propose solutions. Rails changes frequently; each application is known to work and serves as your personal "reference implementation" so you can stay up to date. Each is accompanied by a tutorial so there is no mystery code. Maintenance and development of the RailsApps applications is supported by subscriptions to the "RailsApps tutorials":https://tutorials.railsapps.org.
31
-
32
- h2. !http://twitter-badges.s3.amazonaws.com/t_logo-a.png(Follow on Twitter)!:http://www.twitter.com/rails_apps Follow on Twitter
33
-
34
- Follow the project on Twitter: "@rails_apps":http://twitter.com/rails_apps. Tweet some praise if you like what you've found.
35
-
36
28
  h2. What's New
37
29
 
38
30
  See the "CHANGELOG":https://github.com/RailsApps/rails_apps_composer/blob/master/CHANGELOG.textile for details.
data/recipes/apps4.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  # Application template recipe for the rails_apps_composer. Change the recipe here:
2
2
  # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/apps4.rb
3
3
 
4
+ ### LEARN-RAILS ####
5
+
4
6
  if prefer :apps4, 'learn-rails'
5
7
 
6
8
  # >-------------------------------[ Gems ]--------------------------------<
@@ -80,7 +82,9 @@ if prefer :apps4, 'learn-rails'
80
82
  end # after_bundler
81
83
  end # learn-rails
82
84
 
83
- if prefer :apps4, 'rails-bootstrap'
85
+ ### RAILS-BOOTSTRAP or RAILS-FOUNDATION ####
86
+
87
+ if (prefer :apps4, 'rails-bootstrap') || (prefer :apps4, 'rails-foundation')
84
88
 
85
89
  # >-------------------------------[ Gems ]--------------------------------<
86
90
 
@@ -90,7 +94,8 @@ if prefer :apps4, 'rails-bootstrap'
90
94
 
91
95
  after_everything do
92
96
  say_wizard "recipe running after 'bundle install'"
93
- repo = 'https://raw.github.com/RailsApps/rails-bootstrap/master/'
97
+ repo = 'https://raw.github.com/RailsApps/rails-bootstrap/master/' if prefer :apps4, 'rails-bootstrap'
98
+ repo = 'https://raw.github.com/RailsApps/rails-foundation/master/' if prefer :apps4, 'rails-foundation'
94
99
 
95
100
  # >-------------------------------[ Clean up starter app ]--------------------------------<
96
101
 
@@ -136,8 +141,11 @@ if prefer :apps4, 'rails-bootstrap'
136
141
  # no assets
137
142
 
138
143
  ### GIT ###
139
- git :add => '-A' if prefer :git, true
140
- git :commit => '-qm "rails_apps_composer: rails-bootstrap app"' if prefer :git, true
144
+ if prefer :git, true
145
+ git :add => '-A'
146
+ git :commit => '-qm "rails_apps_composer: rails-bootstrap app"' if prefer :apps4, 'rails-bootstrap'
147
+ git :commit => '-qm "rails_apps_composer: rails-foundation app"' if prefer :apps4, 'rails-foundation'
148
+ end
141
149
  end # after_bundler
142
150
  end # rails-bootstrap
143
151
 
data/recipes/email.rb CHANGED
@@ -5,11 +5,23 @@ after_bundler do
5
5
  say_wizard "recipe running after 'bundle install'"
6
6
  unless prefer :email, 'none'
7
7
  if rails_4?
8
- send_email_text = <<-TEXT
8
+ dev_email_text = <<-TEXT
9
+ # ActionMailer Config
10
+ config.action_mailer.default_url_options = { :host => 'localhost:3000' }
11
+ config.action_mailer.delivery_method = :smtp
12
+ config.action_mailer.raise_delivery_errors = true
9
13
  # Send email in development mode.
10
14
  config.action_mailer.perform_deliveries = true
11
15
  TEXT
12
- inject_into_file 'config/environments/development.rb', send_email_text, :after => "config.assets.debug = true"
16
+ prod_email_text = <<-TEXT
17
+ # ActionMailer Config
18
+ config.action_mailer.default_url_options = { :host => 'example.com' }
19
+ config.action_mailer.delivery_method = :smtp
20
+ config.action_mailer.perform_deliveries = true
21
+ config.action_mailer.raise_delivery_errors = false
22
+ TEXT
23
+ inject_into_file 'config/environments/development.rb', dev_email_text, :after => "config.assets.debug = true"
24
+ inject_into_file 'config/environments/production.rb', prod_email_text, :after => "config.active_support.deprecation = :notify"
13
25
  else
14
26
  ### DEVELOPMENT
15
27
  gsub_file 'config/environments/development.rb', /# Don't care if the mailer can't send/, '# ActionMailer Config'
data/recipes/railsapps.rb CHANGED
@@ -29,7 +29,9 @@ when "4"
29
29
  when 'railsapps'
30
30
  prefs[:apps4] = multiple_choice "Starter apps for Rails 4.0. More to come.",
31
31
  [["learn-rails", "learn-rails"],
32
- ["rails-bootstrap", "rails-bootstrap"]]
32
+ ["rails-bootstrap", "rails-bootstrap"],
33
+ ["rails-foundation", "rails-foundation"],
34
+ ["rails-devise", "rails-devise"]]
33
35
  when 'contributed_app'
34
36
  prefs[:apps4] = multiple_choice "No contributed applications are available.",
35
37
  [["continue", "none"]]
@@ -90,6 +92,34 @@ case prefs[:apps4]
90
92
  prefs[:quiet_assets] = true
91
93
  prefs[:local_env_file] = true
92
94
  prefs[:better_errors] = true
95
+ when 'rails-foundation'
96
+ prefs[:git] = true
97
+ prefs[:database] = 'default'
98
+ prefs[:unit_test] = false
99
+ prefs[:integration] = false
100
+ prefs[:fixtures] = false
101
+ prefs[:frontend] = 'foundation5'
102
+ prefs[:email] = 'none'
103
+ prefs[:authentication] = false
104
+ prefs[:devise_modules] = false
105
+ prefs[:authorization] = false
106
+ prefs[:starter_app] = false
107
+ prefs[:form_builder] = 'simple_form'
108
+ prefs[:quiet_assets] = true
109
+ prefs[:local_env_file] = true
110
+ prefs[:better_errors] = true
111
+ when 'rails-devise'
112
+ prefs[:git] = true
113
+ prefs[:unit_test] = false
114
+ prefs[:integration] = false
115
+ prefs[:fixtures] = false
116
+ prefs[:authentication] = 'devise'
117
+ prefs[:authorization] = false
118
+ prefs[:starter_app] = 'users_app'
119
+ prefs[:form_builder] = 'simple_form'
120
+ prefs[:quiet_assets] = true
121
+ prefs[:local_env_file] = true
122
+ prefs[:better_errors] = true
93
123
  end
94
124
 
95
125
  case prefs[:railsapps]
data/recipes/setup.rb CHANGED
@@ -68,8 +68,11 @@ end
68
68
 
69
69
  ## Email
70
70
  if recipes.include? 'email'
71
- prefs[:email] = multiple_choice "Add support for sending email?", [["None", "none"], ["Gmail","gmail"], ["SMTP","smtp"],
72
- ["SendGrid","sendgrid"], ["Mandrill","mandrill"]] unless prefs.has_key? :email
71
+ unless prefs.has_key? :email
72
+ say_wizard "The Devise 'forgot password' feature requires email." if prefer :authentication, 'devise'
73
+ prefs[:email] = multiple_choice "Add support for sending email?", [["None", "none"], ["Gmail","gmail"], ["SMTP","smtp"],
74
+ ["SendGrid","sendgrid"], ["Mandrill","mandrill"]]
75
+ end
73
76
  else
74
77
  prefs[:email] = 'none'
75
78
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.4.18"
2
+ VERSION = "2.4.19"
3
3
  end
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.18
4
+ version: 2.4.19
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-12-28 00:00:00.000000000 Z
11
+ date: 2014-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n