spider-gazelle 1.0.6 → 1.1.0

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: 04d19c0615315a23b7d35692bf0164d1942cf060
4
- data.tar.gz: 1bc208a4be3b5e27b5fa67e30327219dfcb08dde
3
+ metadata.gz: 7496653088d0748c6e6033c7e8e0500bf4892b74
4
+ data.tar.gz: a65dd6d206a87e1025c7b02d356e0b0c74d480f0
5
5
  SHA512:
6
- metadata.gz: b4c895af6b1163f38befb2168a7462ac7a4244912e3b4b1fe1c401aecfe3443464ce3cbf9ab84503d2b48149ab8458d54ab8a002d5a45ccad276485dbcbc7b56
7
- data.tar.gz: de884e14291e07b7e5076af6f7aaa6a51074f1050858c88caf5d43f33bbe8d2b1bf01baf5a558e65d2ca4405636c55eb9c94ec6df41f16a397e9a105bab21cd1
6
+ metadata.gz: 31bcd0ad1d8b6275228e5555134d1994ab65d4c0740a044f25d265b8a195f8b0ba0e61f9de043d9d3a3630713142ceb5070355f4b39ac5d29555cafca7338666
7
+ data.tar.gz: 172cac2596171c4fe8b20e6fd35c99deae8c4950cefe092083b3078dbda41a304a54ef503c4d15a91db9b52785222aeb88c6fc24769fa0c8baee32baa1753738
@@ -18,7 +18,6 @@ module SpiderGazelle
18
18
  @optimize = @options[:optimize_for_latency] || true
19
19
 
20
20
  # Connection management functions
21
- @new_connection = method :new_connection
22
21
  @accept_connection = method :accept_connection
23
22
  end
24
23
 
@@ -26,7 +25,7 @@ module SpiderGazelle
26
25
  def bind
27
26
  # Bind the socket
28
27
  @tcp = @loop.tcp
29
- @tcp.bind @options[:Host], @port, @new_connection
28
+ @tcp.bind @options[:Host], @port, @accept_connection
30
29
  @tcp.listen @options[:backlog]
31
30
 
32
31
  # Delegate errors
@@ -43,11 +42,6 @@ module SpiderGazelle
43
42
 
44
43
  protected
45
44
 
46
- # There is a new connection pending. We accept it
47
- def new_connection(server)
48
- server.accept @accept_connection
49
- end
50
-
51
45
  # Once the connection is accepted we disable Nagles Algorithm
52
46
  # This improves performance as we are using vectored or scatter/gather IO
53
47
  # Then the spider delegates to the gazelle loops
@@ -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 = "1.0.6".freeze
30
+ SPIDER_GAZELLE_VERSION = VERSION = "1.1.0".freeze
31
31
  # CODE_NAME = "Earl of Sandwich Partition"
32
32
  SERVER = "SpiderGazelle".freeze
33
33
 
@@ -377,7 +377,7 @@ module SpiderGazelle
377
377
  err = args[-1]
378
378
  if err && err.respond_to?(:backtrace)
379
379
  msg << "unhandled exception: #{err.message} (#{args[0..-2]})"
380
- msg << "\n#{err.backtrace.join("\n")}" if err.respond_to?(:backtrace) && err.backtrace
380
+ msg << "\n#{err.backtrace.join("\n")}" if err.backtrace
381
381
  else
382
382
  msg << "unhandled exception: #{args}"
383
383
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.add_dependency 'rake'
22
22
  s.add_dependency 'http-parser' # Ruby FFI bindings for https://github.com/joyent/http-parser
23
- s.add_dependency 'libuv', '>= 1.0.0' # Ruby FFI bindings for https://github.com/joyent/libuv
23
+ s.add_dependency 'libuv', '>= 2.0.0' # Ruby FFI bindings for https://github.com/libuv/libuv
24
24
  s.add_dependency 'rack', '>= 1.0.0' # Ruby web server interface
25
25
  s.add_dependency 'websocket-driver' # Websocket parser
26
26
  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: 1.0.6
4
+ version: 1.1.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: 2015-06-26 00:00:00.000000000 Z
11
+ date: 2015-08-10 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: 1.0.0
47
+ version: 2.0.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: 1.0.0
54
+ version: 2.0.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rack
57
57
  requirement: !ruby/object:Gem::Requirement