urbanairship 9.1.1 → 9.2.0

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: 0ae923395b8a39ca5c21187a0f20a1a722e493758dd39a6896345a6982469d3a
4
- data.tar.gz: 71f45b035e2db2726b77a543e15c1538c95d88def506586413f61486f48e9b0a
3
+ metadata.gz: d8a262b36f56dcbbe4cd38fb926cff9ec835900abf5cc5564d780c3ea655fc32
4
+ data.tar.gz: 7ffe155e6edd97f0a8899401b3bdc68a83e7cfd46073cf430dd129116a235111
5
5
  SHA512:
6
- metadata.gz: 88ad9d5d947d5c545d14626cc5c02704f019077842f0349d1975c498419b812ec89f07dbd28bd91d8c36394132b42a06ac6998264b67d71bfb051416ce8185a4
7
- data.tar.gz: dfefec7dbe7349ecba36d935fab3ba1a0a88290ce527fc1b27ce47bd036b5f5526f238d7be7e5170160fe349f2dc313387e8f787f6bfebfa8a4e7cfb72c004e3
6
+ metadata.gz: 7d3aaef8a3b3dea1058a9062b84c183bd8a9d97466c4f308c200f39f691cd6f510951541e5584a0ba0359c1f41cb10a5773ce4ef21925e6b38d4e67da35f1073
7
+ data.tar.gz: b93ed256288f1ec16f97fd3e8bd4b0eeae0c57a1070534302c2386deb8098131e70f55fc55396f34b0e20950c4170b6f0335d2a98b9d0c8301a047b641a4f3cd
data/CHANGELOG CHANGED
@@ -1,108 +1,130 @@
1
- --------------------
2
- 9.1.1
3
- --------------------
1
+ ## 9.2.0
2
+
3
+ - Adds support for iOS Live Activity and Android Live Update
4
+ - Adds bypass_frequency_limits, bypass_holdout_groups, no_throttle, omit_from_activity_log, personalization, redact_payload parameters for push options
5
+
6
+ ---
7
+
8
+ ## 9.1.1
9
+
4
10
  - Adds thread_id Support
5
11
 
6
- --------------------
7
- 9.1.0
8
- --------------------
12
+ ---
13
+
14
+ ## 9.1.0
15
+
9
16
  - All requests will now automatically attempt to authenticate with bearer token auth if a
10
- token is included in the instantiation of the client. Previously, only custom events requests
11
- could use bearer token auth in this library. You can find more information about how to use
12
- bearer token auth in the README.
13
- - Also fixes an issue where a secret was required even when bearer token auth was being used
14
- (it is no longer required).
15
-
16
- --------------------
17
- 9.0.0
18
- --------------------
17
+ token is included in the instantiation of the client. Previously, only custom events requests
18
+ could use bearer token auth in this library. You can find more information about how to use
19
+ bearer token auth in the README.
20
+ - Also fixes an issue where a secret was required even when bearer token auth was being used
21
+ (it is no longer required).
22
+
23
+ ---
24
+
25
+ ## 9.0.0
26
+
19
27
  - Adds Tag List API Support
20
28
  - Removes location lookup endpoints
21
29
  - Removes location-based audience selectors
22
30
 
23
- --------------------
24
- 8.0.1
25
- --------------------
31
+ ---
32
+
33
+ ## 8.0.1
34
+
26
35
  - Adds app key to user agent string on request
27
36
 
28
- --------------------
29
- 8.0.0
30
- --------------------
37
+ ---
38
+
39
+ ## 8.0.0
40
+
31
41
  - Updates officially supported versions to 2.6.7 and 2.7.2
32
42
  - Fixes headers to reduce warning messages
33
43
  - Fixes for multiple mis-set named user urls
34
44
  - Fix to automatically convert an integer named user to a string so it can be successfully submitted
35
45
  - Adds attribute support for named users
36
46
 
37
- --------------------
38
- 7.0.0
39
- --------------------
47
+ ---
48
+
49
+ ## 7.0.0
50
+
40
51
  - Refactors base url naming
41
52
 
42
- --------------------
43
- 6.0.0
44
- --------------------
53
+ ---
54
+
55
+ ## 6.0.0
56
+
45
57
  - Creates custom base url, and refactors urls within classes
46
58
  - Adds support for sending custom events
47
59
 
48
- --------------------
49
- 5.9.0
50
- --------------------
60
+ ---
61
+
62
+ ## 5.9.0
63
+
51
64
  - Adds support for bearer token auth
52
65
  - Updates broken code for static lists
53
- - Adds support for update sms channel
66
+ - Adds support for update sms channel
67
+
68
+ ---
69
+
70
+ ## 5.8.0
54
71
 
55
- --------------------
56
- 5.8.0
57
- --------------------
58
72
  - Adds scheudling support for PTSO
59
- - Adds attribute support
73
+ - Adds attribute support
74
+
75
+ ---
76
+
77
+ ## 5.7.0
60
78
 
61
- --------------------
62
- 5.7.0
63
- --------------------
64
79
  - Adds Automation support
65
80
  - Adds A/B test support
66
81
 
67
- --------------------
68
- 5.6.1
69
- --------------------
70
- - Updates EmailNotification templating
82
+ ---
83
+
84
+ ## 5.6.1
85
+
86
+ - Updates EmailNotification templating
87
+
88
+ ---
89
+
90
+ ## 5.6.0
71
91
 
72
- --------------------
73
- 5.6.0
74
- --------------------
75
92
  - Refactors EmailNotification class
76
93
  - Adds Create and Send implementation to Open Channel class
77
94
 
78
- --------------------
79
- 5.5.1
80
- --------------------
81
- - Updates validate_url method
95
+ ---
96
+
97
+ ## 5.5.1
98
+
99
+ - Updates validate_url method
100
+
101
+ ---
102
+
103
+ ## 5.5.0
82
104
 
83
- --------------------
84
- 5.5.0
85
- --------------------
86
105
  - Add Create and Send Functionality for Email
87
106
  - Add endpoints for Create and Send Validation and Scheduling
88
107
  - Add Create and Send Functionality for SMS
89
108
  - Update Rake version from 10.0 to 12.3.3
90
109
 
91
- --------------------
92
- 5.4.0
93
- --------------------
110
+ ---
111
+
112
+ ## 5.4.0
113
+
94
114
  - Change BASE_URL to go.airship.com
95
115
 
96
- --------------------
97
- 5.3.0
98
- --------------------
116
+ ---
117
+
118
+ ## 5.3.0
119
+
99
120
  - Updates Sphinx version on Ruby Lib docs
100
121
  - Fixes date in footer
101
122
  - Updates instances of 'Urbain Airship' to 'Airship' excluding method names
102
123
 
103
- --------------------
104
- 5.2.0
105
- --------------------
124
+ ---
125
+
126
+ ## 5.2.0
127
+
106
128
  - Updates automatic timeout for API request from 5 seconds to 60
107
129
  - Adds SMS Register implementation. Register, Opt-out, Uninstall, Lookup
108
130
  - Adds SMS Send functionality for Notification object
@@ -110,36 +132,42 @@ bearer token auth in the README.
110
132
  - Adds Email Send support
111
133
  - Adds Email Registration support
112
134
 
113
- --------------------
114
- 5.1.0
115
- --------------------
135
+ ---
136
+
137
+ ## 5.1.0
138
+
116
139
  - Adds functionality for custom logger
117
140
 
118
- --------------------
119
- 5.0.1
120
- --------------------
141
+ ---
142
+
143
+ ## 5.0.1
144
+
121
145
  - Fix bug with named user association/disassociation
122
146
 
123
- --------------------
124
- 5.0.0
125
- --------------------
147
+ ---
148
+
149
+ ## 5.0.0
150
+
126
151
  - Add support for Web Notify, expand Open Platform support
127
152
  - Removing support for Feedback API (EOL July 2018)
128
153
  - Removing support for Device Token Count (also EOL in 2018)
129
154
 
130
- --------------------
131
- 4.1.1
132
- --------------------
155
+ ---
156
+
157
+ ## 4.1.1
158
+
133
159
  - Added configuration value for timeout.
134
160
 
135
- --------------------
136
- 4.1.0
137
- --------------------
161
+ ---
162
+
163
+ ## 4.1.0
164
+
138
165
  - Added support for Open Channels
139
166
 
140
- --------------------
141
- 4.0.0
142
- --------------------
167
+ ---
168
+
169
+ ## 4.0.0
170
+
143
171
  - Added support for in-app messages
144
172
  - Added support for iOS priority
145
173
  - Added config class, allowing you to define log level and log location
@@ -149,41 +177,48 @@ bearer token auth in the README.
149
177
  - Removed support for Blackberry and MPNS platforms
150
178
  - Removed support for per-push reports
151
179
 
152
- --------------------
153
- 3.2.4
154
- --------------------
180
+ ---
181
+
182
+ ## 3.2.4
183
+
155
184
  - Replace unirest dependency with rest-client
156
185
 
157
- --------------------
158
- 3.2.3
159
- --------------------
186
+ ---
187
+
188
+ ## 3.2.3
189
+
160
190
  - Added support for named user audience selector
161
191
 
162
- --------------------
163
- 3.2.2
164
- --------------------
192
+ ---
193
+
194
+ ## 3.2.2
195
+
165
196
  - Bug fix: only open a single copy of the log file
166
197
 
167
- --------------------
168
- 3.2.1
169
- --------------------
198
+ ---
199
+
200
+ ## 3.2.1
201
+
170
202
  - Bug fix: allow audience tag selector to specify tag group if desired
171
203
 
172
- --------------------
173
- 3.2.0
174
- --------------------
204
+ ---
205
+
206
+ ## 3.2.0
207
+
175
208
  - Added support for static lists
176
209
  - Added support for device tokens, APIDs, and Blackberry PINs
177
210
  - Added support for locations
178
211
 
179
- --------------------
180
- 3.1.1
181
- --------------------
212
+ ---
213
+
214
+ ## 3.1.1
215
+
182
216
  - Changed UA to Urbanairship in client.rb to fix aliasing issue
183
217
 
184
- --------------------
185
- 3.1.0
186
- --------------------
218
+ ---
219
+
220
+ ## 3.1.0
221
+
187
222
  - Added documentation files
188
223
  - Added support for ChannelInfo and ChannelList
189
224
  - Added support for segments
@@ -193,19 +228,22 @@ bearer token auth in the README.
193
228
  - Added support for named user
194
229
  - Added support for reports
195
230
 
196
- --------------------
197
- 3.0.2
198
- --------------------
231
+ ---
232
+
233
+ ## 3.0.2
234
+
199
235
  - Resolve compatibility issues with Rails ActiveSupport
200
236
 
201
- --------------------
202
- 3.0.1
203
- --------------------
237
+ ---
238
+
239
+ ## 3.0.1
240
+
204
241
  - Updating Gemspec to show required Ruby Version correctly
205
242
 
206
- --------------------
207
- 3.0.0
208
- --------------------
243
+ ---
244
+
245
+ ## 3.0.0
246
+
209
247
  - added CHANGELOG
210
248
  - rewrite with v3 support for push and scheduled push
211
249
  - backwards incompatible with previous versions of library
@@ -34,7 +34,7 @@ module Urbanairship
34
34
  def ios(alert: nil, badge: nil, sound: nil, content_available: nil,
35
35
  extra: nil, expiry: nil, priority: nil, category: nil,
36
36
  interactive: nil, mutable_content: nil, media_attachment: nil,
37
- title: nil, subtitle: nil, collapse_id: nil, thread_id: nil)
37
+ title: nil, subtitle: nil, collapse_id: nil, thread_id: nil, live_activity: nil)
38
38
  compact_helper({
39
39
  alert: alert,
40
40
  badge: badge,
@@ -50,7 +50,8 @@ module Urbanairship
50
50
  title: title,
51
51
  subtitle: subtitle,
52
52
  collapse_id: collapse_id,
53
- thread_id: thread_id
53
+ thread_id: thread_id,
54
+ live_activity: live_activity
54
55
  })
55
56
  end
56
57
 
@@ -77,7 +78,7 @@ module Urbanairship
77
78
  public_notification: nil, sound: nil, priority: nil, collapse_key: nil,
78
79
  time_to_live: nil, delivery_priority: nil, delay_while_idle: nil,
79
80
  local_only: nil, wearable: nil, background_image: nil, extra_pages: nil,
80
- interactive: nil)
81
+ interactive: nil, live_update: nil)
81
82
  compact_helper({
82
83
  title: title,
83
84
  alert: alert,
@@ -99,7 +100,8 @@ module Urbanairship
99
100
  delay_while_idle: delay_while_idle,
100
101
  local_only: local_only,
101
102
  wearable: wearable,
102
- interactive: interactive
103
+ interactive: interactive,
104
+ live_update: live_update
103
105
  })
104
106
  end
105
107
 
@@ -215,10 +217,26 @@ module Urbanairship
215
217
  types
216
218
  end
217
219
 
218
- # Expiry for a Rich Message
219
- def options(expiry: required('expiry'))
220
- { expiry: expiry }
221
- end
220
+ # Options for a message
221
+ def options(
222
+ expiry: nil,
223
+ bypass_frequency_limits: nil,
224
+ bypass_holdout_groups: nil,
225
+ no_throttle: nil,
226
+ omit_from_activity_log: nil,
227
+ personalization: nil,
228
+ redact_payload: nil
229
+ )
230
+ compact_helper(
231
+ expiry: expiry,
232
+ bypass_frequency_limits: bypass_frequency_limits,
233
+ bypass_holdout_groups: bypass_holdout_groups,
234
+ no_throttle: no_throttle,
235
+ omit_from_activity_log: omit_from_activity_log,
236
+ personalization: personalization,
237
+ redact_payload: redact_payload
238
+ )
239
+ end
222
240
 
223
241
  # Actions for a Push Notification Object
224
242
  def actions(add_tag: nil, remove_tag: nil, open_: nil, share: nil,
@@ -296,6 +314,57 @@ module Urbanairship
296
314
  interactive: interactive,
297
315
  })
298
316
  end
317
+
318
+ # iOS Live Activity
319
+ def live_activity(
320
+ event: required('event'),
321
+ alert: nil,
322
+ name: required('name'),
323
+ priority: nil,
324
+ content_state: nil,
325
+ relevance_score: nil,
326
+ stale_date: nil,
327
+ dismissal_date: nil,
328
+ timestamp: nil
329
+ )
330
+ valid_events = ['update', 'end']
331
+ fail ArgumentError, 'Invalid event type' unless valid_events.include?(event)
332
+ fail ArgumentError, 'priority must be 5 or 10' if priority && ![5, 10].include?(priority)
333
+
334
+ compact_helper({
335
+ event: event,
336
+ alert: alert,
337
+ name: name,
338
+ priority: priority,
339
+ content_state: content_state,
340
+ relevance_score: relevance_score,
341
+ stale_date: stale_date,
342
+ dismissal_date: dismissal_date,
343
+ timestamp: timestamp
344
+ })
345
+ end
346
+
347
+ # Android Live Update
348
+ def live_update(
349
+ event: required('event'),
350
+ name: required('name'),
351
+ content_state: nil,
352
+ type: nil,
353
+ dismissal_date: nil,
354
+ timestamp: nil
355
+ )
356
+ valid_events = ['start', 'update', 'end']
357
+ fail ArgumentError, 'Invalid event type' unless valid_events.include?(event)
358
+
359
+ compact_helper({
360
+ event: event,
361
+ name: name,
362
+ content_state: content_state,
363
+ type: type,
364
+ dismissal_date: dismissal_date,
365
+ timestamp: timestamp
366
+ })
367
+ end
299
368
  end
300
369
  end
301
370
  end
@@ -1,3 +1,3 @@
1
1
  module Urbanairship
2
- VERSION = '9.1.1'
2
+ VERSION = '9.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanairship
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.1.1
4
+ version: 9.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airship
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-11 00:00:00.000000000 Z
11
+ date: 2023-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client