graphviz_transitions 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphviz_transitions/version.rb +1 -1
- data/lib/tasks/graphviz_transitions.rake +10 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8419987db3aedd35c78ebb70112fa1758a8a497a
|
4
|
+
data.tar.gz: 09398fca7aa846fb6c4ce54002ec3aac88b71cd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 896d2f97811b1e1dc1b8f0ca87e08311c338ac1e5fa15e1e07cbf3c2efbf0c2be599e3382d801b4a1c9d31688bd0c8fe06f7a8e5d564e212350edd984b55f87b
|
7
|
+
data.tar.gz: e9bd538e148a747f079ce01a9edad4ffa131ea4dc524908ab1891b8ce3105db1d522cc4a9127f556457118752ee9ecdca827e45b961fa7624c8dabb694e98c8a
|
@@ -0,0 +1,10 @@
|
|
1
|
+
namespace :transitions do
|
2
|
+
desc "Draws Transitions states using GraphViz (options: CLASS=User,Vehicle; TARGET=/folder/path ; ORIENTATION=portrait;)"
|
3
|
+
task draw: :environment do
|
4
|
+
options = {}
|
5
|
+
options[:path] = ENV['TARGET'] if ENV['TARGET']
|
6
|
+
options[:orientation] = ENV['ORIENTATION'] if ENV['ORIENTATION']
|
7
|
+
|
8
|
+
Transitions::Machine.draw(ENV['CLASS'], options)
|
9
|
+
end
|
10
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphviz_transitions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Itkin
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- lib/graphviz_transitions.rb
|
83
83
|
- lib/graphviz_transitions/railtie.rb
|
84
84
|
- lib/graphviz_transitions/version.rb
|
85
|
+
- lib/tasks/graphviz_transitions.rake
|
85
86
|
- lib/transitions/graph.rb
|
86
87
|
- spec/lib/graphviz_aasm_spec.rb
|
87
88
|
- spec/spec_helper.rb
|