statesman-diagram 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/.vexor.yml +10 -0
- data/README.md +6 -0
- data/lib/tasks/statesman.rake +1 -1
- data/statesman-diagram.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a197c2d36873e26b2de620f97d8180782b059a8
|
4
|
+
data.tar.gz: 5ea01f31f7fc7658e1fb9f6191b95c9367ac1a5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88eb555e1a56c21c2b406d6d7b283d67c5347243897254e664d80dc67763dab2d5a8d7268011bb9715de60f9e10eb83d936d3a4ad1421beec0c703fa67a406a7
|
7
|
+
data.tar.gz: 27f358220e8c5632b44732ff028dfccd00d33db77b9770c577d320c1a68f4c94d58ebc9ec257825ff1b09cd3ec9b2685d4e6c0dfd62595f942b8b6cd18103225
|
data/.vexor.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Statesman State Diagram
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/statesman-diagram.svg)](https://badge.fury.io/rb/statesman-diagram)
|
4
|
+
[![Vexor CI](https://ci.vexor.io/projects/e5845e24-f99f-4ede-a23e-4541600f4d26/status.svg)](https://ci.vexor.io/ui/projects/e5845e24-f99f-4ede-a23e-4541600f4d26/builds)
|
5
|
+
|
6
|
+
Extension of [Statesman](https://rubygems.org/gems/statesman) to get state diagrams.
|
7
|
+
|
3
8
|
Adds `.to_dot` method to `Statesman::Machine`. It can export your machine
|
4
9
|
class definition to the
|
5
10
|
[DOT](https://en.wikipedia.org/wiki/DOT_%28graph_description_language%29) format.
|
@@ -30,6 +35,7 @@ Or install it yourself as:
|
|
30
35
|
|
31
36
|
* GraphViz (the `dot` program)
|
32
37
|
* `brew install graphviz` on OS X / macOS
|
38
|
+
* `sudo apt-get install graphviz` on Ubuntu / Debian
|
33
39
|
|
34
40
|
## Usage
|
35
41
|
|
data/lib/tasks/statesman.rake
CHANGED
@@ -6,7 +6,7 @@ namespace :statesman do
|
|
6
6
|
dot = machine_class.to_dot
|
7
7
|
puts "Here it is in the textual form:"
|
8
8
|
puts dot
|
9
|
-
filename = "#{machine_class}.png"
|
9
|
+
filename = "#{machine_class.name.gsub('::','_')}.png"
|
10
10
|
cmd = %W(dot -Tpng -o#{filename})
|
11
11
|
puts "Running '#{cmd.join(' ')}' with this ^ as stdin..."
|
12
12
|
require 'open3'
|
data/statesman-diagram.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statesman-diagram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Vassilevsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -74,6 +74,7 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- ".vexor.yml"
|
77
78
|
- Gemfile
|
78
79
|
- LICENSE.txt
|
79
80
|
- README.md
|
@@ -101,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
102
|
version: '0'
|
102
103
|
requirements: []
|
103
104
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.6.12
|
105
106
|
signing_key:
|
106
107
|
specification_version: 4
|
107
108
|
summary: Generates DOT representations of Statesman machines and runs dot to render
|