mailersend-ruby 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/publish_gem.yml +17 -14
- data/.vesnik.yaml +36 -0
- data/flake.lock +23 -1
- data/flake.nix +8 -2
- data/justfile +56 -0
- data/lib/mailersend/version.rb +1 -1
- data/mailersend-ruby.gemspec +1 -1
- metadata +9 -5
- data/CHANGELOG.md +0 -157
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d80a4f04c6fdc2a39fa4e9b6ba6f42b31229daac33f4ac1bbf362c198dbdb495
|
|
4
|
+
data.tar.gz: fea73fe8d50140bd1095e6416064b7e8b31cd4205a46ac1d8abe657016036ee7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2716b87b3467a04f3e120cba0295df5271ab895956c576c81271657de33d16b275aca8c279857c3a553f2a1b6275cddff8c941dc196e8ee04e8912df7c562d7e
|
|
7
|
+
data.tar.gz: e36d6819740ff2123c7096f1f650f2300a3a8bb99240c36cd9161d809a23fdb0dcd595b3e5b9aa793a56a0d24b937431e4441c8c2c4f1dc57a8993415e9b63aa
|
|
@@ -3,30 +3,33 @@ name: Publish Gem
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
tags:
|
|
6
|
-
- v*
|
|
6
|
+
- "v*"
|
|
7
7
|
jobs:
|
|
8
8
|
build:
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
|
|
11
11
|
steps:
|
|
12
|
-
- uses: actions/checkout@v7
|
|
12
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
13
13
|
|
|
14
14
|
- name: Set up Ruby
|
|
15
15
|
uses: ruby/setup-ruby@v1
|
|
16
16
|
with:
|
|
17
17
|
ruby-version: 3.1
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
# The tag is the only source of the version; version.rb holds a placeholder.
|
|
20
|
+
- name: Set the version from the tag
|
|
21
|
+
run: |
|
|
22
|
+
if ! [[ "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.]+)?$ ]]; then
|
|
23
|
+
echo "::error::$GITHUB_REF_NAME is not a version tag such as v1.2.3"
|
|
24
|
+
exit 1
|
|
25
|
+
fi
|
|
26
|
+
VERSION="${GITHUB_REF_NAME#v}"
|
|
27
|
+
sed -i "s/VERSION = '.*'/VERSION = '${VERSION}'/" lib/mailersend/version.rb
|
|
28
|
+
ruby -Ilib -e 'require "mailersend/version"; abort "version.rb was not updated" unless Mailersend::VERSION == ARGV[0]' "$VERSION"
|
|
21
29
|
|
|
22
|
-
- name:
|
|
23
|
-
run:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
if: contains(github.ref, 'refs/tags/v')
|
|
27
|
-
uses: cadwallion/publish-rubygems-action@master
|
|
30
|
+
- name: Publish to RubyGems
|
|
31
|
+
run: |
|
|
32
|
+
gem build mailersend-ruby.gemspec
|
|
33
|
+
gem push mailersend-ruby-*.gem
|
|
28
34
|
env:
|
|
29
|
-
|
|
30
|
-
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
|
31
|
-
RELEASE_COMMAND: rake release
|
|
32
|
-
|
|
35
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
data/.vesnik.yaml
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# vesnik tags releases and writes the GitHub Release notes for `just release` and
|
|
2
|
+
# `just hotfix-release`: https://github.com/nklmilojevic/vesnik
|
|
3
|
+
#
|
|
4
|
+
# The tag is the only source of the version. vesnik never commits: the publish
|
|
5
|
+
# workflow writes the version from the tag into version.rb before it pushes the gem.
|
|
6
|
+
|
|
7
|
+
provider: claude
|
|
8
|
+
model: claude-haiku-5-5
|
|
9
|
+
|
|
10
|
+
# The SDK is public. GitHub's generated notes copy PR titles, which carry internal
|
|
11
|
+
# ticket keys, so a release without the model stops instead of using them.
|
|
12
|
+
ai:
|
|
13
|
+
on_error: fail
|
|
14
|
+
|
|
15
|
+
style:
|
|
16
|
+
preset: ste100
|
|
17
|
+
product: "MailerSend Ruby SDK (gem mailersend-ruby) for the MailerSend API; release notes are read by developers who use the SDK."
|
|
18
|
+
rules:
|
|
19
|
+
- "Never write ticket keys such as MSD-15283 or SRE-76231, branch names, or names of internal tools and processes."
|
|
20
|
+
- "Describe each change by what it adds, changes or fixes for developers who use the SDK, such as the endpoint, method or option."
|
|
21
|
+
- "Leave out merge commits, Renovate dependency updates (\"chore(deps): ...\"), and version bump commits unless they change behavior."
|
|
22
|
+
- "Leave out reverted changes, and \"Fix\", \"Nits\" or \"update docs\" commits unless they change behavior."
|
|
23
|
+
|
|
24
|
+
github:
|
|
25
|
+
append_generated_notes: false
|
|
26
|
+
|
|
27
|
+
changelog:
|
|
28
|
+
enabled: false
|
|
29
|
+
|
|
30
|
+
branch: main
|
|
31
|
+
|
|
32
|
+
breaking_bumps_minor: true
|
|
33
|
+
|
|
34
|
+
packages:
|
|
35
|
+
- path: .
|
|
36
|
+
ecosystem: none
|
data/flake.lock
CHANGED
|
@@ -18,7 +18,29 @@
|
|
|
18
18
|
},
|
|
19
19
|
"root": {
|
|
20
20
|
"inputs": {
|
|
21
|
-
"nixpkgs": "nixpkgs"
|
|
21
|
+
"nixpkgs": "nixpkgs",
|
|
22
|
+
"vesnik": "vesnik"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"vesnik": {
|
|
26
|
+
"inputs": {
|
|
27
|
+
"nixpkgs": [
|
|
28
|
+
"nixpkgs"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"locked": {
|
|
32
|
+
"lastModified": 1792501163,
|
|
33
|
+
"narHash": "sha256-NL9FUQSh2m8WD67KBuWi0Y5jy+qkGE/0dT+BC3MJD60=",
|
|
34
|
+
"owner": "nklmilojevic",
|
|
35
|
+
"repo": "vesnik",
|
|
36
|
+
"rev": "ee5d22cdabf097da4fbcd975da9473a8be78ea28",
|
|
37
|
+
"type": "github"
|
|
38
|
+
},
|
|
39
|
+
"original": {
|
|
40
|
+
"owner": "nklmilojevic",
|
|
41
|
+
"ref": "v0.2.0",
|
|
42
|
+
"repo": "vesnik",
|
|
43
|
+
"type": "github"
|
|
22
44
|
}
|
|
23
45
|
}
|
|
24
46
|
},
|
data/flake.nix
CHANGED
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
inputs = {
|
|
5
5
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
6
|
+
# Release notes and versions for `just release`.
|
|
7
|
+
vesnik = {
|
|
8
|
+
url = "github:nklmilojevic/vesnik/v0.2.0";
|
|
9
|
+
inputs.nixpkgs.follows = "nixpkgs";
|
|
10
|
+
};
|
|
6
11
|
};
|
|
7
12
|
|
|
8
|
-
outputs = { self, nixpkgs }:
|
|
13
|
+
outputs = { self, nixpkgs, vesnik }:
|
|
9
14
|
let
|
|
10
15
|
systems = [ "aarch64-darwin" "x86_64-darwin" "aarch64-linux" "x86_64-linux" ];
|
|
11
16
|
forEachSystem = f:
|
|
@@ -18,7 +23,8 @@
|
|
|
18
23
|
lefthook
|
|
19
24
|
gitleaks
|
|
20
25
|
git-secrets
|
|
21
|
-
|
|
26
|
+
just
|
|
27
|
+
] ++ [ vesnik.packages.${system}.default ];
|
|
22
28
|
};
|
|
23
29
|
});
|
|
24
30
|
};
|
data/justfile
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
set shell := ["bash", "-uc"]
|
|
2
|
+
|
|
3
|
+
[private]
|
|
4
|
+
default:
|
|
5
|
+
@just --list
|
|
6
|
+
|
|
7
|
+
# Release main: vesnik picks the version (minor if the model gives none) and writes the notes
|
|
8
|
+
release:
|
|
9
|
+
@git checkout main
|
|
10
|
+
@git pull --tags -f
|
|
11
|
+
@just _publish-release --default-bump minor
|
|
12
|
+
@just _open "https://github.com/mailersend/mailersend-ruby/releases"
|
|
13
|
+
|
|
14
|
+
# Release main as a patch version
|
|
15
|
+
hotfix-release:
|
|
16
|
+
@git checkout main
|
|
17
|
+
@git pull --tags -f
|
|
18
|
+
@just _publish-release --bump patch
|
|
19
|
+
@just _open "https://github.com/mailersend/mailersend-ruby/releases"
|
|
20
|
+
|
|
21
|
+
# --- Internal helpers ----------------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
# Tag main and publish the GitHub Release with vesnik from PATH or the Nix dev
|
|
24
|
+
# shell; the tag push starts the RubyGems publish workflow. Without vesnik, the
|
|
25
|
+
# version is typed by hand. VESNIK_YES=1 skips vesnik's review.
|
|
26
|
+
[private]
|
|
27
|
+
_publish-release +flags:
|
|
28
|
+
#!/usr/bin/env bash
|
|
29
|
+
set -uo pipefail
|
|
30
|
+
vesnik=""
|
|
31
|
+
if command -v vesnik >/dev/null 2>&1; then
|
|
32
|
+
vesnik="vesnik"
|
|
33
|
+
elif command -v nix >/dev/null 2>&1; then
|
|
34
|
+
vesnik="nix develop --command vesnik"
|
|
35
|
+
fi
|
|
36
|
+
if [ -n "$vesnik" ]; then
|
|
37
|
+
review=""
|
|
38
|
+
if [ "${VESNIK_YES:-}" = 1 ]; then review="--yes"; fi
|
|
39
|
+
$vesnik release {{flags}} $review
|
|
40
|
+
case $? in
|
|
41
|
+
0) exit 0 ;;
|
|
42
|
+
3) echo "Release aborted; nothing was tagged." >&2; exit 1 ;;
|
|
43
|
+
4) echo "The tag is pushed but the GitHub Release failed; run: vesnik renote <tag>" >&2; exit 1 ;;
|
|
44
|
+
*) echo "vesnik failed before tagging; falling back to the manual release." >&2 ;;
|
|
45
|
+
esac
|
|
46
|
+
fi
|
|
47
|
+
echo "> Latest version:"
|
|
48
|
+
git tag -l --sort=-creatordate | head -n 1
|
|
49
|
+
read -r VERSION || exit 1
|
|
50
|
+
# No --generate-notes: it copies PR titles, which carry internal ticket keys.
|
|
51
|
+
gh release create "$VERSION" --target main --notes "" || exit 1
|
|
52
|
+
echo "Add the release notes: vesnik renote $VERSION"
|
|
53
|
+
|
|
54
|
+
[private]
|
|
55
|
+
_open url:
|
|
56
|
+
@if [ "$(uname -s)" = "Darwin" ]; then open "{{url}}"; elif command -v xdg-open >/dev/null 2>&1; then xdg-open "{{url}}"; else echo "{{url}}"; fi
|
data/lib/mailersend/version.rb
CHANGED
data/mailersend-ruby.gemspec
CHANGED
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
|
|
21
21
|
spec.metadata['homepage_uri'] = spec.homepage
|
|
22
22
|
spec.metadata['source_code_uri'] = 'https://github.com/mailersend/mailersend-ruby'
|
|
23
|
-
spec.metadata['changelog_uri'] = 'https://github.com/mailersend/mailersend-ruby/
|
|
23
|
+
spec.metadata['changelog_uri'] = 'https://github.com/mailersend/mailersend-ruby/releases'
|
|
24
24
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
25
25
|
|
|
26
26
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mailersend-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nikola Milojević
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-11-19 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: http
|
|
@@ -69,7 +70,7 @@ files:
|
|
|
69
70
|
- ".gitignore"
|
|
70
71
|
- ".rspec"
|
|
71
72
|
- ".rubocop.yml"
|
|
72
|
-
-
|
|
73
|
+
- ".vesnik.yaml"
|
|
73
74
|
- Gemfile
|
|
74
75
|
- LICENSE.txt
|
|
75
76
|
- README.md
|
|
@@ -170,6 +171,7 @@ files:
|
|
|
170
171
|
- fixtures/whatsapp_templates/whatsapp_templates_list.yml
|
|
171
172
|
- flake.lock
|
|
172
173
|
- flake.nix
|
|
174
|
+
- justfile
|
|
173
175
|
- lefthook.yml
|
|
174
176
|
- lib/mailersend-ruby.rb
|
|
175
177
|
- lib/mailersend.rb
|
|
@@ -245,8 +247,9 @@ metadata:
|
|
|
245
247
|
allowed_push_host: https://rubygems.org
|
|
246
248
|
homepage_uri: https://www.mailersend.com
|
|
247
249
|
source_code_uri: https://github.com/mailersend/mailersend-ruby
|
|
248
|
-
changelog_uri: https://github.com/mailersend/mailersend-ruby/
|
|
250
|
+
changelog_uri: https://github.com/mailersend/mailersend-ruby/releases
|
|
249
251
|
rubygems_mfa_required: 'true'
|
|
252
|
+
post_install_message:
|
|
250
253
|
rdoc_options: []
|
|
251
254
|
require_paths:
|
|
252
255
|
- lib
|
|
@@ -261,7 +264,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
261
264
|
- !ruby/object:Gem::Version
|
|
262
265
|
version: '0'
|
|
263
266
|
requirements: []
|
|
264
|
-
rubygems_version: 3.
|
|
267
|
+
rubygems_version: 3.3.27
|
|
268
|
+
signing_key:
|
|
265
269
|
specification_version: 4
|
|
266
270
|
summary: MailerSend's official Ruby SDK
|
|
267
271
|
test_files: []
|
data/CHANGELOG.md
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
## [Released]
|
|
2
|
-
|
|
3
|
-
## [3.4.0] - 2026-10-26
|
|
4
|
-
- WhatsApp read endpoints: messages, items, activities, inbound messages, recipients and templates (list with filters, and get by ID)
|
|
5
|
-
|
|
6
|
-
## [3.3.0] - 2026-09-01
|
|
7
|
-
- WhatsApp support (send template-based WhatsApp messages)
|
|
8
|
-
|
|
9
|
-
## [3.2.0] - 2026-07-09
|
|
10
|
-
- Add optional language field to email send
|
|
11
|
-
|
|
12
|
-
## [3.1.0] - 2026-04-24
|
|
13
|
-
- DMARC Monitoring support (list, create, update, delete monitors; aggregated reports, IP-specific reports, report sources, mark/remove IP favorites)
|
|
14
|
-
|
|
15
|
-
## [3.0.1] - 2025-04-10
|
|
16
|
-
- Adding missing parameters
|
|
17
|
-
|
|
18
|
-
## [3.0.0] - 2024-12-20
|
|
19
|
-
- *BREAKING CHANGE* - Updated the minimal required Ruby version from 2.5 to 3.1
|
|
20
|
-
- Adding tests
|
|
21
|
-
|
|
22
|
-
## [2.0.3] - 2024-06-24
|
|
23
|
-
|
|
24
|
-
- Advanced personalization is now personalization
|
|
25
|
-
|
|
26
|
-
## [2.0.2] - 2024-03-12
|
|
27
|
-
|
|
28
|
-
- Update constant name
|
|
29
|
-
|
|
30
|
-
## [2.0.1] - 2023-01-08
|
|
31
|
-
|
|
32
|
-
- Simple personalization removed
|
|
33
|
-
|
|
34
|
-
## [2.0.0] - 2023-12-18
|
|
35
|
-
|
|
36
|
-
- *BREAKING CHANGE* - Please check the README file, MailerSend API token is now defined inside your application.
|
|
37
|
-
|
|
38
|
-
## [1.6.0] - 2023-06-22
|
|
39
|
-
|
|
40
|
-
- Sender identities by email
|
|
41
|
-
|
|
42
|
-
## [1.5.2] - 2023-06-20
|
|
43
|
-
|
|
44
|
-
- Removed uninitialized variable
|
|
45
|
-
|
|
46
|
-
## [1.5.1] - 2023-05-09
|
|
47
|
-
|
|
48
|
-
- Added supports for base64 attachment
|
|
49
|
-
|
|
50
|
-
## [1.5.0] - 2023-05-08
|
|
51
|
-
|
|
52
|
-
- API Quota
|
|
53
|
-
- Single eMail Verification
|
|
54
|
-
|
|
55
|
-
## [1.4.0] - 2023-01-17
|
|
56
|
-
|
|
57
|
-
- Sender Identities
|
|
58
|
-
|
|
59
|
-
## [1.3.2] - 2022-11-22
|
|
60
|
-
|
|
61
|
-
- Fixes add_tags method in MailerSend::Email class
|
|
62
|
-
|
|
63
|
-
## [1.3.1] - 2022-09-28
|
|
64
|
-
|
|
65
|
-
- Added attachment content disposition
|
|
66
|
-
|
|
67
|
-
## [1.3.0] - 2022-08-03
|
|
68
|
-
|
|
69
|
-
- SMS Personalization
|
|
70
|
-
- SMS Messages
|
|
71
|
-
- SMS Inbounds
|
|
72
|
-
- SMS Webhooks
|
|
73
|
-
- Email Verification
|
|
74
|
-
|
|
75
|
-
## [1.2.0] - 2022-06-15
|
|
76
|
-
|
|
77
|
-
- SMS Sending
|
|
78
|
-
- SMS Activity
|
|
79
|
-
- SMS Phone Numbers
|
|
80
|
-
- SMS Recipients
|
|
81
|
-
|
|
82
|
-
## [1.1.0] - 2022-02-18
|
|
83
|
-
|
|
84
|
-
- Domains endpoint improvements
|
|
85
|
-
- Added schedule an email parameter
|
|
86
|
-
- Added inbound routes endpoint
|
|
87
|
-
- Added scheduled messages endpoint
|
|
88
|
-
|
|
89
|
-
## [1.0.1] - 2022-02-16
|
|
90
|
-
|
|
91
|
-
- Removed puts from request response
|
|
92
|
-
- Added dynamic User-Agent based on SDK version
|
|
93
|
-
|
|
94
|
-
## [1.0.0] - 2022-02-15
|
|
95
|
-
|
|
96
|
-
- BREAKING CHANGE: Renamed `API_TOKEN` variable to `MAILERSEND_API_TOKEN`
|
|
97
|
-
|
|
98
|
-
## [0.2.4] - 2021-12-13
|
|
99
|
-
|
|
100
|
-
- Added bulk email endpoint
|
|
101
|
-
|
|
102
|
-
# [0.2.3] - 2021-11-11
|
|
103
|
-
|
|
104
|
-
- Fixed typo for reply_to (thanks @JohnGoodman)
|
|
105
|
-
|
|
106
|
-
## [0.2.2] - 2021-08-04
|
|
107
|
-
|
|
108
|
-
- Removed leftover debugging stuff
|
|
109
|
-
|
|
110
|
-
## [0.2.1] - 2021-08-04
|
|
111
|
-
|
|
112
|
-
- Fixed email class so that it omits empty values
|
|
113
|
-
|
|
114
|
-
## [0.2.0] - 2021-07-01
|
|
115
|
-
|
|
116
|
-
- Added Templates endpoint
|
|
117
|
-
|
|
118
|
-
## [0.1.9] - 2021-06-30
|
|
119
|
-
|
|
120
|
-
- Fixed docs
|
|
121
|
-
|
|
122
|
-
## [0.1.8] - 2021-06-15
|
|
123
|
-
|
|
124
|
-
- Fixed unused parameter
|
|
125
|
-
|
|
126
|
-
## [0.1.7] - 2021-06-15
|
|
127
|
-
|
|
128
|
-
- Added required parameter for token creation
|
|
129
|
-
-
|
|
130
|
-
|
|
131
|
-
## [0.1.6] - 2021-06-15
|
|
132
|
-
|
|
133
|
-
- Fixed small issues in Domains
|
|
134
|
-
|
|
135
|
-
## [0.1.5] - 2021-06-15
|
|
136
|
-
|
|
137
|
-
- Fixed arguments error in Domains list
|
|
138
|
-
|
|
139
|
-
## [0.1.4] - 2021-06-15
|
|
140
|
-
|
|
141
|
-
- Fixed Domains init
|
|
142
|
-
|
|
143
|
-
## [0.1.3] - 2021-06-14
|
|
144
|
-
|
|
145
|
-
- Updated gem description
|
|
146
|
-
|
|
147
|
-
## [0.1.2] - 2021-06-14
|
|
148
|
-
|
|
149
|
-
- Fixed activity and tokens endpoints.
|
|
150
|
-
|
|
151
|
-
## [0.1.1] - 2021-06-14
|
|
152
|
-
|
|
153
|
-
- Updated token format so you don't have to include `Bearer` in env variable.
|
|
154
|
-
|
|
155
|
-
## [0.1.0] - 2021-06-14
|
|
156
|
-
|
|
157
|
-
- Initial release
|