postmark 1.22.0 → 1.22.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
  SHA256:
3
- metadata.gz: b214577bda32a36ea3de8910d8ef1bf7929e090e513a30d32ae891219134234b
4
- data.tar.gz: 7379520e17f6e9afda7e7157e4e118ccd1b171298e211555e112e5963433880c
3
+ metadata.gz: dd4bf518075f6e5a7eafaa982c34b95cb3cd5eebee2cf059ad5743b182a6a533
4
+ data.tar.gz: f34c3ddc69336854ca6a964b66eb4c393a4e630756b4e2a8dc637121e5c43a3e
5
5
  SHA512:
6
- metadata.gz: 9bf13b2db7d0818a8f69286b4ece4ad1675b8e546a9677f23f9827915c80795b5118a16a9a32860dfab3b35b5b694791ef3e48bc8d2eca13dd05228fe634f3a2
7
- data.tar.gz: a4ce846c304fea9a62ffd3bcc4802675a435009b6536741ad3b32c9dd98780925f57d0e32fa1c40c1d45c0b8ca5096d626140c4fd78268a072231a7fc4dc4fdc
6
+ metadata.gz: 6020d8ad751fd18f3e706d42c3c16938f04e517de4653121e1efb83ce9e1db9d33578cef954edd615c3f56c0151e9c4ee154a7cb7e8f2e738cb57cd6ffa227dc
7
+ data.tar.gz: c0ccc572d15ab61da1647c7c4abcbd4a0d180d0aa21cda7a580a798880f03f1ede1759a40db2bb269b15d9cf3dc39bbe2a641d6c12211cec2901db9e2034a925
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,8 @@
1
1
  = Changelog
2
2
 
3
+ == 1.22.1
4
+ * Migrated to ActiveCampaign
5
+
3
6
  == 1.22.0
4
7
 
5
8
  * Disabled automatic retries of failed requests by default. You can enabled it by passing `max_retries` option to the client constructor.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018 Wildbit LLC.
1
+ Copyright (c) 2022 ActiveCampaign LLC.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -3,31 +3,32 @@
3
3
  </a>
4
4
 
5
5
  # Postmark Ruby Gem
6
- [![Build Status](https://circleci.com/gh/wildbit/postmark-gem.svg?style=shield)](https://circleci.com/gh/wildbit/postmark-gem)
7
- [![Code Climate](https://codeclimate.com/github/wildbit/postmark-gem/badges/gpa.svg)](https://codeclimate.com/github/wildbit/postmark-gem)
6
+
7
+ [![Build Status](https://circleci.com/gh/ActiveCampaign/postmark-gem.svg?style=shield)](https://circleci.com/gh/ActiveCampaign/postmark-gem)
8
+ [![Code Climate](https://codeclimate.com/github/ActiveCampaign/postmark-gem/badges/gpa.svg)](https://codeclimate.com/github/ActiveCampaign/postmark-gem)
8
9
  [![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://www.opensource.org/licenses/MIT)
9
10
  [![Gem Version](https://badge.fury.io/rb/postmark.svg)](https://badge.fury.io/rb/postmark)
10
11
 
11
12
  Postmark allows you to send your emails with high delivery rates. It also includes detailed statistics. In addition, Postmark can parse incoming emails which are forwarded back to your application.
12
13
 
13
- This gem is the official wrapper for the [Postmark HTTP API](http://postmarkapp.com).
14
+ This gem is the official wrapper for the [Postmark HTTP API](http://postmarkapp.com).
14
15
 
15
16
  ## Usage
16
17
 
17
- Please see the [wiki](https://github.com/wildbit/postmark-gem/wiki) for detailed instructions about sending email, using the bounce api and other Postmark API features.
18
+ Please see the [wiki](https://github.com/ActiveCampaign/postmark-gem/wiki) for detailed instructions about sending email, using the bounce api and other Postmark API features.
18
19
  For details about Postmark API in general, please check out [Postmark developer docs](https://postmarkapp.com/developer).
19
20
 
20
21
  ## Requirements
21
22
 
22
- You will need a Postmark account, server and sender signature (or verified domain) set up to use it. For details about setup, check out [wiki pages](https://github.com/wildbit/postmark-gem/wiki/Getting-Started).
23
+ You will need a Postmark account, server and sender signature (or verified domain) set up to use it. For details about setup, check out [wiki pages](https://github.com/ActiveCampaign/postmark-gem/wiki/Getting-Started).
23
24
 
24
- If you plan using the library in a Rails project, check out the [postmark-rails](https://github.com/wildbit/postmark-rails/) gem, which
25
+ If you plan using the library in a Rails project, check out the [postmark-rails](https://github.com/ActiveCampaign/postmark-rails/) gem, which
25
26
  is meant to integrate with ActionMailer. The plugin will try to use ActiveSupport JSon if it is already included. If not,
26
27
  it will attempt to use the built-in Ruby JSon library.
27
28
 
28
29
  You can also explicitly specify which one to be used, using following code:
29
30
 
30
- ``` ruby
31
+ ```ruby
31
32
  Postmark.response_parser_class = :Json # :ActiveSupport or :Yajl are also supported.
32
33
  ```
33
34
 
@@ -37,13 +38,13 @@ You can use the library with or without a Bundler.
37
38
 
38
39
  With Bundler:
39
40
 
40
- ``` ruby
41
+ ```ruby
41
42
  gem 'postmark'
42
43
  ```
43
44
 
44
45
  Without Bundler:
45
46
 
46
- ``` bash
47
+ ```bash
47
48
  gem install postmark
48
49
  ```
49
50
 
@@ -53,14 +54,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) file for details.
53
54
 
54
55
  ## Issues & Comments
55
56
 
56
- Feel free to contact us if you encounter any issues with the library or Postmark API.
57
- Please leave all comments, bugs, requests and issues on the Issues page.
57
+ Feel free to contact us if you encounter any issues with the library or Postmark API.
58
+ Please leave all comments, bugs, requests and issues on the Issues page.
58
59
 
59
60
  ## License
60
61
 
61
- The Postmark Ruby library is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) license.
62
- Refer to the [LICENSE](https://github.com/wildbit/postmark-gem/blob/master/LICENSE) file for more information.
62
+ The Postmark Ruby library is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) license.
63
+ Refer to the [LICENSE](https://github.com/ActiveCampaign/postmark-gem/blob/main/LICENSE) file for more information.
63
64
 
64
65
  ## Copyright
65
66
 
66
- Copyright © 2021 Wildbit LLC.
67
+ Copyright © 2022 ActiveCampaign LLC.
data/RELEASE.md CHANGED
@@ -2,12 +2,12 @@ New versions of the gem are cut by the Postmark team, this is a quick guide to e
2
2
 
3
3
  1. Determine the next version of the gem by following the [SemVer](https://semver.org/) guidelines.
4
4
  1. Verify all builds are passing on CircleCI for your branch.
5
- 1. Merge in your branch to master.
5
+ 1. Merge in your branch to main.
6
6
  1. Update VERSION and lib/postmark/version.rb with the new version.
7
7
  1. Update CHANGELOG.rdoc with a brief description of the changes.
8
8
  1. Commit to git with a comment of "Bump version to x.y.z".
9
9
  1. run `rake release` - This will push to github(with the version tag) and rubygems with the version in lib/postmark/version.rb.
10
10
  *Note that if you're on Bundler 1.17 there's a bug that hides the prompt for your OTP. If it hangs after adding the tag then it's asking for your OTP, enter your OTP and press Enter. Bundler 2.x and beyond resolved this issue. *
11
- 1. Verify the new version is on [github](https://github.com/wildbit/postmark-gem) and [rubygems](https://rubygems.org/gems/postmark).
12
- 1. Create a new release for the version on [Github releases](https://github.com/wildbit/postmark-gem/releases).
13
- 1. Add or update any related content to the [wiki](https://github.com/wildbit/postmark-gem/wiki).
11
+ 1. Verify the new version is on [github](https://github.com/ActiveCampaign/postmark-gem) and [rubygems](https://rubygems.org/gems/postmark).
12
+ 1. Create a new release for the version on [Github releases](https://github.com/ActiveCampaign/postmark-gem/releases).
13
+ 1. Add or update any related content to the [wiki](https://github.com/ActiveCampaign/postmark-gem/wiki).
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.22.0
1
+ 1.22.1
@@ -1,3 +1,3 @@
1
1
  module Postmark
2
- VERSION = '1.22.0'
2
+ VERSION = '1.22.1'
3
3
  end
data/postmark.gemspec CHANGED
@@ -10,7 +10,6 @@ Gem::Specification.new do |s|
10
10
  s.license = 'MIT'
11
11
 
12
12
  s.authors = ["Tomek Maszkowski", "Igor Balos", "Artem Chistyakov", "Nick Hammond", "Petyo Ivanov", "Ilya Sabanin"]
13
- s.email = "tomek@wildbit.com"
14
13
  s.extra_rdoc_files = ["LICENSE", "README.md"]
15
14
  s.rdoc_options = ["--charset=UTF-8"]
16
15
 
@@ -179,7 +179,7 @@ end
179
179
  describe(Postmark::InactiveRecipientError) do
180
180
  describe '.parse_recipients' do
181
181
  let(:recipients) do
182
- %w(nothing@wildbit.com noth.ing+2@wildbit.com noth.ing+2-1@wildbit.com)
182
+ %w(nothing@postmarkapp.com noth.ing+2@postmarkapp.com noth.ing+2-1@postmarkapp.com)
183
183
  end
184
184
 
185
185
  subject {Postmark::InactiveRecipientError.parse_recipients(message)}
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe Postmark::Inbound do
4
4
  # http://developer.postmarkapp.com/developer-inbound-parse.html#example-hook
5
- let(:example_inbound) { '{"From":"myUser@theirDomain.com","FromFull":{"Email":"myUser@theirDomain.com","Name":"John Doe"},"To":"451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com","ToFull":[{"Email":"451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com","Name":""}],"Cc":"\"Full name\" <sample.cc@emailDomain.com>, \"Another Cc\" <another.cc@emailDomain.com>","CcFull":[{"Email":"sample.cc@emailDomain.com","Name":"Full name"},{"Email":"another.cc@emailDomain.com","Name":"Another Cc"}],"ReplyTo":"myUsersReplyAddress@theirDomain.com","Subject":"This is an inbound message","MessageID":"22c74902-a0c1-4511-804f2-341342852c90","Date":"Thu, 5 Apr 2012 16:59:01 +0200","MailboxHash":"ahoy","TextBody":"[ASCII]","HtmlBody":"[HTML(encoded)]","Tag":"","Headers":[{"Name":"X-Spam-Checker-Version","Value":"SpamAssassin 3.3.1 (2010-03-16) onrs-ord-pm-inbound1.wildbit.com"},{"Name":"X-Spam-Status","Value":"No"},{"Name":"X-Spam-Score","Value":"-0.1"},{"Name":"X-Spam-Tests","Value":"DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_PASS"},{"Name":"Received-SPF","Value":"Pass (sender SPF authorized) identity=mailfrom; client-ip=209.85.160.180; helo=mail-gy0-f180.google.com; envelope-from=myUser@theirDomain.com; receiver=451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com"},{"Name":"DKIM-Signature","Value":"v=1; a=rsa-sha256; c=relaxed\/relaxed; d=wildbit.com; s=google; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; bh=cYr\/+oQiklaYbBJOQU3CdAnyhCTuvemrU36WT7cPNt0=; b=QsegXXbTbC4CMirl7A3VjDHyXbEsbCUTPL5vEHa7hNkkUTxXOK+dQA0JwgBHq5C+1u iuAJMz+SNBoTqEDqte2ckDvG2SeFR+Edip10p80TFGLp5RucaYvkwJTyuwsA7xd78NKT Q9ou6L1hgy\/MbKChnp2kxHOtYNOrrszY3JfQM="},{"Name":"MIME-Version","Value":"1.0"},{"Name":"Message-ID","Value":"<CAGXpo2WKfxHWZ5UFYCR3H_J9SNMG+5AXUovfEFL6DjWBJSyZaA@mail.gmail.com>"}],"Attachments":[{"Name":"myimage.png","Content":"[BASE64-ENCODED CONTENT]","ContentType":"image/png","ContentLength":4096},{"Name":"mypaper.doc","Content":"[BASE64-ENCODED CONTENT]","ContentType":"application/msword","ContentLength":16384}]}' }
5
+ let(:example_inbound) { '{"From":"myUser@theirDomain.com","FromFull":{"Email":"myUser@theirDomain.com","Name":"John Doe"},"To":"451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com","ToFull":[{"Email":"451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com","Name":""}],"Cc":"\"Full name\" <sample.cc@emailDomain.com>, \"Another Cc\" <another.cc@emailDomain.com>","CcFull":[{"Email":"sample.cc@emailDomain.com","Name":"Full name"},{"Email":"another.cc@emailDomain.com","Name":"Another Cc"}],"ReplyTo":"myUsersReplyAddress@theirDomain.com","Subject":"This is an inbound message","MessageID":"22c74902-a0c1-4511-804f2-341342852c90","Date":"Thu, 5 Apr 2012 16:59:01 +0200","MailboxHash":"ahoy","TextBody":"[ASCII]","HtmlBody":"[HTML(encoded)]","Tag":"","Headers":[{"Name":"X-Spam-Checker-Version","Value":"SpamAssassin 3.3.1 (2010-03-16) onrs-ord-pm-inbound1.postmarkapp.com"},{"Name":"X-Spam-Status","Value":"No"},{"Name":"X-Spam-Score","Value":"-0.1"},{"Name":"X-Spam-Tests","Value":"DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_PASS"},{"Name":"Received-SPF","Value":"Pass (sender SPF authorized) identity=mailfrom; client-ip=209.85.160.180; helo=mail-gy0-f180.google.com; envelope-from=myUser@theirDomain.com; receiver=451d9b70cf9364d23ff6f9d51d870251569e+ahoy@inbound.postmarkapp.com"},{"Name":"DKIM-Signature","Value":"v=1; a=rsa-sha256; c=relaxed\/relaxed; d=postmarkapp.com; s=google; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; bh=cYr\/+oQiklaYbBJOQU3CdAnyhCTuvemrU36WT7cPNt0=; b=QsegXXbTbC4CMirl7A3VjDHyXbEsbCUTPL5vEHa7hNkkUTxXOK+dQA0JwgBHq5C+1u iuAJMz+SNBoTqEDqte2ckDvG2SeFR+Edip10p80TFGLp5RucaYvkwJTyuwsA7xd78NKT Q9ou6L1hgy\/MbKChnp2kxHOtYNOrrszY3JfQM="},{"Name":"MIME-Version","Value":"1.0"},{"Name":"Message-ID","Value":"<CAGXpo2WKfxHWZ5UFYCR3H_J9SNMG+5AXUovfEFL6DjWBJSyZaA@mail.gmail.com>"}],"Attachments":[{"Name":"myimage.png","Content":"[BASE64-ENCODED CONTENT]","ContentType":"image/png","ContentLength":4096},{"Name":"mypaper.doc","Content":"[BASE64-ENCODED CONTENT]","ContentType":"application/msword","ContentLength":16384}]}' }
6
6
 
7
7
  context "given a serialized inbound document" do
8
8
  subject { Postmark::Inbound.to_ruby_hash(example_inbound) }
@@ -219,9 +219,9 @@ describe Mail::Message do
219
219
 
220
220
  describe "#export_headers" do
221
221
  let(:mail_message_with_reserved_headers) do
222
- mail_message.header['Return-Path'] = 'bounce@wildbit.com'
223
- mail_message.header['From'] = 'info@wildbit.com'
224
- mail_message.header['Sender'] = 'info@wildbit.com'
222
+ mail_message.header['Return-Path'] = 'bounce@postmarkapp.com'
223
+ mail_message.header['From'] = 'info@postmarkapp.com'
224
+ mail_message.header['Sender'] = 'info@postmarkapp.com'
225
225
  mail_message.header['Received'] = 'from mta.pstmrk.it ([72.14.252.155]:54907)'
226
226
  mail_message.header['Date'] = 'January 25, 2013 3:30:58 PM PDT'
227
227
  mail_message.header['Content-Type'] = 'application/json'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomek Maszkowski
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2021-08-25 00:00:00.000000000 Z
16
+ date: 2022-06-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: json
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: '0'
60
60
  description: Use this gem to send emails through Postmark HTTP API and retrieve info
61
61
  about bounces.
62
- email: tomek@wildbit.com
62
+ email:
63
63
  executables: []
64
64
  extensions: []
65
65
  extra_rdoc_files:
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  - !ruby/object:Gem::Version
153
153
  version: 1.3.7
154
154
  requirements: []
155
- rubygems_version: 3.0.8
155
+ rubygems_version: 3.0.9
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Official Postmark API wrapper.