metova 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/metova/smtp.rb +2 -0
- data/lib/metova/smtp/railtie.rb +26 -0
- data/lib/metova/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODliMmJmODQ0YzY0MWY3YjM4N2E1N2EyZGQzNzUwYjdjZjY3MzI2Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTQ2YTk3OTEwM2QzYzE0ZmIwOGIzZjA3NDE3ODNiNDJhYzM0ZWIzMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDhhNGM2ZDI1Mjg2N2RjYWM1NjdhZWY3Njc1ZGIzZjUxN2FjMTJjM2Y3NmZk
|
10
|
+
NDU4NTliYTgzYjI5MzJjYzkzMzAwNjg3MjFhOWRjNDVlZjZlNWViMmJhZDEx
|
11
|
+
MjlkMDU3NjUyZjQwNTQ1YWUxYWIzYzE1ZDMxMmZkNjUxZjVjOTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjhmMzZmNGIwYzIzMTlmNDI2NGM1ODAzZWRiOTg1Y2JkOWUzY2MzYTViODFj
|
14
|
+
MzJkNDA3NTBhNzBlYzUzNzcyMjg0MGYyZDZmNGM1YTk1NTJiZTg3Zjk3ZjFi
|
15
|
+
M2M4MTYyYmI1NzM0ZWE1ZTJlYzI1YmU2OGY0MmVkNjk2ZjMzNTY=
|
data/lib/metova/smtp.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
module Metova
|
2
|
+
module SMTP
|
3
|
+
class Railtie < ::Rails::Railtie
|
4
|
+
|
5
|
+
initializer "metova.smtp" do |app|
|
6
|
+
if ENV['METOVA_SMTP_USERNAME'] && ENV['METOVA_SMTP_PASSWORD'] && ENV['METOVA_SMTP_ADDRESS'] && ENV['METOVA_SMTP_PORT']
|
7
|
+
app.config.action_mailer.delivery_method = :smtp
|
8
|
+
app.config.action_mailer.default_url_options = { host: ENV['METOVA_SMTP_DEFAULT_HOST'] }
|
9
|
+
app.routes.default_url_options = app.config.action_mailer.default_url_options
|
10
|
+
|
11
|
+
app.config.action_mailer.smtp_settings = {
|
12
|
+
address: ENV['METOVA_SMTP_ADDRESS'],
|
13
|
+
port: ENV['METOVA_SMTP_PORT'],
|
14
|
+
enable_starttls_auto: true,
|
15
|
+
authentication: 'login',
|
16
|
+
user_name: ENV['METOVA_SMTP_USERNAME'],
|
17
|
+
password: ENV['METOVA_SMTP_PASSWORD'],
|
18
|
+
}
|
19
|
+
|
20
|
+
app.config.action_mailer.smtp_settings.merge! domain: ENV['METOVA_SMTP_DOMAIN'] if ENV['METOVA_SMTP_DOMAIN']
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/metova/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metova
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Logan Serman
|
8
|
+
- Riley Mills
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rails
|
@@ -267,6 +268,8 @@ files:
|
|
267
268
|
- lib/metova/responders/search_responder.rb
|
268
269
|
- lib/metova/responders/sort_responder.rb
|
269
270
|
- lib/metova/search.rb
|
271
|
+
- lib/metova/smtp.rb
|
272
|
+
- lib/metova/smtp/railtie.rb
|
270
273
|
- lib/metova/version.rb
|
271
274
|
- lib/metova/versioning/constraints.rb
|
272
275
|
- lib/metova/versioning/railtie.rb
|