rails_apps_composer 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/recipes/email.rb +1 -1
- data/recipes/tests.rb +7 -0
- data/templates/layout.erb +7 -10
- 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: f15f1c31c6b772721053b1940764680f4eaca7fc
|
4
|
+
data.tar.gz: ffd504c3e7d0932850c5bfeeff033add81156976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1f9854a278d96a0565cd378492ce4d4abc03f6a7632d9d0b25d08d583063b23deb1fe2d3fe15d8550530f7e64c5119e05f9a126b2fb037881b6b348b02f0fb
|
7
|
+
data.tar.gz: 1a0ba0cbf752e2c9a1617c260a3ae424b27e8cd7e90b87a8a39145893b124c3635037b7201f9a0cbd1f3dc5989cf7a0bdb8ba22243c986511cd39eb1cf1d6547
|
data/recipes/email.rb
CHANGED
@@ -38,7 +38,7 @@ TEXT
|
|
38
38
|
TEXT
|
39
39
|
inject_into_file 'config/environments/development.rb', email_configuration_text, :after => "config.assets.debug = true"
|
40
40
|
inject_into_file 'config/environments/production.rb', email_configuration_text, :after => "config.active_support.deprecation = :notify"
|
41
|
-
case :email
|
41
|
+
case prefs[:email]
|
42
42
|
when 'sendgrid'
|
43
43
|
gsub_file 'config/environments/development.rb', /smtp.gmail.com/, 'smtp.sendgrid.net'
|
44
44
|
gsub_file 'config/environments/production.rb', /smtp.gmail.com/, 'smtp.sendgrid.net'
|
data/recipes/tests.rb
CHANGED
@@ -19,6 +19,13 @@ stage_three do
|
|
19
19
|
say_wizard "recipe stage three"
|
20
20
|
if (prefer :authentication, 'devise') && (prefer :tests, 'rspec')
|
21
21
|
generate 'testing:configure devise -f'
|
22
|
+
if (prefer :devise_modules, 'confirmable') || (prefer :devise_modules, 'invitable')
|
23
|
+
inject_into_file 'spec/factories/users.rb', ' confirmed_at Time.now', :after => 'factory :user do'
|
24
|
+
default_url = ' config.action_mailer.default_url_options = { :host => Rails.application.secrets.domain_name }'
|
25
|
+
inject_into_file 'config/environments/test.rb', default_url, :after => "delivery_method = :test\n"
|
26
|
+
gsub_file 'spec/features/users/user_edit_spec.rb', /successfully./, 'successfully,'
|
27
|
+
gsub_file 'spec/features/visitors/sign_up_spec.rb', /Welcome! You have signed up successfully./, 'A message with a confirmation'
|
28
|
+
end
|
22
29
|
end
|
23
30
|
if (prefer :authentication, 'omniauth') && (prefer :tests, 'rspec')
|
24
31
|
generate 'testing:configure omniauth -f'
|
data/templates/layout.erb
CHANGED
@@ -126,23 +126,20 @@ else
|
|
126
126
|
diagnostics[:recipes] = 'fail'
|
127
127
|
end
|
128
128
|
|
129
|
-
# this application template only supports Rails version
|
129
|
+
# this application template only supports Rails version 4.1 and newer
|
130
130
|
case Rails::VERSION::MAJOR.to_s
|
131
131
|
when "3"
|
132
|
-
|
133
|
-
|
134
|
-
say_wizard "You are using Rails version #{Rails::VERSION::STRING} which is not supported. Try 3.1 or newer."
|
135
|
-
raise StandardError.new "Rails #{Rails::VERSION::STRING} is not supported. Try 3.1 or newer."
|
136
|
-
end
|
132
|
+
say_wizard "You are using Rails version #{Rails::VERSION::STRING} which is not supported. Use Rails 4.1 or newer."
|
133
|
+
raise StandardError.new "Rails #{Rails::VERSION::STRING} is not supported. Use Rails 4.1 or newer."
|
137
134
|
when "4"
|
138
|
-
say_wizard "You are using Rails version #{Rails::VERSION::STRING}."
|
139
135
|
case Rails::VERSION::MINOR.to_s
|
140
136
|
when "0"
|
141
|
-
say_wizard "
|
137
|
+
say_wizard "You are using Rails version #{Rails::VERSION::STRING} which is not supported. Use Rails 4.1 or newer."
|
138
|
+
raise StandardError.new "Rails #{Rails::VERSION::STRING} is not supported. Use Rails 4.1 or newer."
|
142
139
|
end
|
143
140
|
else
|
144
|
-
say_wizard "You are using Rails version #{Rails::VERSION::STRING} which is not supported."
|
145
|
-
raise StandardError.new "Rails #{Rails::VERSION::STRING} is not supported."
|
141
|
+
say_wizard "You are using Rails version #{Rails::VERSION::STRING} which is not supported. Use Rails 4.1 or newer."
|
142
|
+
raise StandardError.new "Rails #{Rails::VERSION::STRING} is not supported. Use Rails 4.1 or newer."
|
146
143
|
end
|
147
144
|
|
148
145
|
# >---------------------------[ Autoload Modules/Classes ]-----------------------------<
|
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: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|