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 +4 -4
- data/lib/spider-gazelle/logger.rb +4 -9
- data/lib/spider-gazelle/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e50764ce50e969cb4ff956a52b46fd81d218e8c
|
4
|
+
data.tar.gz: fd68566d8e11d33483c2ff87d35af4634476d45a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
79
|
+
STDOUT.write ">> #{msg}\n"
|
82
80
|
end
|
83
81
|
end
|
84
82
|
|
85
83
|
def write(msg)
|
86
|
-
|
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
|
-
|
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
|
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.
|
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-
|
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.
|
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
|