Skip to content

Commit 8acb5c2

Browse files
committed
Make transition-supply a multi for Tinky::DB
1 parent 9a67e7d commit 8acb5c2

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Changes

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
v0.1.3 Thu 29 Apr 07:57:17 BST 2021
2+
* Make more multi on Workflow for convenience of sub-classes
13
v0.1.2 Mon 19 Apr 14:44:33 BST 2021
24
* Add some lifecycle callbacks to the object for the convenience of sub-classes
35
* Fix the application of the role

META6.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "Tinky",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"auth": "github:jonathanstowe",
55
"api": "1.0",
6-
"description": "An Experimental Workflow / State Management toolit",
6+
"description": "An Experimental Workflow / State Management toolkit",
77
"source-url": "https://github.com/jonathanstowe/Tinky.git",
88
"support": {
99
"email": "jns+git@gellyfish.co.uk",

lib/Tinky.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ current state on the object.
772772
773773
=end pod
774774

775-
module Tinky:ver<0.1.2>:auth<github:jonathanstowe>:api<1.0> {
775+
module Tinky:ver<0.1.3>:auth<github:jonathanstowe>:api<1.0> {
776776

777777
# Stub here, definition below
778778
class State { ... };
@@ -1106,7 +1106,7 @@ module Tinky:ver<0.1.2>:auth<github:jonathanstowe>:api<1.0> {
11061106
}
11071107

11081108
has Supply $!transition-supply;
1109-
method transition-supply( --> Supply ) {
1109+
multi method transition-supply( --> Supply ) {
11101110
$!transition-supply //= do {
11111111
my @supplies = self.transitions.Seq.map( -> $transition { $transition.supply.map(-> $value { $transition, $value }) });
11121112
Supply.merge(@supplies);

0 commit comments

Comments
 (0)