event 0.9.3 → 0.9.4

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
  SHA256:
3
- metadata.gz: 04d628a035bccdf1ca709e053665ad377edddd1a27225c95f34c93d214b660bd
4
- data.tar.gz: 2ff2f56bb7e418d6cb0a999524c0aba6fb68db0b91d4751ab6d1a4013ad1aea3
3
+ metadata.gz: ede0cef441063c9e8675858ccbb0fb10a9e14403e812829531f8a5fedf144499
4
+ data.tar.gz: 47519c0f64233d29be411f6148cb1c831734ed36a56f863881d5fa14e2f7245e
5
5
  SHA512:
6
- metadata.gz: '08cc9858ac07c66cf211e1fc8763e06a64856440771793d214ceafff6672fbc4ad20869cc900b2d3c234bacddc772c0bee402bdad581bbf651cee34a2c320e6e'
7
- data.tar.gz: bacb375644648693379276cc9b35136ef4498d69d2a9da99e6e146590ed3a50e7bfafa00cb3ebd298e5eb15ac3feb14d5f6042deacf7f4e5612c6a347bc6bd1f
6
+ metadata.gz: 16a588ae4f5319f430ffd31cf0374defaf099b87db406f27c6af8b667666038725587dfac4d3b328a5496a65335882263b846de1a67934df432beaceae23cff7
7
+ data.tar.gz: 61a29c0c4379953b56ac6aef3b002513ac58603f16b2c9656afb61fcfbb91b9954a47bbf3bb04a414977f7ba11205974e229c1d38856fc491b84124cae7814cf
@@ -26,14 +26,17 @@ static ID id_transfer, id_alive_p;
26
26
  VALUE Event_Selector_fiber_transfer(VALUE fiber, int argc, VALUE *argv) {
27
27
  // TODO Consider introducing something like `rb_fiber_scheduler_transfer(...)`.
28
28
  #ifdef HAVE__RB_FIBER_TRANSFER
29
- if (RTEST(rb_fiber_alive_p(fiber))) {
30
- return rb_fiber_transfer(fiber, argc, argv);
29
+ if (RTEST(rb_obj_is_fiber(fiber))) {
30
+ if (RTEST(rb_fiber_alive_p(fiber))) {
31
+ return rb_fiber_transfer(fiber, argc, argv);
32
+ }
33
+
34
+ return Qnil;
31
35
  }
32
- #else
36
+ #endif
33
37
  if (RTEST(rb_funcall(fiber, id_alive_p, 0))) {
34
38
  return rb_funcallv(fiber, id_transfer, argc, argv);
35
39
  }
36
- #endif
37
40
 
38
41
  return Qnil;
39
42
  }
data/lib/event/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Event
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: event
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.2.22
112
+ rubygems_version: 3.3.0.dev
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: An event loop.