urbanairship 9.4.0 → 10.0.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 +4 -4
- data/.github/PULL_REQUEST_TEMPLATE.md +2 -2
- data/.github/workflows/ci.yaml +4 -4
- data/.github/workflows/release.yaml +2 -2
- data/CHANGELOG +13 -0
- data/README.rst +4 -4
- data/docs/conf.py +2 -2
- data/docs/devices.rst +2 -2
- data/docs/email.rst +1 -1
- data/docs/index.rst +1 -1
- data/docs/named_user.rst +1 -1
- data/docs/push.rst +4 -4
- data/lib/urbanairship/common.rb +1 -1
- data/lib/urbanairship/version.rb +1 -1
- data/urbanairship.gemspec +4 -3
- metadata +21 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 599f8e6c8b0eb1a8c50a9e9c397ccfa8e47e86e0eab9b9bfe35e0987ae1cef72
|
|
4
|
+
data.tar.gz: 070e8a804a7bdaa4dd0d052598f7e747463d937a2f2a755a6bebe95f403fb37b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd6fb64d29d4be182417382e46edb002544f8b301c1b46fce26dc88d35196fac76a0cc785848d310eaf9a69a2cd52a5d2d4fd02c0143fbb865cd2237629b86b4
|
|
7
|
+
data.tar.gz: 69e41ed9a1bad0fa40d85653123b861651852996d0406e7c3b3b96b124da7156f2cf581b4e0e090904caf5d24c9338ee88c0fe3d58e583819aac948ba84e1b64
|
|
@@ -15,8 +15,8 @@ Please include link to open issue if applicable.
|
|
|
15
15
|
|
|
16
16
|
* I've tested for Ruby versions:
|
|
17
17
|
|
|
18
|
-
- [ ]
|
|
19
|
-
- [ ]
|
|
18
|
+
- [ ] 3.3.7
|
|
19
|
+
- [ ] 3.4.2
|
|
20
20
|
|
|
21
21
|
### Airship Contribution Agreement
|
|
22
22
|
[Link here](https://docs.google.com/forms/d/e/1FAIpQLScErfiz-fXSPpVZ9r8Di2Tr2xDFxt5MgzUel0__9vqUgvko7Q/viewform)
|
data/.github/workflows/ci.yaml
CHANGED
|
@@ -9,17 +9,17 @@ jobs:
|
|
|
9
9
|
|
|
10
10
|
strategy:
|
|
11
11
|
matrix:
|
|
12
|
-
ruby-version: [
|
|
12
|
+
ruby-version: [3.3.7, 3.4.2]
|
|
13
13
|
|
|
14
14
|
steps:
|
|
15
15
|
- uses: actions/checkout@v2
|
|
16
16
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
17
|
-
uses: ruby/setup-ruby@
|
|
17
|
+
uses: ruby/setup-ruby@v1
|
|
18
18
|
with:
|
|
19
19
|
ruby-version: ${{ matrix.ruby-version }}
|
|
20
20
|
bundler: none
|
|
21
|
-
- name: Install bundler
|
|
22
|
-
run: gem install bundler -v 2.
|
|
21
|
+
- name: Install bundler
|
|
22
|
+
run: gem install bundler -v '~> 2.0'
|
|
23
23
|
- name: Install dependencies
|
|
24
24
|
run: bundle install
|
|
25
25
|
- name: Run tests
|
|
@@ -10,12 +10,12 @@ jobs:
|
|
|
10
10
|
|
|
11
11
|
strategy:
|
|
12
12
|
matrix:
|
|
13
|
-
ruby-version: [
|
|
13
|
+
ruby-version: [3.3.7, 3.4.2]
|
|
14
14
|
|
|
15
15
|
steps:
|
|
16
16
|
- uses: actions/checkout@v2
|
|
17
17
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
18
|
-
uses: ruby/setup-ruby@
|
|
18
|
+
uses: ruby/setup-ruby@v1
|
|
19
19
|
with:
|
|
20
20
|
ruby-version: ${{ matrix.ruby-version }}
|
|
21
21
|
- name: Install dependencies
|
data/CHANGELOG
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## 10.0.2
|
|
2
|
+
|
|
3
|
+
- Updates JWT dependency to < 4.0
|
|
4
|
+
|
|
5
|
+
## 10.0.1
|
|
6
|
+
|
|
7
|
+
- Changes gemspec to have correct minimum Ruby version
|
|
8
|
+
|
|
9
|
+
## 10.0.0
|
|
10
|
+
|
|
11
|
+
- Fixes Ruby 3 incompatibilities
|
|
12
|
+
- Drops support for Ruby 2
|
|
13
|
+
|
|
1
14
|
## 9.4.0
|
|
2
15
|
|
|
3
16
|
- Adds email replace method
|
data/README.rst
CHANGED
|
@@ -13,16 +13,16 @@ Requirements
|
|
|
13
13
|
|
|
14
14
|
We officially support the following Ruby versions::
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
3.3.7
|
|
17
|
+
3.4.2
|
|
18
18
|
|
|
19
|
-
Newer
|
|
19
|
+
Newer 3.x versions should work as well.
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
Functionality
|
|
23
23
|
=============
|
|
24
24
|
|
|
25
|
-
Version
|
|
25
|
+
Version 10.0 is a major upgrade, as we have changed the tested/supported versions of Ruby. A more detailed list of changes can be found in the CHANGELOG.
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
Questions
|
data/docs/conf.py
CHANGED
|
@@ -33,7 +33,7 @@ needs_sphinx = '1.6.7'
|
|
|
33
33
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
34
34
|
# ones.
|
|
35
35
|
|
|
36
|
-
extensions = ['
|
|
36
|
+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx_rtd_theme']
|
|
37
37
|
|
|
38
38
|
# Add any paths that contain templates here, relative to this directory.
|
|
39
39
|
templates_path = ['_templates']
|
|
@@ -70,7 +70,7 @@ for line in file:
|
|
|
70
70
|
file.close()
|
|
71
71
|
#
|
|
72
72
|
# The short X.Y version.
|
|
73
|
-
version = re.match('\d
|
|
73
|
+
version = re.match(r'\d+\.\d+', release).group()
|
|
74
74
|
|
|
75
75
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
76
76
|
# for a list of supported languages.
|
data/docs/devices.rst
CHANGED
|
@@ -5,7 +5,7 @@ Channel Listing
|
|
|
5
5
|
---------------
|
|
6
6
|
|
|
7
7
|
Device lists are fetched by instantiating an iterator object
|
|
8
|
-
using
|
|
8
|
+
using ``ChannelList``. For more information, see `the API
|
|
9
9
|
documentation for channels <http://docs.airship.com/api/ua.html#channels>`_.
|
|
10
10
|
The ``count`` method will give you the number of channels over which you have iterated.
|
|
11
11
|
|
|
@@ -26,7 +26,7 @@ Channel Lookup
|
|
|
26
26
|
--------------
|
|
27
27
|
|
|
28
28
|
Device metadata is fetched for a specific channel by using
|
|
29
|
-
|
|
29
|
+
``ChannelInfo`` with the method ``lookup(uuid: 'uuid')``.
|
|
30
30
|
|
|
31
31
|
.. code-block:: ruby
|
|
32
32
|
|
data/docs/email.rst
CHANGED
data/docs/index.rst
CHANGED
|
@@ -26,7 +26,7 @@ Using the library
|
|
|
26
26
|
|
|
27
27
|
The library is intended to be used with the small footprint of a single
|
|
28
28
|
import. To get started, import the package, and create an
|
|
29
|
-
|
|
29
|
+
``Airship`` object representing a single Airship project.
|
|
30
30
|
|
|
31
31
|
The library uses `rest-client <https://github.com/rest-client/rest-client>`_ for communication with the Airship API.
|
|
32
32
|
|
data/docs/named_user.rst
CHANGED
|
@@ -5,7 +5,7 @@ Named User Listing
|
|
|
5
5
|
------------------
|
|
6
6
|
|
|
7
7
|
Named User lists are fetched by instantiating an iterator object
|
|
8
|
-
using
|
|
8
|
+
using ``NamedUserList``.
|
|
9
9
|
For more information, see `the API documentation
|
|
10
10
|
<http://docs.airship.com/api/ua.html#listing>`__
|
|
11
11
|
|
data/docs/push.rst
CHANGED
|
@@ -455,7 +455,7 @@ attributes, the notification is ready for delivery.
|
|
|
455
455
|
|
|
456
456
|
push.send_push
|
|
457
457
|
|
|
458
|
-
If the delivery is unsuccessful, an
|
|
458
|
+
If the delivery is unsuccessful, an ``AirshipFailure`` exception
|
|
459
459
|
will be raised.
|
|
460
460
|
|
|
461
461
|
|
|
@@ -477,7 +477,7 @@ minute.
|
|
|
477
477
|
response = schedule.send_push
|
|
478
478
|
print ("Created schedule. url: " + response.schedule_url)
|
|
479
479
|
|
|
480
|
-
If the schedule is unsuccessful, an
|
|
480
|
+
If the schedule is unsuccessful, an ``AirshipFailure``
|
|
481
481
|
exception will be raised.
|
|
482
482
|
|
|
483
483
|
|
|
@@ -499,7 +499,7 @@ local time.
|
|
|
499
499
|
response = schedule.send_push
|
|
500
500
|
print ("Created schedule. url: " + response.schedule_url)
|
|
501
501
|
|
|
502
|
-
If the schedule is unsuccessful, an
|
|
502
|
+
If the schedule is unsuccessful, an ``AirshipFailure`` exception
|
|
503
503
|
will be raised.
|
|
504
504
|
|
|
505
505
|
Scheduled Delivery for Optimal Send Time
|
|
@@ -519,7 +519,7 @@ This example schedules the above notification delivery for optimal send time.
|
|
|
519
519
|
response = schedule.send_push
|
|
520
520
|
print ("Created schedule. url: " + response.schedule_url)
|
|
521
521
|
|
|
522
|
-
If the schedule is unsuccessful, an
|
|
522
|
+
If the schedule is unsuccessful, an ``AirshipFailure`` exception
|
|
523
523
|
will be raised.
|
|
524
524
|
|
|
525
525
|
.. note::
|
data/lib/urbanairship/common.rb
CHANGED
|
@@ -190,7 +190,7 @@ module Urbanairship
|
|
|
190
190
|
path: @next_page_path,
|
|
191
191
|
url: @next_page_url
|
|
192
192
|
}.select { |k, v| !v.nil? }
|
|
193
|
-
response = @client.send_request(params)
|
|
193
|
+
response = @client.send_request(**params)
|
|
194
194
|
|
|
195
195
|
@data_list = get_new_data(response)
|
|
196
196
|
@next_page_url = get_next_page_url(response)
|
data/lib/urbanairship/version.rb
CHANGED
data/urbanairship.gemspec
CHANGED
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.description = 'A Ruby Library for using the Airship web service API for push notifications and rich app pages.'
|
|
15
15
|
spec.homepage = 'https://github.com/urbanairship/ruby-library'
|
|
16
16
|
|
|
17
|
-
spec.required_ruby_version = '>=
|
|
17
|
+
spec.required_ruby_version = '>= 3.0.0'
|
|
18
18
|
|
|
19
19
|
if spec.respond_to?(:metadata)
|
|
20
20
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
|
@@ -28,9 +28,10 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.require_paths = ['lib']
|
|
29
29
|
|
|
30
30
|
spec.add_runtime_dependency 'rest-client', '>= 1.4', '< 4.0'
|
|
31
|
-
spec.add_runtime_dependency 'jwt', '>= 2.0', '<
|
|
31
|
+
spec.add_runtime_dependency 'jwt', '>= 2.0', '< 4.0'
|
|
32
|
+
spec.add_runtime_dependency 'csv', '~> 3.0'
|
|
32
33
|
|
|
33
|
-
spec.add_development_dependency 'bundler', '>= 1', '<
|
|
34
|
+
spec.add_development_dependency 'bundler', '>= 1', '< 3.0'
|
|
34
35
|
spec.add_development_dependency 'guard-rspec'
|
|
35
36
|
spec.add_development_dependency 'pry', '~> 0'
|
|
36
37
|
spec.add_development_dependency 'rake', '~> 12.3.3'
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: urbanairship
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 10.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Airship
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rest-client
|
|
@@ -39,7 +38,7 @@ dependencies:
|
|
|
39
38
|
version: '2.0'
|
|
40
39
|
- - "<"
|
|
41
40
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '
|
|
41
|
+
version: '4.0'
|
|
43
42
|
type: :runtime
|
|
44
43
|
prerelease: false
|
|
45
44
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -48,6 +47,20 @@ dependencies:
|
|
|
48
47
|
- !ruby/object:Gem::Version
|
|
49
48
|
version: '2.0'
|
|
50
49
|
- - "<"
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: '4.0'
|
|
52
|
+
- !ruby/object:Gem::Dependency
|
|
53
|
+
name: csv
|
|
54
|
+
requirement: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
- - "~>"
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
version: '3.0'
|
|
59
|
+
type: :runtime
|
|
60
|
+
prerelease: false
|
|
61
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
62
|
+
requirements:
|
|
63
|
+
- - "~>"
|
|
51
64
|
- !ruby/object:Gem::Version
|
|
52
65
|
version: '3.0'
|
|
53
66
|
- !ruby/object:Gem::Dependency
|
|
@@ -59,7 +72,7 @@ dependencies:
|
|
|
59
72
|
version: '1'
|
|
60
73
|
- - "<"
|
|
61
74
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '
|
|
75
|
+
version: '3.0'
|
|
63
76
|
type: :development
|
|
64
77
|
prerelease: false
|
|
65
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -69,7 +82,7 @@ dependencies:
|
|
|
69
82
|
version: '1'
|
|
70
83
|
- - "<"
|
|
71
84
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: '
|
|
85
|
+
version: '3.0'
|
|
73
86
|
- !ruby/object:Gem::Dependency
|
|
74
87
|
name: guard-rspec
|
|
75
88
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -242,7 +255,6 @@ licenses:
|
|
|
242
255
|
- Apache-2.0
|
|
243
256
|
metadata:
|
|
244
257
|
allowed_push_host: https://rubygems.org
|
|
245
|
-
post_install_message:
|
|
246
258
|
rdoc_options: []
|
|
247
259
|
require_paths:
|
|
248
260
|
- lib
|
|
@@ -250,15 +262,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
250
262
|
requirements:
|
|
251
263
|
- - ">="
|
|
252
264
|
- !ruby/object:Gem::Version
|
|
253
|
-
version:
|
|
265
|
+
version: 3.0.0
|
|
254
266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
267
|
requirements:
|
|
256
268
|
- - ">="
|
|
257
269
|
- !ruby/object:Gem::Version
|
|
258
270
|
version: '0'
|
|
259
271
|
requirements: []
|
|
260
|
-
rubygems_version: 3.
|
|
261
|
-
signing_key:
|
|
272
|
+
rubygems_version: 3.6.8
|
|
262
273
|
specification_version: 4
|
|
263
274
|
summary: Ruby Gem for using the Airship API
|
|
264
275
|
test_files: []
|