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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTdjZWJkNGQ2NTg1ZDJjNzc0YzAzNTI4OTFhYjExOWM1YzUwZWU1NA==
4
+ ODliMmJmODQ0YzY0MWY3YjM4N2E1N2EyZGQzNzUwYjdjZjY3MzI2Nw==
5
5
  data.tar.gz: !binary |-
6
- NzBlNDY3ZTcwNGQ1NWY2MjAxN2U0MWJhYTQ5Y2I4MDFjYjRiMjk4OA==
6
+ MTQ2YTk3OTEwM2QzYzE0ZmIwOGIzZjA3NDE3ODNiNDJhYzM0ZWIzMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTM3ZWEyYjcyNjRjZTUyOGVjZmQ5MDZiNjZhNjQxYjAwZTFhYzNlNDlkMDgy
10
- MDU3MTkxYzZhZmEzMjJkZTU4YjNkMmM5ZGQ0ZjlkOTE1YjEyM2ZmZTYxM2Zj
11
- Y2JjMzg3OWQ0OGVmYWYxNjYxYTFlNzE4MTFiYWUwZDhjODQ5NWM=
9
+ NDhhNGM2ZDI1Mjg2N2RjYWM1NjdhZWY3Njc1ZGIzZjUxN2FjMTJjM2Y3NmZk
10
+ NDU4NTliYTgzYjI5MzJjYzkzMzAwNjg3MjFhOWRjNDVlZjZlNWViMmJhZDEx
11
+ MjlkMDU3NjUyZjQwNTQ1YWUxYWIzYzE1ZDMxMmZkNjUxZjVjOTk=
12
12
  data.tar.gz: !binary |-
13
- NmZlNzVlZjg1YTYwOGM2Zjg0NzhkNmVhNjQwYzJiMTVmMTZlZTNmOTljYTQ0
14
- YzViZDA5ZWNiYmIzMzIzZGI2NTNiYjAzZTE1MDEwODkzOWJkYjAyMDRkM2Zm
15
- YjU3OTI2NGUyNWVjNTc3NjA4NDI5MDQ3YTQwZjU3NTVkYWYwYTI=
13
+ ZjhmMzZmNGIwYzIzMTlmNDI2NGM1ODAzZWRiOTg1Y2JkOWUzY2MzYTViODFj
14
+ MzJkNDA3NTBhNzBlYzUzNzcyMjg0MGYyZDZmNGM1YTk1NTJiZTg3Zjk3ZjFi
15
+ M2M4MTYyYmI1NzM0ZWE1ZTJlYzI1YmU2OGY0MmVkNjk2ZjMzNTY=
@@ -0,0 +1,2 @@
1
+ require 'metova'
2
+ require 'metova/smtp/railtie'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Metova
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
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.12
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: 2015-10-22 00:00:00.000000000 Z
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