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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92d18212ad936003747b1db19c40d1e512f59d7cc960fcad17284e4638b3e2ff
4
- data.tar.gz: a492ab90f8427994d6a8ad6706a003ce9efbb026530b001a5611c775736952b0
3
+ metadata.gz: 1475f225e7a3c63b06f254003ff34f377ab467aa26bb086903ba85db0c16d6ec
4
+ data.tar.gz: 013b3220d6e1d6b051524c57e551880a064aad3dcace1c40110f60793c18c9a1
5
5
  SHA512:
6
- metadata.gz: 97c2580ae213ea539440d95a93975ca8dee74a37c61ba7b7ac5b0a4e77df0b75cb0d4e0eca902ebc14502cae2941c886f852dac7b308c9e43b97488678001184
7
- data.tar.gz: 24c45644755815b02fdb2e8dfc3c1d54aeb74dc31355752aaab67733b1be2e666ab521b3e394fb5a3dcc71e6e9dc2bd2688dd1d180e954fb2c8c5ccbfdf0e3ff
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)
@@ -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
@@ -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.
@@ -1,10 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "is/inspectable"
4
+
3
5
  module Core
4
6
  module Async
5
7
  # [public] Raised when execution times out.
6
8
  #
7
9
  class Timeout < RuntimeError
10
+ include Is::Inspectable
8
11
  end
9
12
  end
10
13
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Core
4
4
  module Async
5
- VERSION = "0.7.0"
5
+ VERSION = "0.8.0"
6
6
 
7
7
  def self.version
8
8
  VERSION
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.7.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-07 00:00:00.000000000 Z
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: []