moory 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7070921a0346a853176eb0ca87de668f876d3145504bb1a2eed18ff3aac2339
4
- data.tar.gz: 48cad2ef02815d4dde1eca024ac043f365905d5c5a7ca67132e6c559fbe0b7d4
3
+ metadata.gz: 63dbdfffb9d3e9c172e021708da629b70bfda5ff8d61247247fc2cf4a37e39c5
4
+ data.tar.gz: 572e8da3c78d4f133e05c75f56ebce947551b1067d82f5c12d0e1768de4d2323
5
5
  SHA512:
6
- metadata.gz: 5f5c97e13871e683c10e0efe5407742beb9e85baf8aeb012bac652bd8d09f2ce6076206d5ab47316cd4fb68e0d9a8f6350b49e20f86ffe2867ce1f97aca26ad3
7
- data.tar.gz: c765734c32f1cd918e29a607e7e3548c905ffd60de36ef754fc38b981205ea2830af866fec2051eb3afee7868091ac9a7358e3a121585c53efe9c0a38bb03f86
6
+ metadata.gz: 1fdb34c1539249252081632c6c75e0e680423481c4c61aa408ee2cdde32ccbab84429388cc36da566145bfc4ba1d2eac292a6b521ed7f1a4307414274563af66
7
+ data.tar.gz: 9fc9f0fc5bc675d0307fc083375c457a848f1654cda0728f5adaa76cce82a37274092bc76830925c9bc7ee58e7415867549fe63b935e45fff0912a4343e377a8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- moory (1.2.0)
4
+ moory (1.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -61,10 +61,14 @@ module Moory
61
61
  def issue(stimulus)
62
62
  @consequences = []
63
63
 
64
- active_unit.understand?(stimulus) ?
65
- forward(stimulus) :
64
+ understand?(stimulus) ?
65
+ distribute(stimulus) :
66
66
  nil
67
67
  end
68
+
69
+ def understand?(stimulus)
70
+ active_unit.understand?(stimulus)
71
+ end
68
72
 
69
73
  private
70
74
 
@@ -87,7 +91,7 @@ module Moory
87
91
  @focus = unit_name
88
92
  end
89
93
 
90
- def forward(stimulus)
94
+ def distribute(stimulus)
91
95
  active_unit.issue(stimulus)
92
96
  @consequences
93
97
  end
@@ -1,3 +1,3 @@
1
1
  module Moory
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moory
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam W. Grant
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-11 00:00:00.000000000 Z
11
+ date: 2018-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler