ione 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/ione/io/io_reactor.rb +2 -2
- data/lib/ione/version.rb +1 -1
- data/spec/ione/io/io_reactor_spec.rb +5 -3
- metadata +14 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9c062de288365ad9e47516ad7b9d3ab028ab9449964c88675c0b913657a8ef07
|
4
|
+
data.tar.gz: f349d422d1df3001a9c5fb5df55c329ed60cebc9dad20ddf1a97f52883c53093
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4523ab1052502a8da1879f73481f8326b260b478d71c7e9d882b264e2c274092ae0801a43c5884492ea06fd69dd3ac02ab184ef309dbcf1cf5b8d441f37e8bd6
|
7
|
+
data.tar.gz: 1e5d1c7f51593988a2270ec4c6b74cd61d72a1dd2c6a69d5c6f4b2053052aa4ee3bd52375c4e419d423110bd70994350662a61850907570db47ea45c24a7575b
|
data/lib/ione/io/io_reactor.rb
CHANGED
@@ -97,7 +97,7 @@ module Ione
|
|
97
97
|
@error_listeners = []
|
98
98
|
@unblocker = nil
|
99
99
|
@io_loop = IoLoopBody.new(@options)
|
100
|
-
@scheduler = Scheduler.new
|
100
|
+
@scheduler = Scheduler.new(@options)
|
101
101
|
@lock = Mutex.new
|
102
102
|
end
|
103
103
|
|
@@ -605,4 +605,4 @@ module Ione
|
|
605
605
|
end
|
606
606
|
end
|
607
607
|
end
|
608
|
-
end
|
608
|
+
end
|
data/lib/ione/version.rb
CHANGED
@@ -442,10 +442,12 @@ module Ione
|
|
442
442
|
end
|
443
443
|
|
444
444
|
it 'returns a future that is resolved after the specified duration' do
|
445
|
+
start = Time.now
|
445
446
|
clock.stub(:now).and_return(1)
|
446
|
-
f = reactor.schedule_timer(
|
447
|
-
clock.stub(:now).and_return(
|
447
|
+
f = reactor.schedule_timer(8)
|
448
|
+
clock.stub(:now).and_return(10.1)
|
448
449
|
await { f.resolved? }
|
450
|
+
expect(Time.now - start).to be < 1
|
449
451
|
end
|
450
452
|
end
|
451
453
|
|
@@ -758,4 +760,4 @@ module IoReactorSpec
|
|
758
760
|
@body.call(*args)
|
759
761
|
end
|
760
762
|
end
|
761
|
-
end
|
763
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ione
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Theo Hultberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Reactive programming framework for Ruby, painless evented IO, futures
|
14
14
|
and an efficient byte buffer
|
@@ -69,26 +69,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
|
73
|
-
rubygems_version: 2.4.5
|
72
|
+
rubygems_version: 3.0.3
|
74
73
|
signing_key:
|
75
74
|
specification_version: 4
|
76
75
|
summary: Reactive programming framework for Ruby
|
77
76
|
test_files:
|
78
|
-
- spec/
|
79
|
-
- spec/
|
80
|
-
- spec/ione/
|
81
|
-
- spec/ione/
|
82
|
-
- spec/ione/heap_spec.rb
|
77
|
+
- spec/spec_helper.rb
|
78
|
+
- spec/ione/io/ssl_acceptor_spec.rb
|
79
|
+
- spec/ione/io/server_connection_spec.rb
|
80
|
+
- spec/ione/io/ssl_server_connection_spec.rb
|
83
81
|
- spec/ione/io/acceptor_spec.rb
|
84
|
-
- spec/ione/io/connection_common.rb
|
85
82
|
- spec/ione/io/connection_spec.rb
|
86
|
-
- spec/ione/io/io_reactor_spec.rb
|
87
|
-
- spec/ione/io/server_connection_spec.rb
|
88
|
-
- spec/ione/io/ssl_acceptor_spec.rb
|
89
83
|
- spec/ione/io/ssl_connection_spec.rb
|
90
|
-
- spec/ione/io/
|
91
|
-
- spec/
|
84
|
+
- spec/ione/io/io_reactor_spec.rb
|
85
|
+
- spec/ione/io/connection_common.rb
|
86
|
+
- spec/ione/heap_spec.rb
|
87
|
+
- spec/ione/byte_buffer_spec.rb
|
88
|
+
- spec/ione/future_spec.rb
|
89
|
+
- spec/integration/ssl_spec.rb
|
90
|
+
- spec/integration/io_spec.rb
|
92
91
|
- spec/support/await_helper.rb
|
93
92
|
- spec/support/fake_server.rb
|
94
|
-
has_rdoc:
|