spider-gazelle 0.1.7 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spider-gazelle/const.rb +1 -1
- data/lib/spider-gazelle/gazelle.rb +5 -2
- data/spider-gazelle.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28f3637b040f52d538f4942d376815529477d5d9
|
4
|
+
data.tar.gz: 95d63eaff020210ad28c115e06abb79210d4e97d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8ae718a0342a38d538f0d59f9105feee70c90bfe520ed96f393fd17b0567efbe7f02b1f545bd4edc3f2b630cb389273bff56d66911f272bc752d5d97a3cf927
|
7
|
+
data.tar.gz: 51b4a7944ae9298269e6a042b819f8e50d024daaec02b7a9108cb16aa49be4442732eae3c59b936fbbdc5306ddaae31e5d7f24edb947d980f4e72f38ffdf16c1
|
data/lib/spider-gazelle/const.rb
CHANGED
@@ -27,7 +27,7 @@ module SpiderGazelle
|
|
27
27
|
# REMOTE_USER, or REMOTE_HOST parameters since those are either a security problem or
|
28
28
|
# too taxing on performance.
|
29
29
|
module Const
|
30
|
-
SPIDER_GAZELLE_VERSION = VERSION = "0.
|
30
|
+
SPIDER_GAZELLE_VERSION = VERSION = "0.2.0".freeze
|
31
31
|
# CODE_NAME = "Earl of Sandwich Partition"
|
32
32
|
SERVER = "SpiderGazelle".freeze
|
33
33
|
|
@@ -47,7 +47,7 @@ module SpiderGazelle
|
|
47
47
|
@socket_server = @gazelle.pipe true
|
48
48
|
@socket_server.connect(DELEGATE_PIPE) do
|
49
49
|
@socket_server.progress &method(:new_connection)
|
50
|
-
@socket_server.
|
50
|
+
@socket_server.start_read
|
51
51
|
end
|
52
52
|
|
53
53
|
# A pipe used to signal various control commands (shutdown, etc)
|
@@ -122,7 +122,10 @@ module SpiderGazelle
|
|
122
122
|
@connection.parsing_error if @parser.parse(@connection.state, data)
|
123
123
|
end
|
124
124
|
|
125
|
-
def new_connection(data,
|
125
|
+
def new_connection(data, pipe)
|
126
|
+
socket = @socket_server.check_pending
|
127
|
+
return if socket.nil?
|
128
|
+
|
126
129
|
# Data == "TLS_indicator Port APP_ID"
|
127
130
|
tls, port, app_id = data.split(' ', 3)
|
128
131
|
app = @app_cache[app_id.to_sym] ||= AppStore.get(app_id)
|
data/spider-gazelle.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
s.add_dependency 'rake'
|
26
26
|
s.add_dependency 'http-parser' # Ruby FFI bindings for https://github.com/joyent/http-parser
|
27
|
-
s.add_dependency 'libuv'
|
27
|
+
s.add_dependency 'libuv', '>= 0.12.0' # Ruby FFI bindings for https://github.com/joyent/libuv
|
28
28
|
s.add_dependency 'rack', '>= 1.0.0' # Ruby web server interface
|
29
29
|
s.add_dependency 'websocket-driver' # Websocket parser
|
30
30
|
s.add_dependency 'thread_safe' # Thread safe hashes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spider-gazelle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen von Takach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.12.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.12.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rack
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|