rails_apps_composer 1.4.12 → 1.4.13
Sign up to get free protection for your applications and to get access to all the features.
- data/recipes/action_mailer.rb +20 -1
- data/version.rb +1 -1
- metadata +4 -4
data/recipes/action_mailer.rb
CHANGED
@@ -9,6 +9,9 @@ case config['mailer']
|
|
9
9
|
when 'sendgrid'
|
10
10
|
gem 'sendgrid'
|
11
11
|
recipes << 'sendgrid'
|
12
|
+
when 'mandrill'
|
13
|
+
gem 'hominid'
|
14
|
+
recipes << 'mandrill'
|
12
15
|
end
|
13
16
|
|
14
17
|
after_bundler do
|
@@ -86,6 +89,22 @@ TEXT
|
|
86
89
|
inject_into_file 'config/environments/production.rb', sendgrid_configuration_text, :after => 'config.action_mailer.default :charset => "utf-8"'
|
87
90
|
end
|
88
91
|
|
92
|
+
### modifying environment configuration files to send email using a Mandrill account
|
93
|
+
if recipes.include? 'mandrill'
|
94
|
+
mandrill_configuration_text = <<-TEXT
|
95
|
+
\n
|
96
|
+
config.action_mailer.smtp_settings = {
|
97
|
+
:address => "smtp.mandrillapp.com",
|
98
|
+
:port => 25,
|
99
|
+
:user_name => ENV["MANDRILL_USERNAME"],
|
100
|
+
:password => ENV["MANDRILL_PASSWORD"]
|
101
|
+
}
|
102
|
+
TEXT
|
103
|
+
say_wizard gmail_configuration_text
|
104
|
+
inject_into_file 'config/environments/development.rb', mandrill_configuration_text, :after => 'config.action_mailer.default :charset => "utf-8"'
|
105
|
+
inject_into_file 'config/environments/production.rb', mandrill_configuration_text, :after => 'config.action_mailer.default :charset => "utf-8"'
|
106
|
+
end
|
107
|
+
|
89
108
|
end
|
90
109
|
|
91
110
|
__END__
|
@@ -101,4 +120,4 @@ config:
|
|
101
120
|
- mailer:
|
102
121
|
type: multiple_choice
|
103
122
|
prompt: "How will you send email?"
|
104
|
-
choices: [["SMTP account", smtp], ["Gmail account", gmail], ["SendGrid account", sendgrid]]
|
123
|
+
choices: [["SMTP account", smtp], ["Gmail account", gmail], ["SendGrid account", sendgrid], ["Mandrill by MailChimp account", mandrill]]
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -225,7 +225,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
segments:
|
227
227
|
- 0
|
228
|
-
hash: -
|
228
|
+
hash: -1646581067513771331
|
229
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
230
|
none: false
|
231
231
|
requirements:
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
version: '0'
|
235
235
|
segments:
|
236
236
|
- 0
|
237
|
-
hash: -
|
237
|
+
hash: -1646581067513771331
|
238
238
|
requirements: []
|
239
239
|
rubyforge_project: rails_apps_composer
|
240
240
|
rubygems_version: 1.8.23
|