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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cad1ebce5868fa091df1a7d8d3a4cc0fe86369d
4
- data.tar.gz: 4f0c02ce824e09de7d57c089999fc6e7180f876b
3
+ metadata.gz: f15f1c31c6b772721053b1940764680f4eaca7fc
4
+ data.tar.gz: ffd504c3e7d0932850c5bfeeff033add81156976
5
5
  SHA512:
6
- metadata.gz: 35ebd3a40e619d0e56118f1ae4ea8da8c6e04bb22b4aad55759f75fd2b43d9cc266ea95a0f65f1ddb0550d8c198cec41159640fd8095c41bfe9c2d193f65b66d
7
- data.tar.gz: 05d1ba5d1c4d07081d71b6302f03aac30c0a00b8768a2643a1170905357a8c5211e113f52aa94ad88f722e8c56492c6f9cd8229abe888f91abd28db8e4a0f70e
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 3.1 and newer
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
- case Rails::VERSION::MINOR.to_s
133
- when "0"
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 "Please upgrade to Rails 4.1 or newer."
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
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "3.0.3"
2
+ VERSION = "3.0.4"
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: 3.0.3
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-27 00:00:00.000000000 Z
11
+ date: 2014-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n