aasm-vis 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aasm/vis/version.rb +1 -1
- data/lib/aasm/vis.rb +7 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11920e9448b638133c2046027a26b757952cb1fe520e9c403b3555ef1511f4fd
|
4
|
+
data.tar.gz: 9346db77906aee7d178070df116b0b80cf0f66d710e0edfd3be91f30a439f726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bfb6f306b4d1077c5c0440021b2ab0ed2613024e2524dfd89e5d970e463c2029e0028c3cb0344211939cc87b1d8bef3631b0f948471e385fb414e9c062dcc74
|
7
|
+
data.tar.gz: 5822cec22a72e374c2df4cf237cc9d36cd0a71ccd9f714f1210bd554a9feb253ab52c0478a72f76b799cc934d0893517212b1787a54a89c4a0409f3c6f91d61a
|
data/lib/aasm/vis/version.rb
CHANGED
data/lib/aasm/vis.rb
CHANGED
@@ -26,6 +26,11 @@ module AASM
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
29
34
|
results << <<~TXT
|
30
35
|
```mermaid
|
31
36
|
---
|
@@ -36,6 +41,8 @@ module AASM
|
|
36
41
|
#{klass.aasm(column).states.map { |state| "#{state.name} : #{state.default_display_name}" }.join("\n") }
|
37
42
|
|
38
43
|
#{transitions.map { |from, to| "#{from.nil? ? "[*]" : from } --> #{to}" }.join("\n") }
|
44
|
+
|
45
|
+
#{transitions.map { |_from, to| "#{to} --> [*]" if transitions.none? { |t| t[0] == to } }.reject(&:nil?).join("\n")}
|
39
46
|
```
|
40
47
|
TXT
|
41
48
|
end
|