gviz 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +4 -4
- data/gviz.gemspec +1 -1
- data/lib/gviz/core.rb +1 -1
- data/lib/gviz/version.rb +1 -1
- data/spec/gviz_edge_spec.rb +0 -3
- data/spec/spec_helper.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33ff65e2125386411609dec3cb92317557b835e0
|
4
|
+
data.tar.gz: 299a692730662cc4179b063959a067ce70b3cc33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36d9639ade371ead35ee47bf9ab8e908cf0e3009d342f528eb6c9e9882cca098cf8faa25dc700affbe889cc3e904e7b7fa0b37f833e9f718b0301e0170b261b1
|
7
|
+
data.tar.gz: 1080da7b145cb1a699fc34bef05491f5b08b876fe865221c1c146785ad1f355a65f300f4217b5e7e5dcd46e4af150fde2bdf872fa734d9ca986be0c87e9e5e9f
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -38,7 +38,7 @@ A simple example.
|
|
38
38
|
|
39
39
|
This outputs `sample1.dot` and `sample1.png` files shown as below.
|
40
40
|
|
41
|
-
![sample1](
|
41
|
+
![sample1](https://github.com/melborne/Gviz/raw/master/examples/sample1.png)
|
42
42
|
|
43
43
|
|
44
44
|
|
@@ -66,7 +66,7 @@ Add some attributes to the graph, nodes, edges.
|
|
66
66
|
|
67
67
|
This outputs below.
|
68
68
|
|
69
|
-
![sample2](
|
69
|
+
![sample2](https://github.com/melborne/Gviz/raw/master/examples/sample2.png)
|
70
70
|
|
71
71
|
|
72
72
|
Modify some.
|
@@ -102,7 +102,7 @@ Modify some.
|
|
102
102
|
|
103
103
|
This outputs below.
|
104
104
|
|
105
|
-
![sample3](
|
105
|
+
![sample3](https://github.com/melborne/Gviz/raw/master/examples/sample3.png)
|
106
106
|
|
107
107
|
## Use for Drawing
|
108
108
|
|
@@ -124,7 +124,7 @@ Gviz helps you easily to draw shapes on an exact position using shape-named meth
|
|
124
124
|
|
125
125
|
This outputs below(consider a scale if save to output formats).
|
126
126
|
|
127
|
-
![sample4](
|
127
|
+
![sample4](https://github.com/melborne/Gviz/raw/master/examples/sample4.png)
|
128
128
|
|
129
129
|
Another examples are at `examples` directory
|
130
130
|
|
data/gviz.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
gem.required_ruby_version = '>=2.0.0'
|
20
|
-
gem.add_development_dependency 'rspec'
|
20
|
+
gem.add_development_dependency 'rspec', "~> 2.1"
|
21
21
|
gem.add_development_dependency "bundler", "~> 1.5"
|
22
22
|
gem.add_development_dependency "rake"
|
23
23
|
gem.add_dependency 'thor'
|
data/lib/gviz/core.rb
CHANGED
@@ -229,7 +229,7 @@ class Gviz
|
|
229
229
|
# the image is also created.
|
230
230
|
def save(path, type=nil)
|
231
231
|
File.open("#{path}.dot", "w") { |f| f.puts self }
|
232
|
-
system "dot -T
|
232
|
+
system "dot", "-T", type.to_s, "#{path}.dot", "-o", "#{path}.#{type}" if type
|
233
233
|
end
|
234
234
|
|
235
235
|
private
|
data/lib/gviz/version.rb
CHANGED
data/spec/gviz_edge_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gviz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyoendo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.4.5
|
130
130
|
signing_key:
|
131
131
|
specification_version: 4
|
132
132
|
summary: Ruby's interface of graphviz. It generate a dot file with simple ruby's syntax.
|
@@ -139,4 +139,3 @@ test_files:
|
|
139
139
|
- spec/gviz_spec.rb
|
140
140
|
- spec/spec_helper.rb
|
141
141
|
- spec/system_extension_spec.rb
|
142
|
-
has_rdoc:
|