cirro-ruby-client 2.0.0 → 2.0.1

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: c6f840761d7276eb20c0fe1b6fd52eb8d4bb7752905b390e13fb41878749ad9d
4
- data.tar.gz: 39a164fcca5006eb8216bda852c9d39fcf470af6d2ac1f8e6e1c3c076dfdf9ea
3
+ metadata.gz: 76097208caab26d55fe43bc4ca78e868d65c7fbd0aa0ab172cf76fbe51b769dc
4
+ data.tar.gz: 4e5db26e12fc65b9a8bb0da9a75ce846d9d8f5a0054f8cca47fe2ded2830a458
5
5
  SHA512:
6
- metadata.gz: 388fc09b1a3a4172c1db748a388821a4ff8187df8e716d0daaa747dd37683b4c3dbf7dd3d8b6203c482f3790ed22f7f736ebee289ac9edbbffb2b07f55808560
7
- data.tar.gz: dc18388fda39c84bc201d0ee77ea0dd772e266c48f27975e8fe53597bb2f1e74916ad17cb257e4bbe4defa72377207d93b053f04f6c7ab7f8963eb6f08fdac99
6
+ metadata.gz: c7af16a9900b76331bc9c248f8b22ca38f6e34b8affc1cbf54cf8d60eed55b915315b84e09bf654bc82b0a15ceb79cefbba8d88b3f1901739d87a57a0f000df8
7
+ data.tar.gz: 2299039507bef30f4bc613faf0107f2dec238c113903b92213f9f248d84ef276c6c4e5b31484c3b3839249de308afdabcb8e9ed8ffbfb173e03bc314aaaa31c8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirro-ruby-client (2.0.0)
4
+ cirro-ruby-client (2.0.1)
5
5
  activesupport
6
6
  faraday (< 1.2.0)
7
7
  faraday_middleware
@@ -43,7 +43,7 @@ GEM
43
43
  faraday (>= 0.15.2, < 2.0)
44
44
  faraday_middleware (>= 0.9.0, < 2.0)
45
45
  rack (>= 0.2)
46
- jwt (2.2.3)
46
+ jwt (2.3.0)
47
47
  method_source (1.0.0)
48
48
  minitest (5.15.0)
49
49
  multipart-post (2.1.1)
@@ -110,4 +110,4 @@ DEPENDENCIES
110
110
  webmock
111
111
 
112
112
  BUNDLED WITH
113
- 2.2.25
113
+ 2.3.4
data/README.md CHANGED
@@ -112,7 +112,7 @@ preference.locale
112
112
  # => 'de'
113
113
 
114
114
  preference.channels
115
- # => Array of NotificationChannelPreference objects
115
+ # => Array of NotificationTopicPreference objects
116
116
  ```
117
117
 
118
118
  ### Update notification preferences for a user
@@ -288,30 +288,30 @@ client.NotificationLayoutTemplate.update(
288
288
  client.NotificationLayoutTemplate.delete('1')
289
289
  ```
290
290
 
291
- ## Notification Channel
292
- ### List all notification channels
291
+ ## Notification Topic
292
+ ### List all notification topics
293
293
 
294
294
  ```ruby
295
- list = client.NotificationChannel
295
+ list = client.NotificationTopic
296
296
  # => ListObject
297
297
 
298
298
  list.has_more?
299
299
  # => true
300
300
 
301
301
  list.data
302
- # => Array of NotificationChannel objects
302
+ # => Array of NotificationTopic objects
303
303
 
304
304
  # filter by layout_id
305
- client.NotificationChannel.list(notification_layout_id: 1)
305
+ client.NotificationTopic.list(notification_layout_id: 1)
306
306
 
307
307
  # pagination
308
- client.NotificationChannel.list(limit: 10, after: 10)
308
+ client.NotificationTopic.list(limit: 10, after: 10)
309
309
  ```
310
310
 
311
311
  ### Create a notification channel
312
312
 
313
313
  ```ruby
314
- client.NotificationChannel.create(
314
+ client.NotificationTopic.create(
315
315
  name: 'new_bug_comment',
316
316
  notification_layout_id: 1,
317
317
  preferences: {
@@ -374,23 +374,23 @@ client.NotificationTemplate.delete('1')
374
374
  ### List all
375
375
 
376
376
  ```ruby
377
- list = client.NotificationChannelPreference.list
377
+ list = client.NotificationTopicPreference.list
378
378
  # => ListObject
379
379
 
380
380
  list.has_more?
381
381
  # => true
382
382
 
383
383
  list.data
384
- # => Array of NotificationChannelPreference objects
384
+ # => Array of NotificationTopicPreference objects
385
385
 
386
386
  # filter by channel id
387
- client.NotificationChannelPreference.list(notification_channel_id: 1)
387
+ client.NotificationTopicPreference.list(notification_channel_id: 1)
388
388
 
389
389
  # filter by user id
390
- client.NotificationChannelPreference.list(user_id: 1)
390
+ client.NotificationTopicPreference.list(user_id: 1)
391
391
 
392
392
  # pagination
393
- client.NotificationChannelPreference.list(limit: 10, after: 10)
393
+ client.NotificationTopicPreference.list(limit: 10, after: 10)
394
394
  ```
395
395
 
396
396
  ## Notifcation Broadcast
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Style/MutableConstant
2
2
  module CirroIO
3
3
  module Client
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
6
6
  end
7
7
  # rubocop:enable Style/MutableConstant
@@ -98,7 +98,11 @@ module CirroIOV2
98
98
  end
99
99
 
100
100
  def NotificationTemplate
101
- Resources::NotificationTemplate.new(self)
101
+ Resources::NotificationTopic.new(self)
102
+ end
103
+
104
+ def NotificationTopic
105
+ Resources::NotificationTopic.new(self)
102
106
  end
103
107
 
104
108
  # rubocop:enable Naming/MethodName
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cirro-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cirro Dev Team