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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f756ead23838485a7e579bdca364d35c3dcf130343666663ba9c5f43402bad8
4
- data.tar.gz: 40bcc2c422245eb0ac766e570d1270504c1d1650950def681f3e6c8396bf441b
3
+ metadata.gz: 11920e9448b638133c2046027a26b757952cb1fe520e9c403b3555ef1511f4fd
4
+ data.tar.gz: 9346db77906aee7d178070df116b0b80cf0f66d710e0edfd3be91f30a439f726
5
5
  SHA512:
6
- metadata.gz: 3f7ef73f86261bdd70b7f3d4cc38e69969358af85538bd41d957e55965dd3c3e0baac1d454bca88e7c69fb7a6310cdb39f900b83f838eb785a022c0acdba643b
7
- data.tar.gz: e952f5a6b41aef091800199d2af5a2fdaf827af7b9406df607ab78673b26420f986843e34cfd206fa78e36dd593ad66838514123ea5de8bf109591fc5a03920f
6
+ metadata.gz: 3bfb6f306b4d1077c5c0440021b2ab0ed2613024e2524dfd89e5d970e463c2029e0028c3cb0344211939cc87b1d8bef3631b0f948471e385fb414e9c062dcc74
7
+ data.tar.gz: 5822cec22a72e374c2df4cf237cc9d36cd0a71ccd9f714f1210bd554a9feb253ab52c0478a72f76b799cc934d0893517212b1787a54a89c4a0409f3c6f91d61a
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AASM
4
4
  module Vis
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aasm-vis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Gwóźdź