spider-gazelle 0.2.0 → 0.2.1
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/lib/spider-gazelle/const.rb +1 -1
- data/lib/spider-gazelle/gazelle.rb +8 -3
- data/lib/spider-gazelle/spider.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79738b050fb90a8bb950a269f6b5e73b4b4361b9
|
|
4
|
+
data.tar.gz: 0c8658ee11829adfd2cb08b4903334e10930dab4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7aecd49cd24a1929d6edd7ec652965dc666252ed1ebd225434f18bf2d3c86b17cf7af5970084f88abf05795f3ee1afbc476acf70d6c8cc9c7b613b3013fdb28
|
|
7
|
+
data.tar.gz: 67bd17a7bf6397bc5b94b0e353395457e2ea0b50c8b38e2525ad747e718b9ce44faee61bfffac8a813611613e161962745962960d9ad90d39c2cad6df506dafe
|
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.2.
|
|
30
|
+
SPIDER_GAZELLE_VERSION = VERSION = "0.2.1".freeze
|
|
31
31
|
# CODE_NAME = "Earl of Sandwich Partition"
|
|
32
32
|
SERVER = "SpiderGazelle".freeze
|
|
33
33
|
|
|
@@ -122,9 +122,13 @@ module SpiderGazelle
|
|
|
122
122
|
@connection.parsing_error if @parser.parse(@connection.state, data)
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
def new_connection(data,
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
def new_connection(data, socket)
|
|
126
|
+
# When in no IPC mode @socket_server is nil and the socket parameter is the socket
|
|
127
|
+
# If socket server exists then we are expecting sockets over the pipe
|
|
128
|
+
if @socket_server
|
|
129
|
+
socket = @socket_server.check_pending
|
|
130
|
+
return if socket.nil?
|
|
131
|
+
end
|
|
128
132
|
|
|
129
133
|
# Data == "TLS_indicator Port APP_ID"
|
|
130
134
|
tls, port, app_id = data.split(' ', 3)
|
|
@@ -134,6 +138,7 @@ module SpiderGazelle
|
|
|
134
138
|
# process any data coming from the socket
|
|
135
139
|
socket.progress @on_progress
|
|
136
140
|
# TODO:: Allow some globals for supplying the certs
|
|
141
|
+
# --> We could store these in the AppStore
|
|
137
142
|
socket.start_tls(:server => true) if tls == 'T'
|
|
138
143
|
|
|
139
144
|
# Keep track of the connection
|
|
@@ -269,7 +269,7 @@ module SpiderGazelle
|
|
|
269
269
|
File.unlink DELEGATE_PIPE
|
|
270
270
|
rescue
|
|
271
271
|
end
|
|
272
|
-
@delegator = @web.pipe
|
|
272
|
+
@delegator = @web.pipe :with_socket_support
|
|
273
273
|
@delegator.bind(DELEGATE_PIPE) { @delegator.accept @accept_handler }
|
|
274
274
|
@delegator.listen INTERNAL_PIPE_BACKLOG
|
|
275
275
|
|
|
@@ -278,7 +278,7 @@ module SpiderGazelle
|
|
|
278
278
|
File.unlink SIGNAL_PIPE
|
|
279
279
|
rescue
|
|
280
280
|
end
|
|
281
|
-
@signaller = @web.pipe
|
|
281
|
+
@signaller = @web.pipe
|
|
282
282
|
@signaller.bind(SIGNAL_PIPE) { @signaller.accept @accept_gazella }
|
|
283
283
|
@signaller.listen INTERNAL_PIPE_BACKLOG
|
|
284
284
|
|
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.2.
|
|
4
|
+
version: 0.2.1
|
|
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-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|