expo-server-sdk 0.1.2 → 0.1.3
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/CHANGELOG.md +5 -0
- data/Gemfile.lock +10 -10
- data/README.md +6 -6
- data/expo-server-sdk.gemspec +1 -1
- data/lib/expo/server/sdk/version.rb +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '087d9b2ccae4d73d2f41de76622970abb28680f90ba115958bf0db71b00b80dc'
|
4
|
+
data.tar.gz: 99e5d6614d33b17203f391c0b3dc327cc33bd6c07499c66f20fe93cc79cf26f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80ada362bd1647d8d14f1a67fa32f71c828ee74aafee35b3087f46560ea4ba89a8d9b68735b0d93a51b330ff5111beb8d063c230f21282a2b252d4343939e884
|
7
|
+
data.tar.gz: fa089a3496e39b1477fb9e991fd2a164c91fdd683cb0a3404d06cc96a90b9cb49401797eb9799c2236bf49437c86a7cf3704cbed916757510b96778e51d3250c
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
expo-server-sdk (0.1.
|
4
|
+
expo-server-sdk (0.1.3)
|
5
5
|
connection_pool (~> 2.2)
|
6
|
-
http (
|
6
|
+
http (>= 4.0, < 6.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -30,30 +30,30 @@ GEM
|
|
30
30
|
ffi-compiler (~> 1.0)
|
31
31
|
rake (~> 13.0)
|
32
32
|
minitest (5.14.4)
|
33
|
-
parallel (1.
|
34
|
-
parser (3.0.
|
33
|
+
parallel (1.21.0)
|
34
|
+
parser (3.0.2.0)
|
35
35
|
ast (~> 2.4.1)
|
36
36
|
public_suffix (4.0.6)
|
37
37
|
rainbow (3.0.0)
|
38
|
-
rake (13.0.
|
39
|
-
regexp_parser (1.
|
38
|
+
rake (13.0.6)
|
39
|
+
regexp_parser (2.1.1)
|
40
40
|
rexml (3.2.5)
|
41
|
-
rubocop (1.
|
41
|
+
rubocop (1.22.3)
|
42
42
|
parallel (~> 1.10)
|
43
43
|
parser (>= 3.0.0.0)
|
44
44
|
rainbow (>= 2.2.2, < 4.0)
|
45
45
|
regexp_parser (>= 1.8, < 3.0)
|
46
46
|
rexml
|
47
|
-
rubocop-ast (>= 1.
|
47
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
48
48
|
ruby-progressbar (~> 1.7)
|
49
49
|
unicode-display_width (>= 1.4.0, < 3.0)
|
50
|
-
rubocop-ast (1.
|
50
|
+
rubocop-ast (1.13.0)
|
51
51
|
parser (>= 3.0.1.1)
|
52
52
|
ruby-progressbar (1.11.0)
|
53
53
|
unf (0.1.4)
|
54
54
|
unf_ext
|
55
55
|
unf_ext (0.0.8-x64-mingw32)
|
56
|
-
unicode-display_width (2.
|
56
|
+
unicode-display_width (2.1.0)
|
57
57
|
|
58
58
|
PLATFORMS
|
59
59
|
x64-mingw32
|
data/README.md
CHANGED
@@ -68,7 +68,7 @@ some_push_tokens.each do |push_token|
|
|
68
68
|
# - #category_id
|
69
69
|
#
|
70
70
|
messages << client.notification
|
71
|
-
.to(
|
71
|
+
.to(push_token)
|
72
72
|
.sound('default')
|
73
73
|
.body('This is a test notification')
|
74
74
|
.data({ withSome: 'data' })
|
@@ -94,10 +94,7 @@ tickets = client.send!(messages)
|
|
94
94
|
# a batch contains failed errors, or completely failed pages:
|
95
95
|
#
|
96
96
|
tickets.each_error do |error|
|
97
|
-
if error.
|
98
|
-
puts error.message
|
99
|
-
# => "This indicates the entire request had an error"
|
100
|
-
else
|
97
|
+
if error.respond_t?(:explain)
|
101
98
|
puts error.explain
|
102
99
|
# => "The device cannot receive push notifications anymore and you should
|
103
100
|
# stop sending messages to the corresponding Expo push token."
|
@@ -111,7 +108,10 @@ tickets.each_error do |error|
|
|
111
108
|
|
112
109
|
error.original_push_token
|
113
110
|
# => ExpoPushToken[xxxxxxxxxxxxxxxxxxxxxx]
|
114
|
-
|
111
|
+
else
|
112
|
+
puts error.message
|
113
|
+
# => "This indicates the entire request had an error"
|
114
|
+
else
|
115
115
|
end
|
116
116
|
|
117
117
|
# Later, after the Expo push notification service has delivered the
|
data/expo-server-sdk.gemspec
CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
# Uncomment to register a new dependency of your gem
|
35
35
|
# spec.add_dependency "example-gem", "~> 1.0"
|
36
36
|
spec.add_dependency 'connection_pool', '~> 2.2'
|
37
|
-
spec.add_dependency 'http', '
|
37
|
+
spec.add_dependency 'http', '>= 4.0', '< 6.0'
|
38
38
|
|
39
39
|
# For more information and examples about making a new gem, checkout our
|
40
40
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: expo-server-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derk-Jan Karrenbeld
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: http
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '4.0'
|
34
|
+
- - "<"
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
36
|
+
version: '6.0'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '4.0'
|
44
|
+
- - "<"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
46
|
+
version: '6.0'
|
41
47
|
description: This gem has been written to fix shortcomings with the current community
|
42
48
|
provided gem, which has many outstanding issues and open pull requests.
|
43
49
|
email:
|