iterable-ruby 0.5.1 → 0.5.2

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: 7661fd73d8df9f2f34bb1075efa532ddbd4971e1
4
- data.tar.gz: 037a1da51b3dfd95ee83a958c0ca6d8bf23f110c
3
+ metadata.gz: 63ab6c03b91c8e33610eae2a645bca630b1deeb8
4
+ data.tar.gz: e5eedb726af846fbd27696b746506afdc79d85ec
5
5
  SHA512:
6
- metadata.gz: 2bfdef2de02fa49e8dbe32df3eeb8aadfd1ebe18843aa1e8d4da44297287a39286f1ea383f0e86c6db3a821fbc4d1e86c139fcf6d80a2972ee501b25d96cee36
7
- data.tar.gz: b183f4404798332f46d92ac82631d95010253f6a2c2376d7ff8038b2efe4f8378d0543a633fba09a2448674db544b93fcecf8c235eca2e42e405723d55a8bb2a
6
+ metadata.gz: 3aa741d85bf1afde9466aa6c2be65a679889c2f77cfab7584f3562e2dfec720bbba84d015507cc19ce023bfcec9967d3442320c8d26e9b350feadaa70507d5d6
7
+ data.tar.gz: 35ed79fb85108519bcc329d0f9f091d5d749bbc656105bedbda20b1aab94334b59036b5aea7dd831b1db3d782e5a1dc1bd213843f166eb7ae3aded79bad72f02
@@ -88,10 +88,12 @@ module Iterable
88
88
  iterable_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
+ channel_ids = iterable_message_types["messageTypes"].collect { |message_type| message_type["channelId"] }
91
92
  if !message_type_ids.blank?
92
93
  subscription_request = Iterable::Requests::SubscriptionUpdate.new({
93
94
  email: email,
94
- unsubscribedMessageTypeIds: message_type_ids
95
+ unsubscribedMessageTypeIds: message_type_ids,
96
+ unsubscribedChannelIds: channel_ids
95
97
  })
96
98
  user_update_subscriptions(subscription_request)
97
99
  end
@@ -1,3 +1,3 @@
1
1
  module Iterable
2
- VERSION = "0.5.1".freeze
2
+ VERSION = "0.5.2".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.1
4
+ version: 0.5.2
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-09-12 00:00:00.000000000 Z
13
+ date: 2017-12-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client