mailersend-ruby 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d505ebb32c33458ffd673e60c82620b4938241f6759f45b12fefec0b3058ab5
4
- data.tar.gz: ac9b5c974cd4478afb658378770609f1936fda55a8441ee466f56cc337b8b58c
3
+ metadata.gz: 6c4a626cf3c8fabd037995c39aede5705fa036e8099ec06656540962528e771a
4
+ data.tar.gz: e34d9b66417d2cc1931359877347d11741de1b88f4c131648506406ed84faf0a
5
5
  SHA512:
6
- metadata.gz: 108c5201b2ebdb2f038903c9c2497c729edb3287ab099cca976d7269777f689c0d28bd512445dc8066a21a5215649e8df5cb9f3672e52f80bad6c72f250eea78
7
- data.tar.gz: c7df5c911d37ba748f64e1d71bfcec8e53432e9f9f5087aacc38731b540626f64d97b61da657b1aaf2e2b6f4fe7a44a7e12d4d7eba0c7f56c3a9ad0dab1bb8ed
6
+ metadata.gz: 81c9ec9c29dfd8e365c8e7ae612493adb1706dc7f50e0c1a9ade581830344a37c563bc3df1ab939eebebb53e5aac22692f43dbb95dced22ac258efe80e4d9729
7
+ data.tar.gz: b6491f25066d26c34283e259b9f257206f6ac0b5036e0c9b60330ff6a5a7c5561cb9957b59147941a945d5ee73f804be5777314e46edc3b931b1c41c1a0b5741
data/README.md CHANGED
@@ -158,26 +158,15 @@ ms_email = Mailersend::Email.new
158
158
 
159
159
  # Add parameters
160
160
  ms_email.add_recipients("email" => "ron@parksandrec.com", "name" => "Ron")
161
- ms_email.add_recipients("email" => "leslie@parksandrec.com", "name" => "Leslie")
162
161
  ms_email.add_from("email" => "april@parksandrec.com", "name" => "April")
163
- ms_email.add_subject("Time")
164
- ms_email.add_text("Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.")
165
- ms_email.add_html("<b>Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.</b>")
162
+ ms_email.add_subject("Time {{ test }}")
163
+ ms_email.add_text("{{ test }}Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.")
164
+ ms_email.add_html("<b>{{ test }}Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.</b>")
166
165
 
167
166
  personalization = {
168
- "email": "test@test.com",
169
- "data": {
170
- "var": "value",
171
- "boolean": true,
172
- "object": {
173
- "key": "object-value"
174
- },
175
- "number": 2,
176
- "array": [
177
- 1,
178
- 2,
179
- 3
180
- ]
167
+ email: 'ron@parksandrec.com',
168
+ data: {
169
+ test: 'Test Value'
181
170
  }
182
171
  }
183
172
 
@@ -196,18 +185,17 @@ ms_email = Mailersend::Email.new
196
185
 
197
186
  # Add parameters
198
187
  ms_email.add_recipients("email" => "ron@parksandrec.com", "name" => "Ron")
199
- ms_email.add_recipients("email" => "leslie@parksandrec.com", "name" => "Leslie")
200
188
  ms_email.add_from("email" => "april@parksandrec.com", "name" => "April")
201
- ms_email.add_subject("Time")
202
- ms_email.add_text("Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.")
203
- ms_email.add_html("<b>Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.</b>")
189
+ ms_email.add_subject("Time {$test}")
190
+ ms_email.add_text("{$test} Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.")
191
+ ms_email.add_html("<b>{$test} Time is money, money is power, power is pizza, and pizza is knowledge. Let's go.</b>")
204
192
 
205
193
  variables = {
206
- "email": "test@test.com",
207
- "substitutions": [
194
+ email: 'ron@parksandrec.com',
195
+ substitutions: [
208
196
  {
209
- "var": "test",
210
- "value": "test"
197
+ var: 'test',
198
+ value: 'Test Value'
211
199
  }
212
200
  ]
213
201
  }
@@ -261,7 +249,7 @@ ms_activity.get(domain_id: "xxx2241ll", page: 3, limit: 5, date_from: 1620643567
261
249
  require "mailersend-ruby"
262
250
 
263
251
  ms_analytics = Mailersend::Analytics.new
264
- ms_analytics.date(date_from: 1620643567, date_to: 1623321967, events: %w[sent queued]))
252
+ ms_analytics.date(date_from: 1620643567, date_to: 1623321967, events: %w[sent queued])
265
253
  ```
266
254
 
267
255
  ### Opens by country
@@ -424,4 +412,4 @@ The official documentation is at [https://developers.mailersend.com](https://dev
424
412
 
425
413
  # License
426
414
 
427
- [The MIT License (MIT)](LICENSE)
415
+ [The MIT License (MIT)](LICENSE)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mailersend
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ["info@mailersend.com"]
12
12
 
13
13
  spec.summary = "MailerSend's official Ruby SDK"
14
- spec.description = "MailerSend's official Ruby SDK. Interacts will all endpoints at MailerSend API."
14
+ spec.description = "MailerSend's official Ruby SDK. Interacts with all endpoints at MailerSend API."
15
15
  spec.homepage = "https://www.mailersend.com"
16
16
  spec.license = "MIT"
17
17
  spec.required_ruby_version = ">= 2.5.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailersend-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Milojević
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 0.10.1
111
- description: MailerSend's official Ruby SDK. Interacts will all endpoints at MailerSend
111
+ description: MailerSend's official Ruby SDK. Interacts with all endpoints at MailerSend
112
112
  API.
113
113
  email:
114
114
  - info@mailersend.com