mailerlite-ruby 1.0.2 → 1.0.3

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: 7d5f532e0ab219dc826f2a5cda903ab683f270525335e58d2b615a0d737421a7
4
- data.tar.gz: f1dca6e4e42b67cc04c7be3145aef81eb742d2e5d128fa0613eb5e4c1a0bf74b
3
+ metadata.gz: 24c0e7de260800159f65b77ed7de5e14bd081027063960187f72e26832eec6a4
4
+ data.tar.gz: b9bacc2dbd3b1a1ae9807045307185a0d5d4e66981e4e966424f7ff08932e550
5
5
  SHA512:
6
- metadata.gz: 70fb10981c957b5b8eb6d3e476e5e3d08bd6d66a62bca007c0f66da9aacc5c85b0cb7c25ffbc4e4fe2c96839205a5a1774ff4cc7ecfaabe4e7558e65b8db2d07
7
- data.tar.gz: 5489f2134e17d7197880e09762df17e7e737fb89b20a6a88d5b7cdc0dbbc61364de7820e96459b13034b386b987049eaa34402dc9f00a0900b020218caa58f8d
6
+ metadata.gz: 6e7fbe796f01f62f16c018d0e4af071fcfe19843ffb80ac284100a93d7c9281093f0bf5b9882253ee22dbaefbd0d84e41eb12e4a775ea95398f3243dae831670
7
+ data.tar.gz: 31e6cccbbfedf736691e45051462bb590478d45c84996f882d41b66c58ad515daaeba635df752ab7fc7f9d03d6bd63dd9005c684cc9050901b4ae0059d8e78f9
data/CHANGELOG.md CHANGED
@@ -1 +1,12 @@
1
- ## [Unreleased]
1
+ ## [1.0.3] - 2023-06-02
2
+ - Documentation update
3
+ - mailerlite.rb missing version
4
+
5
+ ## [1.0.2] - 2023-03-22
6
+ - Gemfile.lock removed
7
+
8
+ ## [1.0.1] - 2023-03-22
9
+ - Version update
10
+
11
+ ## [1.0.0] - 2023-03-06
12
+ - Initial release
data/README.md CHANGED
@@ -103,9 +103,9 @@ This SDK requires that you either have `.env` file with `MAILERLITE_API_TOKEN` e
103
103
  require "mailerlite-ruby"
104
104
 
105
105
  # Intialize the class
106
- subscribers = Mailerlite::Subscribers.new
106
+ subscribers = MailerLite::Subscribers.new
107
107
 
108
- response = subscribers.list(filter: { status: 'active' })
108
+ subscribers.fetch(filter: { status: 'active' })
109
109
  ```
110
110
 
111
111
  ### Create a subscriber
@@ -116,9 +116,9 @@ response = subscribers.list(filter: { status: 'active' })
116
116
  require "mailerlite-ruby"
117
117
 
118
118
  # Intialize the class
119
- subscribers = Mailerlite::Subscribers.new
119
+ subscribers = MailerLite::Subscribers.new
120
120
 
121
- response = subscribers.create(email:'some@email.com', fields: {'name': 'John', 'last_name': 'Doe'}, ip_address:'1.2.3.4', optin_ip:'1.2.3.4')
121
+ subscribers.create(email:'some@email.com', fields: {'name': 'John', 'last_name': 'Doe'}, ip_address:'1.2.3.4', optin_ip:'1.2.3.4')
122
122
  ```
123
123
 
124
124
  ### Update a subscriber
@@ -129,9 +129,9 @@ response = subscribers.create(email:'some@email.com', fields: {'name': 'John', '
129
129
  require "mailerlite-ruby"
130
130
 
131
131
  # Intialize the class
132
- subscribers = Mailerlite::Subscribers.new
132
+ subscribers = MailerLite::Subscribers.new
133
133
 
134
- response = subscribers.update(email:'some@email.com', fields: {'name': 'John', 'last_name': 'Doe'}, ip_address:'1.2.3.4', optin_ip:'1.2.3.4')
134
+ subscribers.update(email:'some@email.com', fields: {'name': 'John', 'last_name': 'Doe'}, ip_address:'1.2.3.4', optin_ip:'1.2.3.4')
135
135
  ```
136
136
 
137
137
  ### Get a subscriber
@@ -142,9 +142,9 @@ response = subscribers.update(email:'some@email.com', fields: {'name': 'John', '
142
142
  require "mailerlite-ruby"
143
143
 
144
144
  # Intialize the class
145
- subscribers = Mailerlite::Subscribers.new
145
+ subscribers = MailerLite::Subscribers.new
146
146
 
147
- response = subscribers.get('some@email.com')
147
+ subscribers.get('some@email.com')
148
148
  ```
149
149
 
150
150
  ### Delete a subscriber
@@ -155,11 +155,11 @@ response = subscribers.get('some@email.com')
155
155
  require "mailerlite-ruby"
156
156
 
157
157
  # Intialize the class
158
- subscribers = Mailerlite::Subscribers.new
158
+ subscribers = MailerLite::Subscribers.new
159
159
 
160
160
  subscriber_id = 1234567890
161
161
 
162
- response = subscribers.delete(subscriber_id)
162
+ subscribers.delete(subscriber_id)
163
163
  ```
164
164
 
165
165
  ## Groups
@@ -174,9 +174,9 @@ response = subscribers.delete(subscriber_id)
174
174
  require "mailerlite-ruby"
175
175
 
176
176
  # Intialize the class
177
- groups = Mailerlite::Groups.new
177
+ groups = MailerLite::Groups.new
178
178
 
179
- response = groups.list(limit:10, page:1, filter:{'name': 'My'}, sort:'name')
179
+ groups.list(limit:10, page:1, filter:{'name': 'My'}, sort:'name')
180
180
  ```
181
181
 
182
182
  ### Create a group
@@ -187,9 +187,9 @@ response = groups.list(limit:10, page:1, filter:{'name': 'My'}, sort:'name')
187
187
  require "mailerlite-ruby"
188
188
 
189
189
  # Intialize the class
190
- groups = Mailerlite::Groups.new
190
+ groups = MailerLite::Groups.new
191
191
 
192
- response = groups.create(name:'Group Name')
192
+ groups.create(name:'Group Name')
193
193
  ```
194
194
 
195
195
  ### Update a group
@@ -200,9 +200,9 @@ response = groups.create(name:'Group Name')
200
200
  require "mailerlite-ruby"
201
201
 
202
202
  # Intialize the class
203
- groups = Mailerlite::Groups.new
203
+ groups = MailerLite::Groups.new
204
204
 
205
- response = groups.update(group_id:1234567, name:'My New Group')
205
+ groups.update(group_id:1234567, name:'My New Group')
206
206
  ```
207
207
 
208
208
  ### Delete a group
@@ -213,11 +213,11 @@ response = groups.update(group_id:1234567, name:'My New Group')
213
213
  require "mailerlite-ruby"
214
214
 
215
215
  # Intialize the class
216
- groups = Mailerlite::Groups.new
216
+ groups = MailerLite::Groups.new
217
217
 
218
218
  group_id = 1234567
219
219
 
220
- response = groups.delete(group_id)
220
+ groups.delete(group_id)
221
221
  ```
222
222
 
223
223
  ### Get subscribers belonging to a group
@@ -228,9 +228,9 @@ response = groups.delete(group_id)
228
228
  require "mailerlite-ruby"
229
229
 
230
230
  # Intialize the class
231
- groups = Mailerlite::Groups.new
231
+ groups = MailerLite::Groups.new
232
232
 
233
- response = groups.get_subscribers(group_id:1234567, page:1, limit:10, filter:{'status': 'active'})
233
+ groups.get_subscribers(group_id:1234567, page:1, limit:10, filter:{'status': 'active'})
234
234
  ```
235
235
 
236
236
  ### Assign subscriber to a group
@@ -241,9 +241,9 @@ response = groups.get_subscribers(group_id:1234567, page:1, limit:10, filter:{'s
241
241
  require "mailerlite-ruby"
242
242
 
243
243
  # Intialize the class
244
- groups = Mailerlite::Groups.new
244
+ groups = MailerLite::Groups.new
245
245
 
246
- response = subscribers.assign_subscriber(subscriber_id:111222, group_id:1234567)
246
+ subscribers.assign_subscriber(subscriber_id:111222, group_id:1234567)
247
247
  ```
248
248
 
249
249
  ### Unassign subscriber from a group
@@ -254,9 +254,9 @@ response = subscribers.assign_subscriber(subscriber_id:111222, group_id:1234567)
254
254
  require "mailerlite-ruby"
255
255
 
256
256
  # Intialize the class
257
- groups = Mailerlite::Groups.new
257
+ groups = MailerLite::Groups.new
258
258
 
259
- response = subscribers.unassign_subscriber(subscriber_id:111222, group_id:1234567)
259
+ subscribers.unassign_subscriber(subscriber_id:111222, group_id:1234567)
260
260
  ```
261
261
 
262
262
  ## Segments
@@ -271,9 +271,9 @@ response = subscribers.unassign_subscriber(subscriber_id:111222, group_id:123456
271
271
  require "mailerlite-ruby"
272
272
 
273
273
  # Intialize the class
274
- segments = Mailerlite::Segments.new
274
+ segments = MailerLite::Segments.new
275
275
 
276
- response = segments.list(limit:10, page:1)
276
+ segments.list(limit:10, page:1)
277
277
  ```
278
278
 
279
279
  ### Update a segment
@@ -284,9 +284,9 @@ response = segments.list(limit:10, page:1)
284
284
  require "mailerlite-ruby"
285
285
 
286
286
  # Intialize the class
287
- segments = Mailerlite::Segments.new
287
+ segments = MailerLite::Segments.new
288
288
 
289
- response = segments.update(segment_id: 123456, name:'My New Segment Name')
289
+ segments.update(segment_id: 123456, name:'My New Segment Name')
290
290
  ```
291
291
 
292
292
  ### Delete a segment
@@ -297,10 +297,10 @@ response = segments.update(segment_id: 123456, name:'My New Segment Name')
297
297
  require "mailerlite-ruby"
298
298
 
299
299
  # Intialize the class
300
- segments = Mailerlite::Segments.new
300
+ segments = MailerLite::Segments.new
301
301
  segment_id = 123456
302
302
 
303
- response = segments.delete(segment_id)
303
+ segments.delete(segment_id)
304
304
  ```
305
305
 
306
306
  ### Get subscribers belonging to a segment
@@ -311,9 +311,9 @@ response = segments.delete(segment_id)
311
311
  require "mailerlite-ruby"
312
312
 
313
313
  # Intialize the class
314
- segments = Mailerlite::Segments.new
314
+ segments = MailerLite::Segments.new
315
315
 
316
- response = segments.get_subscribers(segment_id:123456, limit:10, filter:{'status': 'active'})
316
+ segments.get_subscribers(segment_id:123456, limit:10, filter:{'status': 'active'})
317
317
  ```
318
318
 
319
319
  ## Fields
@@ -328,9 +328,9 @@ response = segments.get_subscribers(segment_id:123456, limit:10, filter:{'status
328
328
  require "mailerlite-ruby"
329
329
 
330
330
  # Intialize the class
331
- fields = Mailerlite::Fields.new
331
+ fields = MailerLite::Fields.new
332
332
 
333
- response = fields.list(limit:10, page:1, sort:'name', filter:{'keyword': 'abc', 'type': 'text'})
333
+ fields.get(limit:10, page:1, sort:'name', filter:{'keyword': 'abc', 'type': 'text'})
334
334
  ```
335
335
 
336
336
  ### Create a field
@@ -341,9 +341,9 @@ response = fields.list(limit:10, page:1, sort:'name', filter:{'keyword': 'abc',
341
341
  require "mailerlite-ruby"
342
342
 
343
343
  # Intialize the class
344
- fields = Mailerlite::Fields.new
344
+ fields = MailerLite::Fields.new
345
345
 
346
- response = fields.create(name:'My Field', type:'text')
346
+ fields.create(name:'My Field', type:'text')
347
347
  ```
348
348
 
349
349
  ### Update a field
@@ -354,9 +354,9 @@ response = fields.create(name:'My Field', type:'text')
354
354
  require "mailerlite-ruby"
355
355
 
356
356
  # Intialize the class
357
- fields = Mailerlite::Fields.new
357
+ fields = MailerLite::Fields.new
358
358
 
359
- response = fields.update(field_id:123345, name:'My New Field')
359
+ fields.update(field_id:123345, name:'My New Field')
360
360
  ```
361
361
 
362
362
  ### Delete a field
@@ -367,11 +367,11 @@ response = fields.update(field_id:123345, name:'My New Field')
367
367
  require "mailerlite-ruby"
368
368
 
369
369
  # Intialize the class
370
- fields = Mailerlite::Fields.new
370
+ fields = MailerLite::Fields.new
371
371
 
372
372
  field_id = 123456
373
373
 
374
- response = fields.delete(field_id)
374
+ fields.delete(field_id)
375
375
  ```
376
376
 
377
377
  ## Automations
@@ -386,9 +386,9 @@ response = fields.delete(field_id)
386
386
  require "mailerlite-ruby"
387
387
 
388
388
  # Intialize the class
389
- automations = Mailerlite::Automations.new
389
+ automations = MailerLite::Automations.new
390
390
 
391
- response = automations.list(limit:10, page:1, filter:{'status': true, 'name': 'some name', 'group': 123456})
391
+ automations.get(limit:10, page:1, filter:{'status': true, 'name': 'some name', 'group': 123456})
392
392
  ```
393
393
 
394
394
  ### Get an automation
@@ -399,11 +399,11 @@ response = automations.list(limit:10, page:1, filter:{'status': true, 'name': 's
399
399
  require "mailerlite-ruby"
400
400
 
401
401
  # Intialize the class
402
- automations = Mailerlite::Automations.new
402
+ automations = MailerLite::Automations.new
403
403
 
404
404
  automation_id = 123456
405
405
 
406
- response = automations.get(automation_id)
406
+ automations.fetch(automation_id)
407
407
  ```
408
408
 
409
409
  ### Get subscribers activity for an automation
@@ -414,9 +414,9 @@ response = automations.get(automation_id)
414
414
  require "mailerlite-ruby"
415
415
 
416
416
  # Intialize the class
417
- automations = Mailerlite::Automations.new
417
+ automations = MailerLite::Automations.new
418
418
 
419
- response = automations.activity(automation_id:123456, page:1, limit:10, filter:{'status': 'active', 'date_from': '2022-12-20', 'date_to': '2022-12-31'})
419
+ automations.get_subscriber_activity(automation_id:123456, page:1, limit:10, filter:{'status': 'active', 'date_from': '2022-12-20', 'date_to': '2022-12-31'})
420
420
  ```
421
421
 
422
422
  ## Campaigns
@@ -431,9 +431,9 @@ response = automations.activity(automation_id:123456, page:1, limit:10, filter:{
431
431
  require "mailerlite-ruby"
432
432
 
433
433
  # Intialize the class
434
- campaigns = Mailerlite::Campaigns.new
434
+ campaigns = MailerLite::Campaigns.new
435
435
 
436
- response = campaigns.list(limit:10, page:1, filter:{'status': 'ready', 'type': 'regular'})
436
+ campaigns.get(limit:10, page:1, filter:{'status': 'ready', 'type': 'regular'})
437
437
  ```
438
438
 
439
439
  ### Get a campaign
@@ -444,9 +444,9 @@ response = campaigns.list(limit:10, page:1, filter:{'status': 'ready', 'type': '
444
444
  require "mailerlite-ruby"
445
445
 
446
446
  # Intialize the class
447
- campaigns = Mailerlite::Campaigns.new
447
+ campaigns = MailerLite::Campaigns.new
448
448
 
449
- response = campaigns.get(campaign_id:123456)
449
+ campaigns.fetch(campaign_id:123456)
450
450
  ```
451
451
 
452
452
  ### Create a campaign
@@ -457,9 +457,9 @@ response = campaigns.get(campaign_id:123456)
457
457
  require "mailerlite-ruby"
458
458
 
459
459
  # Intialize the class
460
- campaigns = Mailerlite::Campaigns.new
460
+ campaigns = MailerLite::Campaigns.new
461
461
 
462
- response = campaigns.create(
462
+ campaigns.create(
463
463
  name: "Test Campaign",
464
464
  language_id: 1,
465
465
  type: "regular",
@@ -480,9 +480,9 @@ response = campaigns.create(
480
480
  require "mailerlite-ruby"
481
481
 
482
482
  # Intialize the class
483
- campaigns = Mailerlite::Campaigns.new
483
+ campaigns = MailerLite::Campaigns.new
484
484
 
485
- response = campaigns.update(
485
+ campaigns.update(
486
486
  campaign_id: 1233455,
487
487
  name: "New Campaign Name",
488
488
  language_id: 2,
@@ -503,9 +503,9 @@ response = campaigns.update(
503
503
  require "mailerlite-ruby"
504
504
 
505
505
  # Intialize the class
506
- campaigns = Mailerlite::Campaigns.new
506
+ campaigns = MailerLite::Campaigns.new
507
507
 
508
- response = campaigns.schedule(
508
+ campaigns.schedule(
509
509
  campaign_id: 123456,
510
510
  delivery: "scheduled",
511
511
  schedule: {
@@ -524,11 +524,11 @@ response = campaigns.schedule(
524
524
  require "mailerlite-ruby"
525
525
 
526
526
  # Intialize the class
527
- campaigns = Mailerlite::Campaigns.new
527
+ campaigns = MailerLite::Campaigns.new
528
528
 
529
529
  campaign_id = 123456
530
530
 
531
- response = campaigns.cancel(campaign_id)
531
+ campaigns.cancel(campaign_id)
532
532
  ```
533
533
 
534
534
  ### Delete a campaign
@@ -539,11 +539,11 @@ response = campaigns.cancel(campaign_id)
539
539
  require "mailerlite-ruby"
540
540
 
541
541
  # Intialize the class
542
- campaigns = Mailerlite::Campaigns.new
542
+ campaigns = MailerLite::Campaigns.new
543
543
 
544
544
  campaign_id = 123456
545
545
 
546
- response = campaigns.delete(campaign_id)
546
+ campaigns.delete(campaign_id)
547
547
  ```
548
548
 
549
549
  ### Get subscribers activity for a campaign
@@ -554,11 +554,11 @@ response = campaigns.delete(campaign_id)
554
554
  require "mailerlite-ruby"
555
555
 
556
556
  # Intialize the class
557
- campaigns = Mailerlite::Campaigns.new
557
+ campaigns = MailerLite::Campaigns.new
558
558
 
559
559
  campaign_id = 123456
560
560
 
561
- response = campaigns.activity(campaign_id)
561
+ campaigns.activity(campaign_id)
562
562
  ```
563
563
 
564
564
  ## Forms
@@ -573,9 +573,9 @@ response = campaigns.activity(campaign_id)
573
573
  require "mailerlite-ruby"
574
574
 
575
575
  # Intialize the class
576
- forms = Mailerlite::Forms.new
576
+ forms = MailerLite::Forms.new
577
577
 
578
- response = forms.list(limit:10, page:1, sort:'name', filter:{'name': 'form name'})
578
+ forms.list(limit:10, page:1, sort:'name', filter:{'name': 'form name'})
579
579
  ```
580
580
 
581
581
  ### Get a form
@@ -586,11 +586,11 @@ response = forms.list(limit:10, page:1, sort:'name', filter:{'name': 'form name'
586
586
  require "mailerlite-ruby"
587
587
 
588
588
  # Intialize the class
589
- forms = Mailerlite::Forms.new
589
+ forms = MailerLite::Forms.new
590
590
 
591
591
  form_id = 123456
592
592
 
593
- response = forms.get(form_id)
593
+ forms.fetch(form_id)
594
594
  ```
595
595
 
596
596
  ### Update a form
@@ -601,9 +601,9 @@ response = forms.get(form_id)
601
601
  require "mailerlite-ruby"
602
602
 
603
603
  # Intialize the class
604
- forms = Mailerlite::Forms.new
604
+ forms = MailerLite::Forms.new
605
605
 
606
- response = forms.update(form_id:123456, name: 'My form Name')
606
+ forms.update(form_id:123456, name: 'My form Name')
607
607
  ```
608
608
 
609
609
  ### Delete a form
@@ -614,11 +614,11 @@ response = forms.update(form_id:123456, name: 'My form Name')
614
614
  require "mailerlite-ruby"
615
615
 
616
616
  # Intialize the class
617
- forms = Mailerlite::Forms.new
617
+ forms = MailerLite::Forms.new
618
618
 
619
619
  form_id = 123456
620
620
 
621
- response = forms.delete(form_id)
621
+ forms.delete(form_id)
622
622
  ```
623
623
 
624
624
  ### Get subscribers who signed up to a specific form
@@ -629,9 +629,9 @@ response = forms.delete(form_id)
629
629
  require "mailerlite-ruby"
630
630
 
631
631
  # Intialize the class
632
- forms = Mailerlite::Forms.new
632
+ forms = MailerLite::Forms.new
633
633
 
634
- response = forms.get_subscribers(form_id:123345, page:1, limit:10, filter:{'status': 'active'})
634
+ forms.fetch_subscribers(form_id:123345, page:1, limit:10, filter:{'status': 'active'})
635
635
  ```
636
636
 
637
637
  ## Batching
@@ -646,9 +646,9 @@ response = forms.get_subscribers(form_id:123345, page:1, limit:10, filter:{'stat
646
646
  require "mailerlite-ruby"
647
647
 
648
648
  # Intialize the class
649
- batch = Mailerlite::Batch.new
649
+ batch = MailerLite::Batch.new
650
650
 
651
- response = batch.request(
651
+ batch.request(
652
652
  requests: [
653
653
  { method: 'GET', path: 'api/subscribers/list' },
654
654
  { method: 'GET', path: 'api/campaigns/list' }
@@ -668,9 +668,9 @@ response = batch.request(
668
668
  require "mailerlite-ruby"
669
669
 
670
670
  # Intialize the class
671
- subscribers = Mailerlite::Subscribers.new
671
+ subscribers = MailerLite::Subscribers.new
672
672
 
673
- response = webhooks.list()
673
+ webhooks.list()
674
674
  ```
675
675
 
676
676
  ### Get a webhook
@@ -681,11 +681,11 @@ response = webhooks.list()
681
681
  require "mailerlite-ruby"
682
682
 
683
683
  # Intialize the class
684
- subscribers = Mailerlite::Subscribers.new
684
+ subscribers = MailerLite::Subscribers.new
685
685
 
686
686
  webhook_id = 123456
687
687
 
688
- response = webhooks.get(webhook_id)
688
+ webhooks.get(webhook_id)
689
689
  ```
690
690
 
691
691
  ### Create a webhook
@@ -696,9 +696,9 @@ response = webhooks.get(webhook_id)
696
696
  require "mailerlite-ruby"
697
697
 
698
698
  # Intialize the class
699
- webhooks = Mailerlite::Webhooks.new
699
+ webhooks = MailerLite::Webhooks.new
700
700
 
701
- response = webhooks.create(
701
+ webhooks.create(
702
702
  events:[
703
703
  'subscriber.created',
704
704
  'subscriber.updated',
@@ -717,9 +717,9 @@ response = webhooks.create(
717
717
  require "mailerlite-ruby"
718
718
 
719
719
  # Intialize the class
720
- webhooks = Mailerlite::Webhooks.new
720
+ webhooks = MailerLite::Webhooks.new
721
721
 
722
- response = webhooks.update(
722
+ webhooks.update(
723
723
  webhook_id: 123456,
724
724
  events:[
725
725
  'subscriber.created',
@@ -740,11 +740,11 @@ response = webhooks.update(
740
740
  require "mailerlite-ruby"
741
741
 
742
742
  # Intialize the class
743
- webhooks = Mailerlite::Webhooks.new
743
+ webhooks = MailerLite::Webhooks.new
744
744
 
745
745
  webhook_id = 123456
746
746
 
747
- response = webhooks.delete(webhook_id)
747
+ webhooks.delete(webhook_id)
748
748
  ```
749
749
 
750
750
  ## Timezones
@@ -759,9 +759,9 @@ response = webhooks.delete(webhook_id)
759
759
  require "mailerlite-ruby"
760
760
 
761
761
  # Intialize the class
762
- timezones = Mailerlite::Timezones.new
762
+ timezones = MailerLite::Timezones.new
763
763
 
764
- response = timezones.list()
764
+ timezones.list()
765
765
  ```
766
766
 
767
767
  ## Campaign languages
@@ -776,9 +776,9 @@ response = timezones.list()
776
776
  require "mailerlite-ruby"
777
777
 
778
778
  # Intialize the class
779
- campaigns = Mailerlite::Campaigns.new
779
+ campaigns = MailerLite::Campaigns.new
780
780
 
781
- response = campaigns.languages()
781
+ campaigns.languages()
782
782
  ```
783
783
 
784
784
  # Testing
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailerLite
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  end
data/lib/mailerlite.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'mailerlite/client'
4
+ require_relative 'mailerlite/version'
4
5
  require_relative 'mailerlite/subscribers/subscribers'
5
6
  require_relative 'mailerlite/campaigns/campaigns'
6
7
  require_relative 'mailerlite/forms/forms'
@@ -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.4.7'
30
+ spec.add_development_dependency 'bundler', '~> 2.4.1'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailerlite-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Milojević
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-22 00:00:00.000000000 Z
12
+ date: 2023-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.4.7
20
+ version: 2.4.1
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 2.4.7
27
+ version: 2.4.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -296,7 +296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
296
296
  - !ruby/object:Gem::Version
297
297
  version: '0'
298
298
  requirements: []
299
- rubygems_version: 3.4.6
299
+ rubygems_version: 3.4.10
300
300
  signing_key:
301
301
  specification_version: 4
302
302
  summary: MailerLite's official Ruby SDK