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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26c1aa9d0f680a3dd750b9776bb7c5a1765adcd0
4
- data.tar.gz: 8fa7505df9933641380eeb8b611715868a02e09e
3
+ metadata.gz: 8419987db3aedd35c78ebb70112fa1758a8a497a
4
+ data.tar.gz: 09398fca7aa846fb6c4ce54002ec3aac88b71cd5
5
5
  SHA512:
6
- metadata.gz: 5b4c908432267f598be02c9bc9ed8580e33ed5dab95bf0ec421305edb51425995f47cbb68d98f0884ed15fe9c4fd63f82ed14e70f3edea854573a6c83b2e2cc8
7
- data.tar.gz: 7ebb86e6b8c2995f4dfbd1309bb6d99cd00d760277eb179a5ff8a0358b628e36ca0b709f21f9c07be2da5a9e644f16703bc068f41ba02d2adcc243be0d8c91ee
6
+ metadata.gz: 896d2f97811b1e1dc1b8f0ca87e08311c338ac1e5fa15e1e07cbf3c2efbf0c2be599e3382d801b4a1c9d31688bd0c8fe06f7a8e5d564e212350edd984b55f87b
7
+ data.tar.gz: e9bd538e148a747f079ce01a9edad4ffa131ea4dc524908ab1891b8ce3105db1d522cc4a9127f556457118752ee9ecdca827e45b961fa7624c8dabb694e98c8a
@@ -1,3 +1,3 @@
1
1
  module GraphvizTransitions
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -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.1
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