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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 443070cc0eb7a65e30942699de1c6435af5b07e1
4
- data.tar.gz: 50d81a6204f39103bcfbdadfdf4b5a764207ecf3
2
+ SHA256:
3
+ metadata.gz: 9c062de288365ad9e47516ad7b9d3ab028ab9449964c88675c0b913657a8ef07
4
+ data.tar.gz: f349d422d1df3001a9c5fb5df55c329ed60cebc9dad20ddf1a97f52883c53093
5
5
  SHA512:
6
- metadata.gz: 596feb59ad89022c6ef6150b3cd5fc6903965108a4f7c219f2fdef612c3e83f76ed7750516c6381b29c8bfea7ae987301859b17a62339f43abf79ed223cf1810
7
- data.tar.gz: 1cae4a2e82976c0d5eda3ba67fd2bb59ef6bb5853ab645bdccc1e268587cab1a24cc7eca42aa076ac2b0bb4737a33c6a6590916c3dc3b83e2b51b28e3178bc38
6
+ metadata.gz: 4523ab1052502a8da1879f73481f8326b260b478d71c7e9d882b264e2c274092ae0801a43c5884492ea06fd69dd3ac02ab184ef309dbcf1cf5b8d441f37e8bd6
7
+ data.tar.gz: 1e5d1c7f51593988a2270ec4c6b74cd61d72a1dd2c6a69d5c6f4b2053052aa4ee3bd52375c4e419d423110bd70994350662a61850907570db47ea45c24a7575b
@@ -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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Ione
4
- VERSION = '1.2.4'.freeze
4
+ VERSION = '1.2.5'.freeze
5
5
  end
@@ -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(0.1)
447
- clock.stub(:now).and_return(1.1)
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
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: 2016-10-26 00:00:00.000000000 Z
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
- rubyforge_project:
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/integration/io_spec.rb
79
- - spec/integration/ssl_spec.rb
80
- - spec/ione/byte_buffer_spec.rb
81
- - spec/ione/future_spec.rb
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/ssl_server_connection_spec.rb
91
- - spec/spec_helper.rb
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: