async 1.17.0 → 1.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/async.gemspec +1 -1
- data/lib/async/logger.rb +2 -2
- data/lib/async/reactor.rb +1 -1
- data/lib/async/version.rb +1 -1
- data/spec/async/logger_spec.rb +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9513c847ed714794e7792f205c2aa3d6ece0712f39b426246bb147f60ad21b20
|
4
|
+
data.tar.gz: a1382d2118fff244e3bcaa06b1bab8a2284d395304b0e85ef7a8a32c171c9915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 853b55599bc4c0923fdb49534f02e474ee7fa048bc29ee66b3d1fa57d7dc1d902a53b859bf1337b71b2f94fe85fa5b3e6462633f5af210178210221d3444a14d
|
7
|
+
data.tar.gz: '07092c2764ebdbe0fb106cefffd1bbc6e33710d17d899f64626df60601d488ca696ea6522b62740ffbd5fdd46d8f72bbca98303d041ea2ce1076be74e477de03'
|
data/async.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.add_runtime_dependency "nio4r", "~> 2.3"
|
26
26
|
spec.add_runtime_dependency "timers", "~> 4.1"
|
27
|
-
spec.add_runtime_dependency "
|
27
|
+
spec.add_runtime_dependency "console", "~> 1.0"
|
28
28
|
|
29
29
|
spec.add_development_dependency "async-rspec", "~> 1.1"
|
30
30
|
|
data/lib/async/logger.rb
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
19
|
# THE SOFTWARE.
|
20
20
|
|
21
|
-
require '
|
21
|
+
require 'console'
|
22
22
|
require_relative 'task'
|
23
23
|
|
24
24
|
module Async
|
@@ -26,6 +26,6 @@ module Async
|
|
26
26
|
def self.logger
|
27
27
|
if task = Task.current?
|
28
28
|
task.logger
|
29
|
-
end ||
|
29
|
+
end || Console.logger
|
30
30
|
end
|
31
31
|
end
|
data/lib/async/reactor.rb
CHANGED
data/lib/async/version.rb
CHANGED
data/spec/async/logger_spec.rb
CHANGED
@@ -20,14 +20,14 @@
|
|
20
20
|
|
21
21
|
require 'async'
|
22
22
|
require 'async/logger'
|
23
|
-
require '
|
23
|
+
require 'console/capture'
|
24
24
|
|
25
25
|
RSpec.describe 'Async.logger' do
|
26
26
|
let(:name) {"nested"}
|
27
27
|
let(:message) {"Talk is cheap. Show me the code."}
|
28
28
|
|
29
|
-
let(:capture) {
|
30
|
-
let(:logger) {
|
29
|
+
let(:capture) {Console::Capture.new}
|
30
|
+
let(:logger) {Console::Logger.new(capture, name: name)}
|
31
31
|
|
32
32
|
it "can use nested logger" do
|
33
33
|
Async(logger: logger) do |task|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.17.
|
4
|
+
version: 1.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nio4r
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '4.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: console
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.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.
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: async-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
|
-
rubygems_version: 3.0.
|
202
|
+
rubygems_version: 3.0.2
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: Async is an asynchronous I/O framework based on nio4r.
|