evt 0.1.2 → 0.1.3

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: e3b69b158f74a67ae86879e3a7019a32a1a6579bbf8cc707f7438ad68ffac2f4
4
- data.tar.gz: 50aae949da244dde5e4f665e4eb08c2ea446a13a7f73bd3101a23000d9ac7a63
3
+ metadata.gz: 85fa54091b86a8502785084db9a2cab1a8b191e9be4ddecb9f04196fd28b4a30
4
+ data.tar.gz: dfe9ac5903dc1cfb0f7de77518f91ae203bf4bf7c3d24dcd8d0189895df35119
5
5
  SHA512:
6
- metadata.gz: 44b1a6e2b93d049f8c205910d7df2eb08221eb64a861b2e28870d39b0fac23fdc94a8ec100be574ba6bc63b991435068c7f79f3ce3fc4d13f101950974d903f7
7
- data.tar.gz: e3db93cccddec122644ed83b249737ae35fbb18d70a8811e2e70f362fcfce3084be41b0a6421a966b407b63809888e72d528b640d4b2c636b2c95eaaa802210c
6
+ metadata.gz: 7974fbd9351e3f891526a4f986a833e93819ef2481858bc822dbc47f0dd40f5a6d1ac70eadfd43ee12f24c95f406668019191937f768e19ea9a2221d83abc570
7
+ data.tar.gz: 20cf844ac6ad95fc7da541be2a9f5c66afa20f76ae6203d30699a47715bdf63adee40b5d5343d01f6b15eb35e105ef8e5fb102007e8449586776e514621ece19
data/README.md CHANGED
@@ -6,6 +6,14 @@ A Handcrafted Low-Level Event Handler designed as Ruby 3 Scheduler.
6
6
 
7
7
  Supports `epoll`, `kqueue`, IOCP (WIP), and Ruby `select` fallback.
8
8
 
9
+ ## Install
10
+
11
+ ```bash
12
+ gem install evt
13
+ ```
14
+
15
+ ## Usage
16
+
9
17
  ```ruby
10
18
  require 'evt'
11
19
 
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Patch for 2.7.1 when tests
4
- class IO
5
- WAIT_READABLE = 1
6
- WAIT_WRITABLE = 3
3
+ # Patch for 2.7.1 when testing
4
+ if RUBY_VERSION.start_with?('2.7')
5
+ class IO
6
+ WAIT_READABLE = 1
7
+ WAIT_WRITABLE = 2
8
+ end
7
9
  end
@@ -91,7 +91,7 @@ class Evt::Scheduler
91
91
 
92
92
  def wait_writable(io)
93
93
  @writable[io] = Fiber.current
94
- self.register(io, IO::WAIT_READABLE)
94
+ self.register(io, IO::WAIT_WRITABLE)
95
95
  Fiber.yield
96
96
  @writable.delete(io)
97
97
  self.deregister(io)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Evt
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delton Ding