postmark 1.21.3 → 1.21.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +68 -0
- data/CHANGELOG.rdoc +4 -0
- data/README.md +3 -2
- data/RELEASE.md +1 -1
- data/VERSION +1 -1
- data/lib/postmark/api_client.rb +2 -1
- data/lib/postmark/version.rb +1 -1
- data/spec/unit/postmark/api_client_spec.rb +1 -1
- metadata +4 -4
- data/.travis.yml +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27b284da8c78da623e294bfea463e876cf18e370d395b681548af71a0071afe8
|
4
|
+
data.tar.gz: f12aba5cb688c265455578d011d6f917d405dac949003d2286fec6949c79367d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8881a25fa5bec51bdb8b2db632f3a5a3d1aa1457dd13df1d6e274758b8c4da992cc74ad2b512e4dc771a23c3fafba197bc5c9a979302032114fc5486f49a98d
|
7
|
+
data.tar.gz: e9be7104643c2b9e9ec7fff821af17675afccb51dfe717e72cd1975e6cdf713f322302a18e3df16943e53976e11bb0d80adb5e685faaeff98ff9ec4d1dafaa2c
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# In order for builds to pass, in CircleCI you must have following environment variables setub:
|
2
|
+
# POSTMARK_API_KEY,POSTMARK_ACCOUNT_API_KEY,POSTMARK_CI_RECIPIENT,POSTMARK_CI_SENDER
|
3
|
+
|
4
|
+
version: 2.1
|
5
|
+
|
6
|
+
workflows:
|
7
|
+
ruby-tests:
|
8
|
+
jobs:
|
9
|
+
- unit-tests:
|
10
|
+
matrix:
|
11
|
+
parameters:
|
12
|
+
version: ["2", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7"]
|
13
|
+
- unit-tests-legacy:
|
14
|
+
matrix:
|
15
|
+
parameters:
|
16
|
+
version: ["kneip/ree-1.8.7-2012.02","ruby:1.9.3","circleci/jruby:9"]
|
17
|
+
|
18
|
+
orbs:
|
19
|
+
ruby: circleci/ruby@0.1.2
|
20
|
+
|
21
|
+
jobs:
|
22
|
+
unit-tests:
|
23
|
+
parallelism: 1
|
24
|
+
parameters:
|
25
|
+
version:
|
26
|
+
type: string
|
27
|
+
docker:
|
28
|
+
- image: circleci/ruby:<< parameters.version >>
|
29
|
+
steps:
|
30
|
+
- checkout
|
31
|
+
- run:
|
32
|
+
name: Versions
|
33
|
+
command: |
|
34
|
+
echo "ruby: $(ruby --version)"
|
35
|
+
|
36
|
+
- run:
|
37
|
+
name: Install dependencies
|
38
|
+
command: bundle install
|
39
|
+
|
40
|
+
- run:
|
41
|
+
name: Run tests
|
42
|
+
command: bundle exec rake spec
|
43
|
+
|
44
|
+
unit-tests-legacy:
|
45
|
+
parallelism: 1
|
46
|
+
environment:
|
47
|
+
BUNDLE_GEMFILE: ./gemfiles/Gemfile.legacy
|
48
|
+
parameters:
|
49
|
+
version:
|
50
|
+
type: string
|
51
|
+
docker:
|
52
|
+
- image: << parameters.version >>
|
53
|
+
steps:
|
54
|
+
- checkout
|
55
|
+
- run:
|
56
|
+
name: Versions
|
57
|
+
command: |
|
58
|
+
echo "ruby: $(ruby --version)"
|
59
|
+
|
60
|
+
- run:
|
61
|
+
name: Install dependencies
|
62
|
+
command: |
|
63
|
+
gem install bundler --version 1.17.3
|
64
|
+
bundle install
|
65
|
+
|
66
|
+
- run:
|
67
|
+
name: Run tests
|
68
|
+
command: bundle exec rake spec
|
data/CHANGELOG.rdoc
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
</a>
|
4
4
|
|
5
5
|
# Postmark Ruby Gem
|
6
|
-
[![Build Status](https://
|
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)
|
7
8
|
[![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://www.opensource.org/licenses/MIT)
|
8
9
|
[![Gem Version](https://badge.fury.io/rb/postmark.svg)](https://badge.fury.io/rb/postmark)
|
9
10
|
|
@@ -62,4 +63,4 @@ Refer to the [LICENSE](https://github.com/wildbit/postmark-gem/blob/master/LICEN
|
|
62
63
|
|
63
64
|
## Copyright
|
64
65
|
|
65
|
-
Copyright ©
|
66
|
+
Copyright © 2021 Wildbit LLC.
|
data/RELEASE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
New versions of the gem are cut by the Postmark team, this is a quick guide to ensuring a smooth release.
|
2
2
|
|
3
|
-
1. Verify all builds are passing on
|
3
|
+
1. Verify all builds are passing on CircleCI for your branch.
|
4
4
|
1. Merge in your branch to master.
|
5
5
|
1. Update VERSION and lib/postmark/version.rb with the new version.
|
6
6
|
1. Update CHANGELOG.rdoc with a brief description of the changes.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.21.
|
1
|
+
1.21.4
|
data/lib/postmark/api_client.rb
CHANGED
@@ -81,7 +81,8 @@ module Postmark
|
|
81
81
|
end
|
82
82
|
|
83
83
|
in_batches(messages) do |batch, offset|
|
84
|
-
|
84
|
+
mapped = batch.map { |m| m.to_postmark_hash }
|
85
|
+
data = serialize(:Messages => mapped)
|
85
86
|
|
86
87
|
with_retries do
|
87
88
|
http_client.post("email/batchWithTemplates", data).tap do |response|
|
data/lib/postmark/version.rb
CHANGED
@@ -201,7 +201,7 @@ describe Postmark::ApiClient do
|
|
201
201
|
describe "#deliver_messages_with_templates" do
|
202
202
|
let(:email) {templated_message.to_postmark_hash}
|
203
203
|
let(:emails) {[email, email, email]}
|
204
|
-
let(:emails_json) {Postmark::Json.encode(emails)}
|
204
|
+
let(:emails_json) {Postmark::Json.encode(:Messages => emails)}
|
205
205
|
let(:response) {[{}, {}, {}]}
|
206
206
|
let(:messages) { Array.new(3) { templated_message } }
|
207
207
|
|
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.21.
|
4
|
+
version: 1.21.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Petyo Ivanov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -63,11 +63,11 @@ extra_rdoc_files:
|
|
63
63
|
- LICENSE
|
64
64
|
- README.md
|
65
65
|
files:
|
66
|
+
- ".circleci/config.yml"
|
66
67
|
- ".document"
|
67
68
|
- ".gitignore"
|
68
69
|
- ".rake_tasks"
|
69
70
|
- ".rspec"
|
70
|
-
- ".travis.yml"
|
71
71
|
- CHANGELOG.rdoc
|
72
72
|
- CONTRIBUTING.md
|
73
73
|
- Gemfile
|
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
- !ruby/object:Gem::Version
|
148
148
|
version: 1.3.7
|
149
149
|
requirements: []
|
150
|
-
rubygems_version: 3.
|
150
|
+
rubygems_version: 3.0.8
|
151
151
|
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Official Postmark API wrapper.
|
data/.travis.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
env:
|
2
|
-
global:
|
3
|
-
# POSTMARK_API_KEY=?
|
4
|
-
- secure: "ee7WQAGh7zOcoLYYx1k+542cU2R9jovnypCgyKTaBWMtdes3He4NksJGgp3PSgiPOjpYiqncXYZitgo/gKL8cYjtgcP8o/TKbzmHMTHEbD2LRWfIJ6sr4DiGYT1sjKvTLhVhSIh+WVcIXK9X3V5e6VIUfo14RMj6owHD6qv8Bjc="
|
5
|
-
# POSTMARK_ACCOUNT_API_KEY=?
|
6
|
-
- secure: "lau1m+ws6T5LBiRXwd+Q0b20Wjh62W/nHnCmzOSZc2+V97XTldl3MCJdXNV7J6X7O9CzFabcAG8FSbGGwPRiyhY/qhxkYSc/9pWE8RUjyCjbw5q2RzZQelMKizyKU92eOjd6jQw/wDSZcww1OceW/pgdRjqEo21Pk6XH2yzLAd8="
|
7
|
-
# POSTMARK_CI_RECIPIENT=?
|
8
|
-
- secure: "XJkpUbAC1N6vcL/bUvqX2Mx8OKXpr/3zwqhjGiWhrSGKmQJUNnK4TEGFjnb1TBncZvW5cBRD0oX1Tt7gAu4o8C6sldVf35hB5FQsEyQrgSN4s95uLHuTW9EQisiQS6kzPLbkUmsMIQhIlfNGKQ5tRzRQstip81E8a0Emth3Y9EQ="
|
9
|
-
# POSTMARK_CI_SENDER=?
|
10
|
-
- secure: "bOoU3WEFur/SqwTY0m0aGqy8v8AZfZtFFHNYsU/BtAppZXj378CiktvJGj+cz/KMqFEWyJKNzchFOfZa45Q9Xor/QbTqkBriTOz3Ff7gQpmuPfLSvWRQSLRmbRFgr0Dk8QCTTtfnNtnajxMUyGfxwCiMo+l3EEAqjtLpN+Gja20="
|
11
|
-
language: ruby
|
12
|
-
rvm:
|
13
|
-
- 2.0.0
|
14
|
-
- 2.1.9
|
15
|
-
- 2.2.5
|
16
|
-
- 2.3.1
|
17
|
-
- 2.5.7
|
18
|
-
- 2.6.5
|
19
|
-
- 2.7.0
|
20
|
-
matrix:
|
21
|
-
include:
|
22
|
-
- rvm: 1.8.7
|
23
|
-
dist: precise
|
24
|
-
gemfile: gemfiles/Gemfile.legacy
|
25
|
-
- rvm: 1.9.3
|
26
|
-
gemfile: gemfiles/Gemfile.legacy
|
27
|
-
- rvm: jruby-19mode
|
28
|
-
jdk: oraclejdk8
|
29
|
-
dist: trusty
|
30
|
-
gemfile: gemfiles/Gemfile.legacy
|
31
|
-
script: bundle exec rake spec
|