mmailer 0.1.0 → 0.1.1

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: dd54c25c40ed4293cdff3ec1de42ce503d61a258
4
- data.tar.gz: 70b24990ecc0c2cc8dae1e5d0fcf76f5fdcba1c6
3
+ metadata.gz: 06fc9172f6f7cc0c93184548b9b2b9f3fa7b4de2
4
+ data.tar.gz: 67ef23b4c7b48a1de7b18744e1ecdd6a23a517e9
5
5
  SHA512:
6
- metadata.gz: 99d5301b396aba445eae37ba696e46ddb30900c73e4567a70fd82f879fa1aacc89ff8f7a2e1a0606088cf1ae269948d2c32e957a880d78f84d7680acaf34d304
7
- data.tar.gz: 72677ae7d8246143e0a5bbc8296edd6a659b570ff3f3b3adf1259088c7a268c795e7b773158cb77cf139c412c6d62555354cda54a71b53d670f71b12d9929fbe
6
+ metadata.gz: 03c3843333f81d88ea468a69d9b84755851e5d2297da36b7a0daf1e8ea7f684c210be6c0504bd2da786677bcb5e0afb037166d6ae6b978e1bf7e6aceec93a4b3
7
+ data.tar.gz: 2099cd56256a6b492989595139b4d18ca81de2452528cdb06e75d8d75bb0475fad0f0c301d975825e599b4adb7d84d8ba2c148c19dd02e6cf376ad1df2176b37
@@ -11,7 +11,7 @@ module Mmailer
11
11
  end
12
12
 
13
13
  def set_provider(provider)
14
- providers = {gmail: Providers.gmail, mandrill: Providers.mandrill, zoho: Providers.zoho}
14
+ providers = {gmail: Providers.gmail, mandrill: Providers.mandrill, zoho: Providers.zoho, mailgun: Providers.mailgun }
15
15
  Mail.defaults(&providers[provider])
16
16
  end
17
17
 
@@ -2,7 +2,7 @@ module Mmailer
2
2
  module Providers
3
3
 
4
4
  class << self
5
- attr_accessor :mandrill, :gmail, :zoho
5
+ attr_accessor :mandrill, :gmail, :zoho, :mailgun
6
6
  end
7
7
 
8
8
  @mandrill = Proc.new do
@@ -16,6 +16,17 @@ module Mmailer
16
16
  }
17
17
  end
18
18
 
19
+ @mailgun = Proc.new do
20
+ delivery_method :smtp, {
21
+ :port => 587,
22
+ :address => 'smtp.mailgun.org',
23
+ :user_name => ENV['MAILGUN_USERNAME'],
24
+ :password => ENV['MAILGUN_PASSWORD'],
25
+ :domain => ENV['MAILGUN_DOMAIN'],
26
+ :authentication => :plain
27
+ }
28
+ end
29
+
19
30
  @gmail = Proc.new do
20
31
  delivery_method :smtp, {
21
32
  :port => 587,
@@ -41,4 +52,4 @@ module Mmailer
41
52
  end
42
53
 
43
54
  end
44
- end
55
+ end
@@ -1,3 +1,3 @@
1
1
  module Mmailer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Szmulewicz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-09 00:00:00.000000000 Z
11
+ date: 2016-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.3'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: thor
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mail
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: micromachine
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: kramdown
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  description: Bulk mailer with remote control (drb server)
@@ -116,7 +116,7 @@ executables:
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
- - .gitignore
119
+ - ".gitignore"
120
120
  - CHANGELOG.md
121
121
  - Gemfile
122
122
  - LICENSE.txt
@@ -146,17 +146,17 @@ require_paths:
146
146
  - lib
147
147
  required_ruby_version: !ruby/object:Gem::Requirement
148
148
  requirements:
149
- - - '>='
149
+ - - ">="
150
150
  - !ruby/object:Gem::Version
151
151
  version: '0'
152
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  requirements:
154
- - - '>='
154
+ - - ">="
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.0.14
159
+ rubygems_version: 2.4.5
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Bulk mailing the Ruby way