mailhandler 1.0.59 → 1.0.60

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
  SHA256:
3
- metadata.gz: 922df060ca41561a56d889b8a68c1f772d49ac30667c8c98a1df11caddb96cfa
4
- data.tar.gz: 8e2b840dbe67e91dd5db768ea6dfe77365d4ecacee1957818ad186f8d936588d
3
+ metadata.gz: 8030c60b3dadc77214d7a1bfc8c5bc475a3665586b22d01b1a0973c8386de30f
4
+ data.tar.gz: 5c782690c6dc90db551254b3e3e8ab007717b15961143b0d9a6251a0f34a2731
5
5
  SHA512:
6
- metadata.gz: 263a717a84589e47f673f92209002b8bf3c9f5affc8ac103d36e44e77bfa2000626e9c73b2d4669b0c21a3f568cdc20f186a05f380a97526e4db19f5927dd0a7
7
- data.tar.gz: a86f93fecdfd7985ddb393dc42a132ad14b0ed8fe738d0eb9ec3c5abdd0e6e89e224a87b3beec57acc7616c9656a46c895dce10d0807c951646c5064540e134b
6
+ metadata.gz: f61717a2295a6cfe5f6d961fa9dbffae6f0e6e77a2fe93f667a4838cd55cebb3dba6835182d6d9f41b1f7032afcb146e25db05f97503486e0dfe06f3184dc416
7
+ data.tar.gz: 1fb736635cf0608cd3d438598ef1c5f0aa1d1c6f60a7b1bcde6b61a840b30512e72ccb3f7686ad0d685317e663ee7a5bd558a9e63c9db2419f67d48a4af1743d
@@ -0,0 +1,43 @@
1
+ version: 2.1
2
+
3
+ workflows:
4
+ ruby-tests:
5
+ jobs:
6
+ - unit-tests:
7
+ name: ruby24
8
+ version: "2.4.6"
9
+ - unit-tests:
10
+ name: ruby25
11
+ version: "2.5.5"
12
+ requires:
13
+ - ruby24
14
+ - unit-tests:
15
+ name: ruby27
16
+ version: "2.7.5"
17
+ requires:
18
+ - ruby25
19
+ - unit-tests:
20
+ name: ruby30
21
+ version: "3.0.0"
22
+ requires:
23
+ - ruby27
24
+
25
+ jobs:
26
+ unit-tests:
27
+ parameters:
28
+ version:
29
+ type: string
30
+ docker:
31
+ - image: cimg/ruby:<< parameters.version >>
32
+ steps:
33
+ - checkout
34
+ - run:
35
+ name: Versions
36
+ command: |
37
+ echo "ruby: $(ruby --version)"
38
+ - run:
39
+ name: Install dependencies
40
+ command: bundle install
41
+ - run:
42
+ name: Run tests
43
+ command: bundle exec rspec
data/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  MailHandler
2
2
 
3
- https://github.com/wildbit/mailhandler
4
- Copyright (c) 2016 Balos Igor
3
+ https://github.com/ActiveCampaign/mailhandler
4
+ Copyright (c) 2022 Balos Igor
5
5
 
6
6
  The MIT License
7
7
 
@@ -17,7 +17,7 @@ module MailHandler
17
17
  @type = :postmark_api
18
18
  @host = DEFAULTS[:host]
19
19
  @api_token = api_token
20
- @use_ssl = false
20
+ @use_ssl = true
21
21
 
22
22
  @http_open_timeout = DEFAULTS[:open_timeout]
23
23
  @http_read_timeout = DEFAULTS[:read_timeout]
@@ -23,7 +23,7 @@ module MailHandler
23
23
  def initialize
24
24
  @type = :smtp
25
25
  @authentication = 'plain'
26
- @use_ssl = false
26
+ @use_ssl = true
27
27
  @save_response = true
28
28
 
29
29
  @open_timeout = 60
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailHandler
4
- VERSION = '1.0.59'
4
+ VERSION = '1.0.60'
5
5
  end
data/mailhandler.gemspec CHANGED
@@ -11,14 +11,14 @@ Gem::Specification.new do |s|
11
11
  s.license = 'MIT'
12
12
 
13
13
  s.authors = ['Igor Balos']
14
- s.email = ['ibalosh@gmail.com', 'igor@wildbit.com']
14
+ s.email = ['ibalosh@gmail.com', 'ibalos@activecampaign.com']
15
15
 
16
16
  s.summary = 'Postmark email receiving and sending handler.'
17
17
  s.description = 'Use this gem to send emails through SMTP and Postmark API and check if email arrived.'
18
18
 
19
19
  s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
20
20
  s.test_files = `git ls-files -- {spec}/*`.split("\n")
21
- s.homepage = 'https://github.com/wildbit/mailhandler'
21
+ s.homepage = 'https://github.com/ActiveCampaign/mailhandler'
22
22
  s.require_paths = ['lib']
23
23
 
24
24
  s.post_install_message = '
data/postmark.png ADDED
Binary file
data/readme.md CHANGED
@@ -1,10 +1,12 @@
1
- <img src="http://assets.wildbit.com/postmark/misc/mailhandler-logo@2x.png" alt="MailHandler Logo" title="MailHandler" width="148" height="148" align="right">
1
+ <a href="https://postmarkapp.com">
2
+ <img src="postmark.png" alt="Postmark Logo" title="Postmark" width="120" height="120" align="right">
3
+ </a>
2
4
 
3
5
  # MailHandler Gem
4
6
 
5
- [![Build Status](https://travis-ci.org/wildbit/mailhandler.svg?branch=master)](https://travis-ci.org/wildbit/mailhandler)
7
+ [![Build Status](https://circleci.com/gh/ActiveCampaign/mailhandler.svg?style=shield)](https://circleci.com/gh/ActiveCampaign/mailhandler)
6
8
 
7
- MailHandler is a simple wrapper on top of [Mail gem](https://github.com/mikel/mail) and [Postmark gem](https://github.com/wildbit/postmark-gem) libraries. It allows you to send and retrieve emails and at the same time get details on how long these operations took.
9
+ MailHandler is a simple wrapper on top of [Mail gem](https://github.com/mikel/mail) and [Postmark gem](https://github.com/ActiveCampaign/postmark-gem) libraries. It allows you to send and retrieve emails and at the same time get details on how long these operations took.
8
10
  Main purpose of the gem is easier email sending/delivery testing with notification option if sending or retrieving email is taking too long.
9
11
 
10
12
  The library supports sending email by standard SMTP protocol and by Postmark API. More importantly it also allows checking email delivery by IMAP protocol, or by folder if you have a local mailbox.
@@ -195,7 +197,7 @@ Once email sending is finished, you can check sending result by looking at: `ema
195
197
 
196
198
  ### License
197
199
 
198
- MailHandler Library is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php "Read more about the MIT license form") license. Refere to the [LICENSE](https://github.com/wildbit/mailhandler/blob/master/LICENSE) file for more information.
200
+ MailHandler Library is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php "Read more about the MIT license form") license. Refere to the [LICENSE](https://github.com/ActiveCampaign/mailhandler/blob/master/LICENSE) file for more information.
199
201
 
200
202
 
201
203
 
@@ -13,7 +13,7 @@ describe MailHandler::Sending::PostmarkBatchAPISender do
13
13
  aggregate_failures 'init details' do
14
14
  expect(sender.api_token).to eq api_token
15
15
  expect(sender.type).to eq :postmark_api
16
- expect(sender.use_ssl).to be false
16
+ expect(sender.use_ssl).to be true
17
17
  expect(sender.host).to eq 'api.postmarkapp.com'
18
18
  end
19
19
  end
@@ -13,7 +13,7 @@ describe MailHandler::Sending::PostmarkAPISender do
13
13
  aggregate_failures 'init details' do
14
14
  expect(sender.api_token).to eq api_token
15
15
  expect(sender.type).to eq :postmark_api
16
- expect(sender.use_ssl).to be false
16
+ expect(sender.use_ssl).to be true
17
17
  expect(sender.host).to eq 'api.postmarkapp.com'
18
18
  end
19
19
  end
@@ -32,7 +32,7 @@ describe MailHandler::Sending::SMTPSender do
32
32
  end
33
33
 
34
34
  it 'use ssl' do
35
- expect(smtp_sender.new.use_ssl).to be false
35
+ expect(smtp_sender.new.use_ssl).to be true
36
36
  end
37
37
 
38
38
  it 'authentication' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailhandler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.59
4
+ version: 1.0.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Balos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-19 00:00:00.000000000 Z
11
+ date: 2022-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail
@@ -42,14 +42,14 @@ description: Use this gem to send emails through SMTP and Postmark API and check
42
42
  email arrived.
43
43
  email:
44
44
  - ibalosh@gmail.com
45
- - igor@wildbit.com
45
+ - ibalos@activecampaign.com
46
46
  executables: []
47
47
  extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
+ - ".circleci/config.yml"
50
51
  - ".gitignore"
51
52
  - ".rubocop.yml"
52
- - ".travis.yml"
53
53
  - Gemfile
54
54
  - LICENSE
55
55
  - Rakefile
@@ -76,6 +76,7 @@ files:
76
76
  - lib/mailhandler/sending/smtp.rb
77
77
  - lib/mailhandler/version.rb
78
78
  - mailhandler.gemspec
79
+ - postmark.png
79
80
  - readme.md
80
81
  - spec/data/email-uni1.txt
81
82
  - spec/data/email-uni2.txt
@@ -94,7 +95,7 @@ files:
94
95
  - spec/unit/mailhandler/sending/sender_api_spec.rb
95
96
  - spec/unit/mailhandler/sending/sender_smtp_spec.rb
96
97
  - spec/unit/mailhandler_spec.rb
97
- homepage: https://github.com/wildbit/mailhandler
98
+ homepage: https://github.com/ActiveCampaign/mailhandler
98
99
  licenses:
99
100
  - MIT
100
101
  metadata: {}
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.0.0
4
- - 2.1.6
5
- - 2.2.2
6
-
7
- script: bundle exec rake