spider-gazelle 3.0.7 → 3.0.8

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: '019fff0efc2bb105421dc8bc272a712359488538'
4
- data.tar.gz: d73d90a4addbf4968ba678e68320bff312ff2503
3
+ metadata.gz: 9e50764ce50e969cb4ff956a52b46fd81d218e8c
4
+ data.tar.gz: fd68566d8e11d33483c2ff87d35af4634476d45a
5
5
  SHA512:
6
- metadata.gz: 57ec106d3f41d1569a0363fe0557c80b55702132f109dc3a4b8878cb9ae1d57a6e2fcef3b47ca55d3c64868765a92a5feb845f5a0df3dbcf0095acdc5fdbb4f5
7
- data.tar.gz: deecf209798f9771d66dddfd84400185ae015d6332c0436e4ff818ed899dbc5d56113dbff0fe84e22bb573b94427cd5f811c484fdbb699eb69646401552a1ee7
6
+ metadata.gz: 5cfc5f4a00325d5c3c7aba6261991581939227f2164cb6470ec0edda82213cdc32704afddcb1d5c11680bd7ccff6b06bf29c24b9530ec7e527cc82f75fc72710
7
+ data.tar.gz: 6acdadbe937902e5662c2b508da5edbb77f82422f94b1c23f14de2f3ecc46f50e58bc115c7cc041fb542e30f9c2a8dc45af959f99325f987ee503b8052737c9a
@@ -22,14 +22,12 @@ module SpiderGazelle
22
22
 
23
23
  def initialize
24
24
  @thread = ::Libuv::Reactor.default
25
- @stdout = @thread.pipe
26
- @stdout.open(1)
27
25
  @level = DEFAULT_LEVEL
28
26
  end
29
27
 
30
28
 
31
29
  def self.log(data)
32
- Logger.instance.write(data)
30
+ STDOUT.write data
33
31
  end
34
32
 
35
33
  def level=(level)
@@ -78,12 +76,12 @@ module SpiderGazelle
78
76
  def verbose(msg = nil)
79
77
  if @verbose
80
78
  msg = yield if block_given?
81
- @thread.schedule { @stdout.write ">> #{msg}\n" }
79
+ STDOUT.write ">> #{msg}\n"
82
80
  end
83
81
  end
84
82
 
85
83
  def write(msg)
86
- @thread.schedule { @stdout.write msg }
84
+ STDOUT.write msg
87
85
  end
88
86
 
89
87
  def print_error(e, msg = nil, trace = nil)
@@ -99,10 +97,7 @@ module SpiderGazelle
99
97
 
100
98
 
101
99
  def log(level, msg)
102
- output = "[#{level}] #{msg}\n"
103
- @thread.schedule do
104
- @stdout.write output
105
- end
100
+ STDOUT.write "[#{level}] #{msg}\n"
106
101
  end
107
102
  end
108
103
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SpiderGazelle
4
- VERSION = '3.0.7'
4
+ VERSION = '3.0.8'
5
5
  EXEC_NAME = 'sg'
6
6
  end
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: 3.0.7
4
+ version: 3.0.8
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: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-parser
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  requirements: []
191
191
  rubyforge_project:
192
- rubygems_version: 2.6.12
192
+ rubygems_version: 2.6.14
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: A fast, parallel and concurrent web server for ruby