ruby-push-notifications 0.3.0 → 0.3.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5f52999ec595b97b1c2dc8628c666d9d16e2cc7
|
4
|
+
data.tar.gz: c93580db1db0e4a7704f2c7b3f0661482d03b27c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3373347fd40e9b6c79e216b141d7a4457a2a7a42287c0fd53a339e3f83433165600434d3e937db72210e4faa355a4d7fbdcaa55fcbfa34dad5c227731897c5f5
|
7
|
+
data.tar.gz: 411b301afbe3db77736f5942ffd7dfbd4a8eb7348df6f3915976f92b540f3ec97d364ff1660198b5e49ad06b7271f91a5853648cecb2b23def8f1b365c0d9194
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby-push-notifications (0.3.
|
5
|
-
builder (~> 3.
|
4
|
+
ruby-push-notifications (0.3.1)
|
5
|
+
builder (~> 3.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -25,8 +25,7 @@ GEM
|
|
25
25
|
activesupport (>= 3.0.0)
|
26
26
|
i18n (0.7.0)
|
27
27
|
json (1.8.2)
|
28
|
-
minitest (5.6.
|
29
|
-
multi_json (1.11.0)
|
28
|
+
minitest (5.6.1)
|
30
29
|
rake (10.4.2)
|
31
30
|
rspec (3.2.0)
|
32
31
|
rspec-core (~> 3.2.0)
|
@@ -42,11 +41,11 @@ GEM
|
|
42
41
|
rspec-support (~> 3.2.0)
|
43
42
|
rspec-support (3.2.2)
|
44
43
|
safe_yaml (1.0.4)
|
45
|
-
simplecov (0.
|
44
|
+
simplecov (0.10.0)
|
46
45
|
docile (~> 1.1.0)
|
47
|
-
|
48
|
-
simplecov-html (~> 0.
|
49
|
-
simplecov-html (0.
|
46
|
+
json (~> 1.8)
|
47
|
+
simplecov-html (~> 0.10.0)
|
48
|
+
simplecov-html (0.10.0)
|
50
49
|
thread_safe (0.3.5)
|
51
50
|
tzinfo (1.2.2)
|
52
51
|
thread_safe (~> 0.1)
|
@@ -50,11 +50,18 @@ module RubyPushNotifications
|
|
50
50
|
rs, = IO.select([conn], [conn])
|
51
51
|
end
|
52
52
|
if rs && rs.any?
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
53
|
+
packed = rs[0].read 6
|
54
|
+
if packed.nil? && i == 0
|
55
|
+
# The connection wasn't properly open
|
56
|
+
# Probably because of wrong certificate/sandbox? combination
|
57
|
+
results << UNKNOWN_ERROR_STATUS_CODE
|
58
|
+
else
|
59
|
+
err = packed.unpack 'ccN'
|
60
|
+
results.slice! err[2]..-1
|
61
|
+
results << err[1]
|
62
|
+
i = err[2]
|
63
|
+
conn = APNSConnection.open @certificate, @sandbox
|
64
|
+
end
|
58
65
|
else
|
59
66
|
results << NO_ERROR_STATUS_CODE
|
60
67
|
end
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.add_dependency 'builder', '~> 3.
|
23
|
+
spec.add_dependency 'builder', '~> 3.0'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
26
26
|
spec.add_development_dependency 'rake', '~> 10.4'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-push-notifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Alonso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|