urbanairship 9.1.0 → 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 +4 -4
- data/.github/workflows/release.yaml +2 -3
- data/CHANGELOG +149 -106
- data/docs/push.rst +1 -0
- data/lib/urbanairship/push/payload.rb +78 -8
- data/lib/urbanairship/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8a262b36f56dcbbe4cd38fb926cff9ec835900abf5cc5564d780c3ea655fc32
|
|
4
|
+
data.tar.gz: 7ffe155e6edd97f0a8899401b3bdc68a83e7cfd46073cf430dd129116a235111
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d3aaef8a3b3dea1058a9062b84c183bd8a9d97466c4f308c200f39f691cd6f510951541e5584a0ba0359c1f41cb10a5773ce4ef21925e6b38d4e67da35f1073
|
|
7
|
+
data.tar.gz: b93ed256288f1ec16f97fd3e8bd4b0eeae0c57a1070534302c2386deb8098131e70f55fc55396f34b0e20950c4170b6f0335d2a98b9d0c8301a047b641a4f3cd
|
|
@@ -6,7 +6,6 @@ on:
|
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
8
|
test:
|
|
9
|
-
|
|
10
9
|
runs-on: ubuntu-latest
|
|
11
10
|
|
|
12
11
|
strategy:
|
|
@@ -27,5 +26,5 @@ jobs:
|
|
|
27
26
|
uses: cadwallion/publish-rubygems-action@master
|
|
28
27
|
env:
|
|
29
28
|
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
|
30
|
-
|
|
31
|
-
RELEASE_COMMAND: rake release
|
|
29
|
+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
30
|
+
RELEASE_COMMAND: rake release
|
data/CHANGELOG
CHANGED
|
@@ -1,103 +1,130 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
+
|
|
10
|
+
- Adds thread_id Support
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 9.1.0
|
|
15
|
+
|
|
4
16
|
- All requests will now automatically attempt to authenticate with bearer token auth if a
|
|
5
|
-
token is included in the instantiation of the client. Previously, only custom events requests
|
|
6
|
-
could use bearer token auth in this library. You can find more information about how to use
|
|
7
|
-
bearer token auth in the README.
|
|
8
|
-
- Also fixes an issue where a secret was required even when bearer token auth was being used
|
|
9
|
-
(it is no longer required).
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
|
|
14
27
|
- Adds Tag List API Support
|
|
15
28
|
- Removes location lookup endpoints
|
|
16
29
|
- Removes location-based audience selectors
|
|
17
30
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 8.0.1
|
|
34
|
+
|
|
21
35
|
- Adds app key to user agent string on request
|
|
22
36
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 8.0.0
|
|
40
|
+
|
|
26
41
|
- Updates officially supported versions to 2.6.7 and 2.7.2
|
|
27
42
|
- Fixes headers to reduce warning messages
|
|
28
43
|
- Fixes for multiple mis-set named user urls
|
|
29
44
|
- Fix to automatically convert an integer named user to a string so it can be successfully submitted
|
|
30
45
|
- Adds attribute support for named users
|
|
31
46
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 7.0.0
|
|
50
|
+
|
|
35
51
|
- Refactors base url naming
|
|
36
52
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 6.0.0
|
|
56
|
+
|
|
40
57
|
- Creates custom base url, and refactors urls within classes
|
|
41
58
|
- Adds support for sending custom events
|
|
42
59
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## 5.9.0
|
|
63
|
+
|
|
46
64
|
- Adds support for bearer token auth
|
|
47
65
|
- Updates broken code for static lists
|
|
48
|
-
- Adds support for update sms channel
|
|
66
|
+
- Adds support for update sms channel
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 5.8.0
|
|
49
71
|
|
|
50
|
-
--------------------
|
|
51
|
-
5.8.0
|
|
52
|
-
--------------------
|
|
53
72
|
- Adds scheudling support for PTSO
|
|
54
|
-
- Adds attribute support
|
|
73
|
+
- Adds attribute support
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 5.7.0
|
|
55
78
|
|
|
56
|
-
--------------------
|
|
57
|
-
5.7.0
|
|
58
|
-
--------------------
|
|
59
79
|
- Adds Automation support
|
|
60
80
|
- Adds A/B test support
|
|
61
81
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## 5.6.1
|
|
85
|
+
|
|
86
|
+
- Updates EmailNotification templating
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## 5.6.0
|
|
66
91
|
|
|
67
|
-
--------------------
|
|
68
|
-
5.6.0
|
|
69
|
-
--------------------
|
|
70
92
|
- Refactors EmailNotification class
|
|
71
93
|
- Adds Create and Send implementation to Open Channel class
|
|
72
94
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 5.5.1
|
|
98
|
+
|
|
99
|
+
- Updates validate_url method
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 5.5.0
|
|
77
104
|
|
|
78
|
-
--------------------
|
|
79
|
-
5.5.0
|
|
80
|
-
--------------------
|
|
81
105
|
- Add Create and Send Functionality for Email
|
|
82
106
|
- Add endpoints for Create and Send Validation and Scheduling
|
|
83
107
|
- Add Create and Send Functionality for SMS
|
|
84
108
|
- Update Rake version from 10.0 to 12.3.3
|
|
85
109
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 5.4.0
|
|
113
|
+
|
|
89
114
|
- Change BASE_URL to go.airship.com
|
|
90
115
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## 5.3.0
|
|
119
|
+
|
|
94
120
|
- Updates Sphinx version on Ruby Lib docs
|
|
95
121
|
- Fixes date in footer
|
|
96
122
|
- Updates instances of 'Urbain Airship' to 'Airship' excluding method names
|
|
97
123
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 5.2.0
|
|
127
|
+
|
|
101
128
|
- Updates automatic timeout for API request from 5 seconds to 60
|
|
102
129
|
- Adds SMS Register implementation. Register, Opt-out, Uninstall, Lookup
|
|
103
130
|
- Adds SMS Send functionality for Notification object
|
|
@@ -105,36 +132,42 @@ bearer token auth in the README.
|
|
|
105
132
|
- Adds Email Send support
|
|
106
133
|
- Adds Email Registration support
|
|
107
134
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## 5.1.0
|
|
138
|
+
|
|
111
139
|
- Adds functionality for custom logger
|
|
112
140
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## 5.0.1
|
|
144
|
+
|
|
116
145
|
- Fix bug with named user association/disassociation
|
|
117
146
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 5.0.0
|
|
150
|
+
|
|
121
151
|
- Add support for Web Notify, expand Open Platform support
|
|
122
152
|
- Removing support for Feedback API (EOL July 2018)
|
|
123
153
|
- Removing support for Device Token Count (also EOL in 2018)
|
|
124
154
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## 4.1.1
|
|
158
|
+
|
|
128
159
|
- Added configuration value for timeout.
|
|
129
160
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 4.1.0
|
|
164
|
+
|
|
133
165
|
- Added support for Open Channels
|
|
134
166
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## 4.0.0
|
|
170
|
+
|
|
138
171
|
- Added support for in-app messages
|
|
139
172
|
- Added support for iOS priority
|
|
140
173
|
- Added config class, allowing you to define log level and log location
|
|
@@ -144,41 +177,48 @@ bearer token auth in the README.
|
|
|
144
177
|
- Removed support for Blackberry and MPNS platforms
|
|
145
178
|
- Removed support for per-push reports
|
|
146
179
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## 3.2.4
|
|
183
|
+
|
|
150
184
|
- Replace unirest dependency with rest-client
|
|
151
185
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## 3.2.3
|
|
189
|
+
|
|
155
190
|
- Added support for named user audience selector
|
|
156
191
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## 3.2.2
|
|
195
|
+
|
|
160
196
|
- Bug fix: only open a single copy of the log file
|
|
161
197
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## 3.2.1
|
|
201
|
+
|
|
165
202
|
- Bug fix: allow audience tag selector to specify tag group if desired
|
|
166
203
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## 3.2.0
|
|
207
|
+
|
|
170
208
|
- Added support for static lists
|
|
171
209
|
- Added support for device tokens, APIDs, and Blackberry PINs
|
|
172
210
|
- Added support for locations
|
|
173
211
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## 3.1.1
|
|
215
|
+
|
|
177
216
|
- Changed UA to Urbanairship in client.rb to fix aliasing issue
|
|
178
217
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## 3.1.0
|
|
221
|
+
|
|
182
222
|
- Added documentation files
|
|
183
223
|
- Added support for ChannelInfo and ChannelList
|
|
184
224
|
- Added support for segments
|
|
@@ -188,19 +228,22 @@ bearer token auth in the README.
|
|
|
188
228
|
- Added support for named user
|
|
189
229
|
- Added support for reports
|
|
190
230
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## 3.0.2
|
|
234
|
+
|
|
194
235
|
- Resolve compatibility issues with Rails ActiveSupport
|
|
195
236
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## 3.0.1
|
|
240
|
+
|
|
199
241
|
- Updating Gemspec to show required Ruby Version correctly
|
|
200
242
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## 3.0.0
|
|
246
|
+
|
|
204
247
|
- added CHANGELOG
|
|
205
248
|
- rewrite with v3 support for push and scheduled push
|
|
206
249
|
- backwards incompatible with previous versions of library
|
data/docs/push.rst
CHANGED
|
@@ -218,6 +218,7 @@ platform-specific alerts, and we set a number of other platform-specific options
|
|
|
218
218
|
extra: { 'key' => 'value', 'key2' => 'value2' },
|
|
219
219
|
expiry: '2019-01-01 12:45:00',
|
|
220
220
|
category: 'category_name',
|
|
221
|
+
thread_id: 'thread_test',
|
|
221
222
|
interactive: UA.interactive(
|
|
222
223
|
type: 'ua_share',
|
|
223
224
|
button_actions: {
|
|
@@ -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)
|
|
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,
|
|
@@ -49,7 +49,9 @@ module Urbanairship
|
|
|
49
49
|
media_attachment: media_attachment,
|
|
50
50
|
title: title,
|
|
51
51
|
subtitle: subtitle,
|
|
52
|
-
collapse_id: collapse_id
|
|
52
|
+
collapse_id: collapse_id,
|
|
53
|
+
thread_id: thread_id,
|
|
54
|
+
live_activity: live_activity
|
|
53
55
|
})
|
|
54
56
|
end
|
|
55
57
|
|
|
@@ -76,7 +78,7 @@ module Urbanairship
|
|
|
76
78
|
public_notification: nil, sound: nil, priority: nil, collapse_key: nil,
|
|
77
79
|
time_to_live: nil, delivery_priority: nil, delay_while_idle: nil,
|
|
78
80
|
local_only: nil, wearable: nil, background_image: nil, extra_pages: nil,
|
|
79
|
-
interactive: nil)
|
|
81
|
+
interactive: nil, live_update: nil)
|
|
80
82
|
compact_helper({
|
|
81
83
|
title: title,
|
|
82
84
|
alert: alert,
|
|
@@ -98,7 +100,8 @@ module Urbanairship
|
|
|
98
100
|
delay_while_idle: delay_while_idle,
|
|
99
101
|
local_only: local_only,
|
|
100
102
|
wearable: wearable,
|
|
101
|
-
interactive: interactive
|
|
103
|
+
interactive: interactive,
|
|
104
|
+
live_update: live_update
|
|
102
105
|
})
|
|
103
106
|
end
|
|
104
107
|
|
|
@@ -214,10 +217,26 @@ module Urbanairship
|
|
|
214
217
|
types
|
|
215
218
|
end
|
|
216
219
|
|
|
217
|
-
#
|
|
218
|
-
def options(
|
|
219
|
-
|
|
220
|
-
|
|
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
|
|
221
240
|
|
|
222
241
|
# Actions for a Push Notification Object
|
|
223
242
|
def actions(add_tag: nil, remove_tag: nil, open_: nil, share: nil,
|
|
@@ -295,6 +314,57 @@ module Urbanairship
|
|
|
295
314
|
interactive: interactive,
|
|
296
315
|
})
|
|
297
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
|
|
298
368
|
end
|
|
299
369
|
end
|
|
300
370
|
end
|
data/lib/urbanairship/version.rb
CHANGED
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.
|
|
4
|
+
version: 9.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Airship
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|
|
@@ -215,7 +215,7 @@ licenses:
|
|
|
215
215
|
- Apache-2.0
|
|
216
216
|
metadata:
|
|
217
217
|
allowed_push_host: https://rubygems.org
|
|
218
|
-
post_install_message:
|
|
218
|
+
post_install_message:
|
|
219
219
|
rdoc_options: []
|
|
220
220
|
require_paths:
|
|
221
221
|
- lib
|
|
@@ -230,8 +230,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
230
230
|
- !ruby/object:Gem::Version
|
|
231
231
|
version: '0'
|
|
232
232
|
requirements: []
|
|
233
|
-
rubygems_version: 3.
|
|
234
|
-
signing_key:
|
|
233
|
+
rubygems_version: 3.4.10
|
|
234
|
+
signing_key:
|
|
235
235
|
specification_version: 4
|
|
236
236
|
summary: Ruby Gem for using the Airship API
|
|
237
237
|
test_files: []
|