iterable-ruby 0.5.2 → 0.5.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
  SHA1:
3
- metadata.gz: 63ab6c03b91c8e33610eae2a645bca630b1deeb8
4
- data.tar.gz: e5eedb726af846fbd27696b746506afdc79d85ec
3
+ metadata.gz: 778c0ceb85ae4368cb1b8b93aad38ba255c59a29
4
+ data.tar.gz: 6c6bd27f3cd9dae99ffef961e8c6dfecea127371
5
5
  SHA512:
6
- metadata.gz: 3aa741d85bf1afde9466aa6c2be65a679889c2f77cfab7584f3562e2dfec720bbba84d015507cc19ce023bfcec9967d3442320c8d26e9b350feadaa70507d5d6
7
- data.tar.gz: 35ed79fb85108519bcc329d0f9f091d5d749bbc656105bedbda20b1aab94334b59036b5aea7dd831b1db3d782e5a1dc1bd213843f166eb7ae3aded79bad72f02
6
+ metadata.gz: ceff3a5703d051e78593e4a292b9aff28fbcf03f48f24d0c931e64c9dfa6a50a1f4d7c078e9ebe8862843ed0acbfaa114c412486a1efa3fa3c28155637436941
7
+ data.tar.gz: 0afde1dca3ce3c8ec61176437a953a5ab38eb1dfbf8fd550273c31c4f6a64cdd6baef061f9a464695f6c1d41ddfeece62bbdc742db67ed704f636488dff69cc4
@@ -82,10 +82,10 @@ module Iterable
82
82
  Services::UserService.update_subscription(subscription_request)
83
83
  end
84
84
 
85
- def unsubscribe_all(email)
85
+ def unsubscribe_all(email, preloaded_message_types=nil)
86
86
  if !email.blank?
87
87
  # Get all message types
88
- iterable_message_types = message_types
88
+ iterable_message_types = preloaded_message_types ? preloaded_message_types : message_types
89
89
  if iterable_message_types && iterable_message_types["messageTypes"]
90
90
  message_type_ids = iterable_message_types["messageTypes"].collect { |message_type| message_type["id"] }
91
91
  channel_ids = iterable_message_types["messageTypes"].collect { |message_type| message_type["channelId"] }
@@ -1,3 +1,3 @@
1
1
  module Iterable
2
- VERSION = "0.5.2".freeze
2
+ VERSION = "0.5.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iterable-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iterable
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-12-11 00:00:00.000000000 Z
13
+ date: 2017-12-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client