metova-mandrill 0.0.2 → 0.0.3

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: 609a3d70eec8200a45cdb968ce8e9edfc1197af4
4
- data.tar.gz: 74ef00c8223e0e25408665bf51acf78372c3dead
3
+ metadata.gz: 2b1918973c3020539e159502a048335ffcb7a80c
4
+ data.tar.gz: b90b667565328822a324b88fe8d0b903f669f2bb
5
5
  SHA512:
6
- metadata.gz: 6c40a09c311d4889a4680f66484572694f171a2c6828ecea41149834ad79c61cc9eb9edfb64396fdc7fea79fcf03abbed5570ed7a3669e76bfc973eab8b54ccf
7
- data.tar.gz: 1894178d1b618ae8c368c42d0797167dbcc47986df715c3799778ba6bb17048b7982c29353f7e0b9e0c435c5cf3a97fa713873bc6d6e509aa6b06e75ce3a1341
6
+ metadata.gz: ec362ed0dd9e946120059488a149d097bb28c16c307d1d0c37f77878e4e86841b0eabbfc8169fe3da403f119f709a22208e4140a77e7894bde3bc672437fd5ab
7
+ data.tar.gz: 4cb8f8637601e0a4acf21ddebb84a1550dfc3a7c95fd7debdae3d738810badacc3ffd1820dace27b040621b05d2da4a9a977a683f078538c4bf292aa239bd426
@@ -5,24 +5,25 @@ module Metova
5
5
  class Railtie < ::Rails::Railtie
6
6
 
7
7
  initializer "metova.mandrill" do |app|
8
- break unless ENV['MANDRILL_DOMAIN']
9
-
10
- app.config.action_mailer.default_url_options = { host: (ENV['MANDRILL_DEFAULT_HOST'] || ENV['MANDRILL_DOMAIN']) }
11
- app.config.action_mailer.delivery_method = :smtp
12
- app.config.action_mailer.smtp_settings = {
13
- address: 'smtp.mandrillapp.com',
14
- port: 587,
15
- enable_starttls_auto: true,
16
- authentication: 'login',
17
- user_name: ENV['MANDRILL_USERNAME'],
18
- password: ENV['MANDRILL_PASSWORD'],
19
- domain: ENV['MANDRILL_DOMAIN']
20
- }
21
-
22
- app.routes.default_url_options = app.config.action_mailer.default_url_options
8
+ if ENV['MANDRILL_DOMAIN']
23
9
 
10
+ app.config.action_mailer.default_url_options = { host: (ENV['MANDRILL_DEFAULT_HOST'] || ENV['MANDRILL_DOMAIN']) }
11
+ app.config.action_mailer.delivery_method = :smtp
12
+ app.config.action_mailer.smtp_settings = {
13
+ address: 'smtp.mandrillapp.com',
14
+ port: 587,
15
+ enable_starttls_auto: true,
16
+ authentication: 'login',
17
+ user_name: ENV['MANDRILL_USERNAME'],
18
+ password: ENV['MANDRILL_PASSWORD'],
19
+ domain: ENV['MANDRILL_DOMAIN']
20
+ }
21
+
22
+ app.routes.default_url_options = app.config.action_mailer.default_url_options
23
+
24
+ end
24
25
  end
25
26
 
26
27
  end
27
28
  end
28
- end
29
+ end
@@ -1,5 +1,5 @@
1
1
  module Metova
2
2
  module Mandrill
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
@@ -17,6 +17,8 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ['lib']
19
19
 
20
+ spec.add_dependency 'rails', '> 3.2.0'
21
+
20
22
  spec.add_development_dependency 'bundler', '~> 1.6'
21
23
  spec.add_development_dependency 'rake'
22
24
  end
metadata CHANGED
@@ -1,41 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metova-mandrill
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Logan Serman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-11 00:00:00.000000000 Z
11
+ date: 2014-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ~>
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
33
  version: '1.6'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ~>
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
40
  version: '1.6'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - '>='
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - '>='
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  description:
@@ -45,7 +59,7 @@ executables: []
45
59
  extensions: []
46
60
  extra_rdoc_files: []
47
61
  files:
48
- - .gitignore
62
+ - ".gitignore"
49
63
  - Gemfile
50
64
  - LICENSE.txt
51
65
  - README.md
@@ -64,12 +78,12 @@ require_paths:
64
78
  - lib
65
79
  required_ruby_version: !ruby/object:Gem::Requirement
66
80
  requirements:
67
- - - '>='
81
+ - - ">="
68
82
  - !ruby/object:Gem::Version
69
83
  version: '0'
70
84
  required_rubygems_version: !ruby/object:Gem::Requirement
71
85
  requirements:
72
- - - '>='
86
+ - - ">="
73
87
  - !ruby/object:Gem::Version
74
88
  version: '0'
75
89
  requirements: []