expo-server-sdk 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 303a59bece48ec95e3abb74a571ead0a980b352a2ae9ee2dc6cffc08fc12c0c0
4
- data.tar.gz: e45f9a67efe9b4b39df36e8fbf21e0488367794e8401bcf7977f61dfbdc58986
3
+ metadata.gz: '087d9b2ccae4d73d2f41de76622970abb28680f90ba115958bf0db71b00b80dc'
4
+ data.tar.gz: 99e5d6614d33b17203f391c0b3dc327cc33bd6c07499c66f20fe93cc79cf26f6
5
5
  SHA512:
6
- metadata.gz: '03396dcfa13081af44a710bdabce7fc52cf5b74b43dd4c76e791cbcc6857c7af59034913b17d680f3b622e70de48e50b8f60ef74b31a5e29cc7761eaffbc843b'
7
- data.tar.gz: 5794562f7e2c88738a16c92bca88f4d5053cf052deedc4d51eb37bc622984a11ee4cb3eeb36684cc04415c1c15c9b9fe841b129cb6fed43891d99b4b1123056e
6
+ metadata.gz: 80ada362bd1647d8d14f1a67fa32f71c828ee74aafee35b3087f46560ea4ba89a8d9b68735b0d93a51b330ff5111beb8d063c230f21282a2b252d4343939e884
7
+ data.tar.gz: fa089a3496e39b1477fb9e991fd2a164c91fdd683cb0a3404d06cc96a90b9cb49401797eb9799c2236bf49437c86a7cf3704cbed916757510b96778e51d3250c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.3
4
+
5
+ - Fix typo in README.md
6
+ - Change `http` version requirement to be loose (4+)
7
+
3
8
  ## 0.1.2
4
9
 
5
10
  - Add CHANGELOG.md
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- expo-server-sdk (0.1.2)
4
+ expo-server-sdk (0.1.3)
5
5
  connection_pool (~> 2.2)
6
- http (~> 5.0)
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.20.1)
34
- parser (3.0.1.1)
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.3)
39
- regexp_parser (1.8.2)
38
+ rake (13.0.6)
39
+ regexp_parser (2.1.1)
40
40
  rexml (3.2.5)
41
- rubocop (1.9.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.2.0, < 2.0)
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.5.0)
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.0.0)
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(pushToken)
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.is_a?(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
- end
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
@@ -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', '~> 5.0'
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
@@ -3,7 +3,7 @@
3
3
  module Expo
4
4
  module Server
5
5
  module SDK
6
- VERSION = '0.1.2'
6
+ VERSION = '0.1.3'
7
7
  end
8
8
  end
9
9
 
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.2
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: '5.0'
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: '5.0'
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: