lowdown 0.3.1 → 0.3.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/.gitignore +0 -1
- data/Gemfile.lock +64 -0
- data/lib/lowdown/connection.rb +11 -9
- data/lib/lowdown/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16ef8f3b50f11449f847661ccb4ec8e6778b8ccc
|
|
4
|
+
data.tar.gz: 1488fbc454c97265901024487be28faf7eb7223c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1b61b26414001f09fd20f36728095263c0d7d42f310cea0a745a0f41ca8e732115c81b3342ceaed205c084972484c4206d80a055e4a1943b2f6f668e7b565f9
|
|
7
|
+
data.tar.gz: 018adda275d2796bfba301acd287cd54e6f6f5653121e0c2926502afcc533b0a1ebd40bcec8f62ae79520edaf1de711d7916896e955fafcd6a546b21512a5311
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
lowdown (0.3.1)
|
|
5
|
+
celluloid-io (>= 0.17.3)
|
|
6
|
+
http-2 (>= 0.8)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
ast (2.2.0)
|
|
12
|
+
celluloid (0.17.3)
|
|
13
|
+
celluloid-essentials
|
|
14
|
+
celluloid-extras
|
|
15
|
+
celluloid-fsm
|
|
16
|
+
celluloid-pool
|
|
17
|
+
celluloid-supervision
|
|
18
|
+
timers (>= 4.1.1)
|
|
19
|
+
celluloid-essentials (0.20.5)
|
|
20
|
+
timers (>= 4.1.1)
|
|
21
|
+
celluloid-extras (0.20.5)
|
|
22
|
+
timers (>= 4.1.1)
|
|
23
|
+
celluloid-fsm (0.20.5)
|
|
24
|
+
timers (>= 4.1.1)
|
|
25
|
+
celluloid-io (0.17.3)
|
|
26
|
+
celluloid (>= 0.17.2)
|
|
27
|
+
nio4r (>= 1.1)
|
|
28
|
+
timers (>= 4.1.1)
|
|
29
|
+
celluloid-pool (0.20.5)
|
|
30
|
+
timers (>= 4.1.1)
|
|
31
|
+
celluloid-supervision (0.20.5)
|
|
32
|
+
timers (>= 4.1.1)
|
|
33
|
+
hitimes (1.2.3)
|
|
34
|
+
http-2 (0.8.1)
|
|
35
|
+
minitest (5.8.4)
|
|
36
|
+
nio4r (1.2.0)
|
|
37
|
+
parser (2.3.0.2)
|
|
38
|
+
ast (~> 2.2)
|
|
39
|
+
powerpack (0.1.1)
|
|
40
|
+
rainbow (2.1.0)
|
|
41
|
+
rake (10.5.0)
|
|
42
|
+
rubocop (0.36.0)
|
|
43
|
+
parser (>= 2.3.0.0, < 3.0)
|
|
44
|
+
powerpack (~> 0.1)
|
|
45
|
+
rainbow (>= 1.99.1, < 3.0)
|
|
46
|
+
ruby-progressbar (~> 1.7)
|
|
47
|
+
ruby-progressbar (1.7.5)
|
|
48
|
+
timers (4.1.1)
|
|
49
|
+
hitimes
|
|
50
|
+
yard (0.8.7.6)
|
|
51
|
+
|
|
52
|
+
PLATFORMS
|
|
53
|
+
ruby
|
|
54
|
+
|
|
55
|
+
DEPENDENCIES
|
|
56
|
+
bundler (~> 1.11)
|
|
57
|
+
lowdown!
|
|
58
|
+
minitest (~> 5.0)
|
|
59
|
+
rake (~> 10.0)
|
|
60
|
+
rubocop
|
|
61
|
+
yard
|
|
62
|
+
|
|
63
|
+
BUNDLED WITH
|
|
64
|
+
1.11.2
|
data/lib/lowdown/connection.rb
CHANGED
|
@@ -9,17 +9,17 @@ require "celluloid/current"
|
|
|
9
9
|
require "celluloid/io"
|
|
10
10
|
require "http/2"
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
# @!visibility private
|
|
13
|
+
#
|
|
14
|
+
module HTTP2
|
|
13
15
|
# @!visibility private
|
|
14
16
|
#
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
#
|
|
22
|
-
class Client
|
|
17
|
+
# This monkey-patch ensures that we send the HTTP/2 connection preface before anything else.
|
|
18
|
+
#
|
|
19
|
+
# @see https://github.com/igrigorik/http-2/pull/44
|
|
20
|
+
#
|
|
21
|
+
class Client
|
|
22
|
+
unless method_defined?(:connection_management)
|
|
23
23
|
def connection_management(frame)
|
|
24
24
|
if @state == :waiting_connection_preface
|
|
25
25
|
send_connection_preface
|
|
@@ -29,7 +29,9 @@ if HTTP2::VERSION == "0.8.0"
|
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
|
+
end
|
|
32
33
|
|
|
34
|
+
if HTTP2::VERSION == "0.8.0"
|
|
33
35
|
# @!visibility private
|
|
34
36
|
#
|
|
35
37
|
# These monkey-patches ensure that data added to a buffer has a binary encoding, as to not lead to encoding clashes.
|
data/lib/lowdown/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lowdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eloy Durán
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http-2
|
|
@@ -94,6 +94,7 @@ files:
|
|
|
94
94
|
- ".travis.yml"
|
|
95
95
|
- ".yardopts"
|
|
96
96
|
- Gemfile
|
|
97
|
+
- Gemfile.lock
|
|
97
98
|
- LICENSE.txt
|
|
98
99
|
- README.md
|
|
99
100
|
- Rakefile
|
|
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
132
133
|
version: '0'
|
|
133
134
|
requirements: []
|
|
134
135
|
rubyforge_project:
|
|
135
|
-
rubygems_version: 2.
|
|
136
|
+
rubygems_version: 2.5.1
|
|
136
137
|
signing_key:
|
|
137
138
|
specification_version: 4
|
|
138
139
|
summary: A Ruby client for the HTTP/2 version of the Apple Push Notification Service.
|