core-async 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/core/async/collection.rb +3 -0
- data/lib/core/async/enumerator.rb +3 -0
- data/lib/core/async/future.rb +5 -0
- data/lib/core/async/reactor.rb +4 -0
- data/lib/core/async/timeout.rb +3 -0
- data/lib/core/async/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1475f225e7a3c63b06f254003ff34f377ab467aa26bb086903ba85db0c16d6ec
|
4
|
+
data.tar.gz: 013b3220d6e1d6b051524c57e551880a064aad3dcace1c40110f60793c18c9a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b7a37821649338dd1336d587e3c49d1df817729470c01c98cbbeb77c50e07ee7163aead7eabb5ef37bf288f0a00589d705933f16c1114656ebd023deb81e24b
|
7
|
+
data.tar.gz: f71a80e8efe333555b5d436e8f2d0cde7450754059bbf70d2266507b0bed1c6fb505c1c3a09ef29cf748566ef9d6100d0efea92a4e3f578a502205b3a2e6fdf7
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [v0.8.0](https://github.com/metabahn/corerb/releases/tag/2021-07-15)
|
2
|
+
|
3
|
+
*released on 2021-07-15*
|
4
|
+
|
5
|
+
* `add` [#50](https://github.com/metabahn/corerb/pull/50) Make all async objects inspectable ([bryanp](https://github.com/bryanp))
|
6
|
+
|
1
7
|
## [v0.7.0](https://github.com/metabahn/corerb/releases/tag/2021-07-07)
|
2
8
|
|
3
9
|
*released on 2021-07-07*
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "is/inspectable"
|
4
|
+
|
3
5
|
require_relative "../../is/async"
|
4
6
|
|
5
7
|
module Core
|
@@ -38,6 +40,7 @@ module Core
|
|
38
40
|
|
39
41
|
include Enumerable
|
40
42
|
include Is::Async
|
43
|
+
include Is::Inspectable
|
41
44
|
|
42
45
|
def initialize(values = [])
|
43
46
|
unless values.respond_to?(:each)
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "is/inspectable"
|
4
|
+
|
3
5
|
require_relative "../../is/async"
|
4
6
|
|
5
7
|
module Core
|
@@ -7,6 +9,7 @@ module Core
|
|
7
9
|
class Enumerator
|
8
10
|
include Enumerable
|
9
11
|
include Is::Async
|
12
|
+
include Is::Inspectable
|
10
13
|
|
11
14
|
def initialize(object)
|
12
15
|
unless object.respond_to?(:each)
|
data/lib/core/async/future.rb
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "is/inspectable"
|
4
|
+
|
3
5
|
module Core
|
4
6
|
module Async
|
5
7
|
# [public] Represents a future result.
|
6
8
|
#
|
7
9
|
class Future
|
10
|
+
include Is::Inspectable
|
11
|
+
inspects without: [:@task]
|
12
|
+
|
8
13
|
def initialize(task)
|
9
14
|
@task = task
|
10
15
|
@error = nil
|
data/lib/core/async/reactor.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "is/inspectable"
|
4
|
+
|
3
5
|
require_relative "../../is/async"
|
4
6
|
|
5
7
|
module Core
|
@@ -8,6 +10,8 @@ module Core
|
|
8
10
|
#
|
9
11
|
class Reactor
|
10
12
|
include Is::Async
|
13
|
+
include Is::Inspectable
|
14
|
+
inspects without: [:@runnable]
|
11
15
|
|
12
16
|
class << self
|
13
17
|
# [public] Create a new reactor and immediately run it.
|
data/lib/core/async/timeout.rb
CHANGED
data/lib/core/async/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: core-async
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.28'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: core-inspect
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.0'
|
27
41
|
description: Makes Ruby objects async-aware.
|
28
42
|
email: bryan@metabahn.com
|
29
43
|
executables: []
|