mailersend-ruby 0.2.4 → 0.2.5

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: '08ba885c0049c372636873518510b62965493ebbcd9198111d72308d17a7b0f2'
4
- data.tar.gz: 74ac4b75d90f18c2d7e57a65d32925a5d8d112ccd13529409156c71a87451ce1
3
+ metadata.gz: 715bc5dfedaf2922ecf3762f223a846a21a4c5ccac62f0cd9696a654d295acdc
4
+ data.tar.gz: 9566a6de424da59aa2e92a7e08c733b5aed921c0ba7643ebea677511b5f57fe7
5
5
  SHA512:
6
- metadata.gz: 92cb6a3deb8cae056d38dbd7a64fb17c5a9ee5d4e30ef040687c4b81870f01eced6d4ae99d7f9cdb9e126a5aedb88dd0955cae8db58f0aac80435ece8e640791
7
- data.tar.gz: 8fdcb78aff4eea89a2b97c9ba91f20fa65c77aa46f1400f7f2b1be4a2c8b0365ddfafff4944fe27b3430db9d059892156a9472e69ea838e868322c0d6a9d944d
6
+ metadata.gz: ed316a2ef0e23b2a8fe634d6f6d855d520c14b2ca5669d404a8bb3ee13c9e218302651a7c243469484bf105b1a84c7d8f7a6fb5a7df5dc69428363be332a0823
7
+ data.tar.gz: 8eb9f362a966497bc002ebf42f483e34efa0d1672d653bb0097c0d60966ed7a6a2785c0e30d2549da4c9de327350d11aec971dee7e925f7e38b8ad210c0e154b
@@ -0,0 +1,21 @@
1
+ name: Publish Gem
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+
14
+ - name: Release Gem
15
+ if: contains(github.ref, 'refs/tags/v')
16
+ uses: cadwallion/publish-rubygems-action@master
17
+ env:
18
+ GITHUB_TOKEN: ${{secrets.GITHUBTOKEN}}
19
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
20
+ RELEASE_COMMAND: rake release
21
+
data/README.md CHANGED
@@ -477,16 +477,16 @@ require "mailersend-ruby"
477
477
  ms_suppressions = Mailersend::Suppressions.new
478
478
 
479
479
  // Delete from Block List
480
- ms_suppressions.delete_from_blocklist(ids: ["xxx2241ll"])
480
+ ms_suppressions.delete_from_blocklist(domain_id: 'yourdomainid', ids: ["xxx2241ll"])
481
481
 
482
482
  // Delete from Hard Bounces
483
- ms_suppressions.delete_from_hard_bounces(ids: ["xxx2241ll"])
483
+ ms_suppressions.delete_from_hard_bounces(domain_id: 'yourdomainid', ids: ["xxx2241ll"])
484
484
 
485
485
  // Delete from Spam Complaints
486
- ms_suppressions.delete_from_spam_complaints(ids: ["xxx2241ll"])
486
+ ms_suppressions.delete_from_spam_complaints(domain_id: 'yourdomainid', ids: ["xxx2241ll"])
487
487
 
488
488
  // Delete from Unsubscribes
489
- ms_suppressions.delete_from_unsubscribers(ids: ["xxx2241ll"])
489
+ ms_suppressions.delete_from_unsubscribers(domain_id: 'yourdomainid', ids: ["xxx2241ll"])
490
490
  ```
491
491
 
492
492
  ## Webhooks
@@ -572,4 +572,4 @@ The official documentation is at [https://developers.mailersend.com](https://dev
572
572
 
573
573
  # License
574
574
 
575
- [The MIT License (MIT)](LICENSE)
575
+ [The MIT License (MIT)](LICENSE)
@@ -14,7 +14,7 @@ module Mailersend
14
14
  end
15
15
 
16
16
  def add_attachment(content:, filename:)
17
- data = File.open(content.to_s).read
17
+ data = File.read(content.to_s)
18
18
  encoded = Base64.strict_encode64(data)
19
19
  @attachments << {
20
20
  'content' => encoded,
@@ -85,7 +85,7 @@ module Mailersend
85
85
  end
86
86
 
87
87
  def add_attachment(content:, filename:)
88
- data = File.open(content.to_s).read
88
+ data = File.read(content.to_s)
89
89
  encoded = Base64.strict_encode64(data)
90
90
  @attachments << {
91
91
  'content' => encoded,
@@ -44,8 +44,9 @@ module Mailersend
44
44
  puts response
45
45
  end
46
46
 
47
- def delete_from_blocklist(ids: nil, all: nil)
47
+ def delete_from_blocklist(domain_id: nil, ids: nil, all: nil)
48
48
  hash = {
49
+ 'domain_id' => domain_id,
49
50
  'ids' => ids,
50
51
  'all' => all
51
52
  }
@@ -62,8 +63,9 @@ module Mailersend
62
63
  puts response
63
64
  end
64
65
 
65
- def delete_from_hard_bounces(ids: nil, all: nil)
66
+ def delete_from_hard_bounces(domain_id: nil, ids: nil, all: nil)
66
67
  hash = {
68
+ 'domain_id' => domain_id,
67
69
  'ids' => ids,
68
70
  'all' => all
69
71
  }
@@ -80,8 +82,9 @@ module Mailersend
80
82
  puts response
81
83
  end
82
84
 
83
- def delete_from_spam_complaints(ids: nil, all: nil)
85
+ def delete_from_spam_complaints(domain_id: nil, ids: nil, all: nil)
84
86
  hash = {
87
+ 'domain_id' => domain_id,
85
88
  'ids' => ids,
86
89
  'all' => all
87
90
  }
@@ -98,8 +101,9 @@ module Mailersend
98
101
  puts response
99
102
  end
100
103
 
101
- def delete_from_unsubscribers(ids: nil, all: nil)
104
+ def delete_from_unsubscribers(domain_id: nil, ids: nil, all: nil)
102
105
  hash = {
106
+ 'domain_id' => domain_id,
103
107
  'ids' => ids,
104
108
  'all' => all
105
109
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mailersend
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.5'
5
5
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.add_development_dependency 'bundler', '~> 2.2.15'
30
+ spec.add_development_dependency 'bundler', '~> 2.3.4'
31
31
  spec.add_development_dependency 'rake', '~> 13.0'
32
32
  spec.add_development_dependency 'rubocop', '~> 1.7'
33
33
  spec.add_dependency 'dotenv', '~> 2.7'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailersend-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Milojević
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.15
19
+ version: 2.3.4
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
- version: 2.2.15
26
+ version: 2.3.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,6 +120,7 @@ extra_rdoc_files: []
120
120
  files:
121
121
  - ".env.example"
122
122
  - ".github/workflows/main.yml"
123
+ - ".github/workflows/publish_gem.yml"
123
124
  - ".gitignore"
124
125
  - ".rubocop.yml"
125
126
  - CHANGELOG.md
@@ -155,7 +156,7 @@ metadata:
155
156
  source_code_uri: https://github.com/mailersend/mailersend-ruby
156
157
  changelog_uri: https://github.com/mailersend/mailersend-ruby/blob/main/CHANGELOG.md
157
158
  rubygems_mfa_required: 'true'
158
- post_install_message:
159
+ post_install_message:
159
160
  rdoc_options: []
160
161
  require_paths:
161
162
  - lib
@@ -170,8 +171,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
171
  - !ruby/object:Gem::Version
171
172
  version: '0'
172
173
  requirements: []
173
- rubygems_version: 3.2.31
174
- signing_key:
174
+ rubygems_version: 3.3.3
175
+ signing_key:
175
176
  specification_version: 4
176
177
  summary: MailerSend's official Ruby SDK
177
178
  test_files: []