urbanairship 5.2.0 → 9.3.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.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CONTRIBUTING.md +1 -1
  3. data/.github/ISSUE_TEMPLATE.md +2 -2
  4. data/.github/PULL_REQUEST_TEMPLATE.md +9 -4
  5. data/.github/SUPPORT.md +3 -3
  6. data/.github/workflows/ci.yaml +26 -0
  7. data/.github/workflows/release.yaml +30 -0
  8. data/.gitignore +2 -0
  9. data/CHANGELOG +198 -51
  10. data/LICENSE +1 -1
  11. data/README.rst +159 -57
  12. data/docs/ab_tests.rst +162 -0
  13. data/docs/attributes.rst +73 -0
  14. data/docs/automations.rst +212 -0
  15. data/docs/channel_uninstall.rst +1 -1
  16. data/docs/conf.py +11 -6
  17. data/docs/create_and_send.rst +551 -0
  18. data/docs/devices.rst +1 -1
  19. data/docs/examples.rst +10 -10
  20. data/docs/index.rst +23 -19
  21. data/docs/named_user.rst +27 -5
  22. data/docs/push.rst +37 -18
  23. data/docs/reports.rst +9 -9
  24. data/docs/segment.rst +5 -5
  25. data/docs/sms.rst +19 -0
  26. data/docs/static_lists.rst +4 -4
  27. data/docs/tag_lists.rst +76 -0
  28. data/docs/tags.rst +1 -1
  29. data/example/pusher.rb +3 -7
  30. data/lib/urbanairship/ab_tests/ab_test.rb +88 -0
  31. data/lib/urbanairship/ab_tests/experiment.rb +45 -0
  32. data/lib/urbanairship/ab_tests/variant.rb +34 -0
  33. data/lib/urbanairship/automations/automation.rb +105 -0
  34. data/lib/urbanairship/automations/pipeline.rb +52 -0
  35. data/lib/urbanairship/client.rb +57 -14
  36. data/lib/urbanairship/common.rb +110 -41
  37. data/lib/urbanairship/configuration.rb +3 -1
  38. data/lib/urbanairship/custom_events/custom_event.rb +60 -0
  39. data/lib/urbanairship/custom_events/payload.rb +89 -0
  40. data/lib/urbanairship/devices/attribute.rb +54 -0
  41. data/lib/urbanairship/devices/attributes.rb +53 -0
  42. data/lib/urbanairship/devices/channel_tags.rb +2 -2
  43. data/lib/urbanairship/devices/channel_uninstall.rb +10 -10
  44. data/lib/urbanairship/devices/create_and_send.rb +96 -0
  45. data/lib/urbanairship/devices/devicelist.rb +28 -7
  46. data/lib/urbanairship/devices/email.rb +33 -43
  47. data/lib/urbanairship/devices/email_notification.rb +92 -0
  48. data/lib/urbanairship/devices/mms_notification.rb +107 -0
  49. data/lib/urbanairship/devices/named_user.rb +22 -12
  50. data/lib/urbanairship/devices/open_channel.rb +105 -61
  51. data/lib/urbanairship/devices/segment.rb +10 -15
  52. data/lib/urbanairship/devices/sms.rb +51 -23
  53. data/lib/urbanairship/devices/sms_notification.rb +54 -0
  54. data/lib/urbanairship/devices/static_lists.rb +18 -19
  55. data/lib/urbanairship/devices/tag_lists.rb +82 -0
  56. data/lib/urbanairship/oauth.rb +129 -0
  57. data/lib/urbanairship/push/audience.rb +0 -61
  58. data/lib/urbanairship/push/payload.rb +78 -8
  59. data/lib/urbanairship/push/push.rb +23 -13
  60. data/lib/urbanairship/push/schedule.rb +9 -0
  61. data/lib/urbanairship/reports/response_statistics.rb +42 -31
  62. data/lib/urbanairship/version.rb +1 -1
  63. data/lib/urbanairship.rb +20 -1
  64. data/urbanairship.gemspec +8 -6
  65. metadata +74 -15
  66. data/.travis.yml +0 -4
  67. data/docs/location.rst +0 -127
  68. data/lib/urbanairship/push/location.rb +0 -103
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0a8f54aa42d65833b2a8082b5c1d8f9e9f45e3b6665c4eae63046257a4961d8
4
- data.tar.gz: 4951fed75673d26690e4098e76c6408fc1f370b10b11b8c0759eef7cabb408a5
3
+ metadata.gz: 4eec597e4717d02b44f452c7d1d634402e5957d5fe9df6a9cf052e3bb30d9357
4
+ data.tar.gz: 14be54ad8f59edcaa4ce0bfead99249571aa0f6c81d766956886abe994482a5f
5
5
  SHA512:
6
- metadata.gz: f60e2227e91e5f0fc9765756a5aebb379f70c9db7048720bff76e505ebb83d201c726461964e7796a49be10d2aa6f2ff767f116e23c64b3d56ae2699078bae86
7
- data.tar.gz: 467c82df1874d9e84ffb65d20a20977f4f2fc016a39d41e3311fec5b17911d7c168103a7ab4275af676bf0f55ff21bc073ce42cfbc0427eaf43b2e8ad8359ca3
6
+ metadata.gz: 01f091cd844d9dfc38ea6104d4a37aef5afabff3b7ee5bc9c3fc479c492a8dc15c3dbdf71a675c77c6d4138559cdee206dc505438c2c3dabc2b6e7487287add6
7
+ data.tar.gz: 9f5706357ceec8f731412fa966ec40f75ad07e0dec229e2673e56793ebfe382e6e01791ba3fc6ee3e024bbc410cca22de527f222c50ebdf013aa5488298d7839
@@ -6,6 +6,6 @@ The Contributor License Agreement (CLA) below is to ensure that when someone con
6
6
 
7
7
  Please read through the agreement at the URL below.
8
8
 
9
- If you have questions about this agreement or why we need it please contact us at https://support.urbanairship.com/.
9
+ If you have questions about this agreement or why we need it please contact us at https://support.airship.com/.
10
10
 
11
11
  [Contribution Agreement](https://docs.google.com/forms/d/e/1FAIpQLScErfiz-fXSPpVZ9r8Di2Tr2xDFxt5MgzUel0__9vqUgvko7Q/viewform)
@@ -1,6 +1,6 @@
1
- We only accept issues for bug reporting purposes.
1
+ **All bugs, feature requests, implementation concerns or general queries should be sent to our [support team](https://support.airship.com/).**
2
2
 
3
- **All feature requests, implementation concerns or general queries should be sent to our [support team](https://support.urbanairship.com/).**
3
+ You are welcome to submit an issue here for bugs, but please also reach out to our support team as well.
4
4
 
5
5
  Before completing the form below, please check the following:
6
6
 
@@ -1,3 +1,8 @@
1
+ **If you want your PR addressed quickly, please also reach out to our [support team](https://support.airship.com/)
2
+ so we can understand when you need it reviewed and how it is impacting your use of our services.** We also generally
3
+ will not release new versions of our library without new feature support, a bug fix, or a clear reason from a customer
4
+ why an update is required to minimize how often other customers need to update.
5
+
1
6
  ### What does this do and why?
2
7
  Please include link to open issue if applicable.
3
8
 
@@ -10,13 +15,13 @@ Please include link to open issue if applicable.
10
15
 
11
16
  * I've tested for Ruby versions:
12
17
 
13
- - [ ] 2.2.5
14
- - [ ] 2.3.1
18
+ - [ ] 2.6.7
19
+ - [ ] 2.7.3
15
20
 
16
- ### Urban Airship Contribution Agreement
21
+ ### Airship Contribution Agreement
17
22
  [Link here](https://docs.google.com/forms/d/e/1FAIpQLScErfiz-fXSPpVZ9r8Di2Tr2xDFxt5MgzUel0__9vqUgvko7Q/viewform)
18
23
 
19
- - [ ] I've filled out and signed UA's contribution agreement form.
24
+ - [ ] I've filled out and signed Airship's contribution agreement form.
20
25
 
21
26
  ### Screenshots
22
27
  * If applicable
data/.github/SUPPORT.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Support Requests
2
2
 
3
- All requests for support including implementation support and feature requests are made to the Urban Airship support team.
3
+ All requests for support including implementation support and feature requests are made to the Airship support team.
4
4
 
5
- You can contact them by visiting https://support.urbanairship.com/
5
+ You can contact them by visiting https://support.airship.com/
6
6
 
7
7
  # Documentation
8
8
 
9
9
  Documentation for the library can be found here:
10
- https://docs.urbanairship.com/reference/libraries/ruby/
10
+ https://docs.airship.com/api/libraries/ruby/
@@ -0,0 +1,26 @@
1
+ name: Ruby Build
2
+
3
+ on: [ push ]
4
+
5
+ jobs:
6
+ test:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ strategy:
11
+ matrix:
12
+ ruby-version: [2.7.3, 2.6.7]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Ruby ${{ matrix.ruby-version }}
17
+ uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
18
+ with:
19
+ ruby-version: ${{ matrix.ruby-version }}
20
+ bundler: none
21
+ - name: Install bundler 2.4
22
+ run: gem install bundler -v 2.4.22
23
+ - name: Install dependencies
24
+ run: bundle install
25
+ - name: Run tests
26
+ run: bundle exec rake
@@ -0,0 +1,30 @@
1
+ name: Ruby Release
2
+
3
+ on:
4
+ release:
5
+ types: [released]
6
+
7
+ jobs:
8
+ test:
9
+ runs-on: ubuntu-latest
10
+
11
+ strategy:
12
+ matrix:
13
+ ruby-version: [2.7.3, 2.6.7]
14
+
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: Set up Ruby ${{ matrix.ruby-version }}
18
+ uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
19
+ with:
20
+ ruby-version: ${{ matrix.ruby-version }}
21
+ - name: Install dependencies
22
+ run: bundle install
23
+ - name: Run tests
24
+ run: bundle exec rake
25
+ - name: Publish to RubyGems
26
+ uses: cadwallion/publish-rubygems-action@master
27
+ env:
28
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
29
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
30
+ RELEASE_COMMAND: rake release
data/.gitignore CHANGED
@@ -9,6 +9,8 @@
9
9
  /pkg/
10
10
  /spec/reports/
11
11
  /tmp/
12
+ /csv_file
13
+ .vscode/
12
14
 
13
15
  # App
14
16
  urbanairship.log
data/CHANGELOG CHANGED
@@ -1,6 +1,137 @@
1
- --------------------
2
- 5.2.0
3
- --------------------
1
+ ## 9.3.0
2
+
3
+ - Adds Oauth support
4
+ - Changes default base URL from "go.airship.com" to "api.asnapius.com"
5
+
6
+ ---
7
+
8
+ ## 9.2.0
9
+
10
+ - Adds support for iOS Live Activity and Android Live Update
11
+ - Adds bypass_frequency_limits, bypass_holdout_groups, no_throttle, omit_from_activity_log, personalization, redact_payload parameters for push options
12
+
13
+ ---
14
+
15
+ ## 9.1.1
16
+
17
+ - Adds thread_id Support
18
+
19
+ ---
20
+
21
+ ## 9.1.0
22
+
23
+ - All requests will now automatically attempt to authenticate with bearer token auth if a
24
+ token is included in the instantiation of the client. Previously, only custom events requests
25
+ could use bearer token auth in this library. You can find more information about how to use
26
+ bearer token auth in the README.
27
+ - Also fixes an issue where a secret was required even when bearer token auth was being used
28
+ (it is no longer required).
29
+
30
+ ---
31
+
32
+ ## 9.0.0
33
+
34
+ - Adds Tag List API Support
35
+ - Removes location lookup endpoints
36
+ - Removes location-based audience selectors
37
+
38
+ ---
39
+
40
+ ## 8.0.1
41
+
42
+ - Adds app key to user agent string on request
43
+
44
+ ---
45
+
46
+ ## 8.0.0
47
+
48
+ - Updates officially supported versions to 2.6.7 and 2.7.2
49
+ - Fixes headers to reduce warning messages
50
+ - Fixes for multiple mis-set named user urls
51
+ - Fix to automatically convert an integer named user to a string so it can be successfully submitted
52
+ - Adds attribute support for named users
53
+
54
+ ---
55
+
56
+ ## 7.0.0
57
+
58
+ - Refactors base url naming
59
+
60
+ ---
61
+
62
+ ## 6.0.0
63
+
64
+ - Creates custom base url, and refactors urls within classes
65
+ - Adds support for sending custom events
66
+
67
+ ---
68
+
69
+ ## 5.9.0
70
+
71
+ - Adds support for bearer token auth
72
+ - Updates broken code for static lists
73
+ - Adds support for update sms channel
74
+
75
+ ---
76
+
77
+ ## 5.8.0
78
+
79
+ - Adds scheudling support for PTSO
80
+ - Adds attribute support
81
+
82
+ ---
83
+
84
+ ## 5.7.0
85
+
86
+ - Adds Automation support
87
+ - Adds A/B test support
88
+
89
+ ---
90
+
91
+ ## 5.6.1
92
+
93
+ - Updates EmailNotification templating
94
+
95
+ ---
96
+
97
+ ## 5.6.0
98
+
99
+ - Refactors EmailNotification class
100
+ - Adds Create and Send implementation to Open Channel class
101
+
102
+ ---
103
+
104
+ ## 5.5.1
105
+
106
+ - Updates validate_url method
107
+
108
+ ---
109
+
110
+ ## 5.5.0
111
+
112
+ - Add Create and Send Functionality for Email
113
+ - Add endpoints for Create and Send Validation and Scheduling
114
+ - Add Create and Send Functionality for SMS
115
+ - Update Rake version from 10.0 to 12.3.3
116
+
117
+ ---
118
+
119
+ ## 5.4.0
120
+
121
+ - Change BASE_URL to go.airship.com
122
+
123
+ ---
124
+
125
+ ## 5.3.0
126
+
127
+ - Updates Sphinx version on Ruby Lib docs
128
+ - Fixes date in footer
129
+ - Updates instances of 'Urbain Airship' to 'Airship' excluding method names
130
+
131
+ ---
132
+
133
+ ## 5.2.0
134
+
4
135
  - Updates automatic timeout for API request from 5 seconds to 60
5
136
  - Adds SMS Register implementation. Register, Opt-out, Uninstall, Lookup
6
137
  - Adds SMS Send functionality for Notification object
@@ -8,36 +139,42 @@
8
139
  - Adds Email Send support
9
140
  - Adds Email Registration support
10
141
 
11
- --------------------
12
- 5.1.0
13
- --------------------
142
+ ---
143
+
144
+ ## 5.1.0
145
+
14
146
  - Adds functionality for custom logger
15
147
 
16
- --------------------
17
- 5.0.1
18
- --------------------
148
+ ---
149
+
150
+ ## 5.0.1
151
+
19
152
  - Fix bug with named user association/disassociation
20
153
 
21
- --------------------
22
- 5.0.0
23
- --------------------
154
+ ---
155
+
156
+ ## 5.0.0
157
+
24
158
  - Add support for Web Notify, expand Open Platform support
25
159
  - Removing support for Feedback API (EOL July 2018)
26
160
  - Removing support for Device Token Count (also EOL in 2018)
27
161
 
28
- --------------------
29
- 4.1.1
30
- --------------------
162
+ ---
163
+
164
+ ## 4.1.1
165
+
31
166
  - Added configuration value for timeout.
32
167
 
33
- --------------------
34
- 4.1.0
35
- --------------------
168
+ ---
169
+
170
+ ## 4.1.0
171
+
36
172
  - Added support for Open Channels
37
173
 
38
- --------------------
39
- 4.0.0
40
- --------------------
174
+ ---
175
+
176
+ ## 4.0.0
177
+
41
178
  - Added support for in-app messages
42
179
  - Added support for iOS priority
43
180
  - Added config class, allowing you to define log level and log location
@@ -47,41 +184,48 @@
47
184
  - Removed support for Blackberry and MPNS platforms
48
185
  - Removed support for per-push reports
49
186
 
50
- --------------------
51
- 3.2.4
52
- --------------------
187
+ ---
188
+
189
+ ## 3.2.4
190
+
53
191
  - Replace unirest dependency with rest-client
54
192
 
55
- --------------------
56
- 3.2.3
57
- --------------------
193
+ ---
194
+
195
+ ## 3.2.3
196
+
58
197
  - Added support for named user audience selector
59
198
 
60
- --------------------
61
- 3.2.2
62
- --------------------
199
+ ---
200
+
201
+ ## 3.2.2
202
+
63
203
  - Bug fix: only open a single copy of the log file
64
204
 
65
- --------------------
66
- 3.2.1
67
- --------------------
205
+ ---
206
+
207
+ ## 3.2.1
208
+
68
209
  - Bug fix: allow audience tag selector to specify tag group if desired
69
210
 
70
- --------------------
71
- 3.2.0
72
- --------------------
211
+ ---
212
+
213
+ ## 3.2.0
214
+
73
215
  - Added support for static lists
74
216
  - Added support for device tokens, APIDs, and Blackberry PINs
75
217
  - Added support for locations
76
218
 
77
- --------------------
78
- 3.1.1
79
- --------------------
219
+ ---
220
+
221
+ ## 3.1.1
222
+
80
223
  - Changed UA to Urbanairship in client.rb to fix aliasing issue
81
224
 
82
- --------------------
83
- 3.1.0
84
- --------------------
225
+ ---
226
+
227
+ ## 3.1.0
228
+
85
229
  - Added documentation files
86
230
  - Added support for ChannelInfo and ChannelList
87
231
  - Added support for segments
@@ -91,19 +235,22 @@
91
235
  - Added support for named user
92
236
  - Added support for reports
93
237
 
94
- --------------------
95
- 3.0.2
96
- --------------------
238
+ ---
239
+
240
+ ## 3.0.2
241
+
97
242
  - Resolve compatibility issues with Rails ActiveSupport
98
243
 
99
- --------------------
100
- 3.0.1
101
- --------------------
244
+ ---
245
+
246
+ ## 3.0.1
247
+
102
248
  - Updating Gemspec to show required Ruby Version correctly
103
249
 
104
- --------------------
105
- 3.0.0
106
- --------------------
250
+ ---
251
+
252
+ ## 3.0.0
253
+
107
254
  - added CHANGELOG
108
255
  - rewrite with v3 support for push and scheduled push
109
256
  - backwards incompatible with previous versions of library
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2015 Urban Airship
1
+ Copyright 2019, Airship
2
2
 
3
3
  Licensed under the Apache License, Version 2.0 (the "License");
4
4
  you may not use this file except in compliance with the License.