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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca3590ccc9a8e59faa1f476fdc5040cf6042581f
4
- data.tar.gz: 21044a3ad7fb2512fe29d110655bf97dd2dcd84f
3
+ metadata.gz: 0a197c2d36873e26b2de620f97d8180782b059a8
4
+ data.tar.gz: 5ea01f31f7fc7658e1fb9f6191b95c9367ac1a5c
5
5
  SHA512:
6
- metadata.gz: efb8318d957ef1f33ab03c49528a2b222e670d2b9bf2547974eda61af68037503a7f6a148917c2bc37ccf0081afb8d95d23a847ba9c9b69e8053e35bb165127a
7
- data.tar.gz: 8498622a278ed83a5870f291aa18193dbc94d333b6673bc848b0609bb060c7a8514db75a63c674a28c4fd646a344ee94cba5a469cce8922b49ef087dcdd9c935
6
+ metadata.gz: 88eb555e1a56c21c2b406d6d7b283d67c5347243897254e664d80dc67763dab2d5a8d7268011bb9715de60f9e10eb83d936d3a4ad1421beec0c703fa67a406a7
7
+ data.tar.gz: 27f358220e8c5632b44732ff028dfccd00d33db77b9770c577d320c1a68f4c94d58ebc9ec257825ff1b09cd3ec9b2685d4e6c0dfd62595f942b8b6cd18103225
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.3.3
5
+ - 2.2.6
6
+ - 2.1.9
7
+
8
+ before_install:
9
+ - sudo apt-get update -yq && sudo apt-get install -y graphviz
10
+ - gem install bundler -v 1.14.4
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
 
@@ -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'
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "statesman-diagram"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.1.1"
8
8
  spec.authors = ["Ilya Vassilevsky"]
9
9
  spec.email = ["vassilevsky@gmail.com"]
10
10
 
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.0
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-02-15 00:00:00.000000000 Z
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.5.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