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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b24e07887d8c7f4d4337ec7de04cfdec4f1ea10d
4
- data.tar.gz: 79ca3e661bc0e17025907bb475d08d854ec75dfa
3
+ metadata.gz: 33ff65e2125386411609dec3cb92317557b835e0
4
+ data.tar.gz: 299a692730662cc4179b063959a067ce70b3cc33
5
5
  SHA512:
6
- metadata.gz: d489810c365bf0159f82a09832c49e03ee39e8df515264b029069044befb31033a7d5fb4b0c76b7a809718aac5b582fae97cb287e9726cec25e5383dd8fc69c8
7
- data.tar.gz: 96f0516da3abf0f01bd6d6e789f08984255b37b42554287be871ecba4eba3261f186f65508b7baefebafe81140e204e18d8308af9fbe523cc2ab2befdb00ff08
6
+ metadata.gz: 36d9639ade371ead35ee47bf9ab8e908cf0e3009d342f528eb6c9e9882cca098cf8faa25dc700affbe889cc3e904e7b7fa0b37f833e9f718b0301e0170b261b1
7
+ data.tar.gz: 1080da7b145cb1a699fc34bef05491f5b08b876fe865221c1c146785ad1f355a65f300f4217b5e7e5dcd46e4af150fde2bdf872fa734d9ca986be0c87e9e5e9f
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .DS_Store
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
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](http://github.com/melborne/Gviz/raw/master/examples/sample1.png)
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](http://github.com/melborne/Gviz/raw/master/examples/sample2.png)
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](http://github.com/melborne/Gviz/raw/master/examples/sample3.png)
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](http://github.com/melborne/Gviz/raw/drawing/examples/sample4.png)
127
+ ![sample4](https://github.com/melborne/Gviz/raw/master/examples/sample4.png)
128
128
 
129
129
  Another examples are at `examples` directory
130
130
 
@@ -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'
@@ -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#{type} #{path}.dot -o #{path}.#{type}" if type
232
+ system "dot", "-T", type.to_s, "#{path}.dot", "-o", "#{path}.#{type}" if type
233
233
  end
234
234
 
235
235
  private
@@ -1,3 +1,3 @@
1
1
  class Gviz
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -93,9 +93,6 @@ describe Gviz::Edge do
93
93
  it "returns undirected graph edges" do
94
94
  expect(Gviz::Edge.new('a_b').to_s).to eq "a -- b"
95
95
  end
96
- after() do
97
- $graph_type = :digraph
98
- end
99
96
  end
100
97
  end
101
98
  end
@@ -10,7 +10,7 @@ end
10
10
 
11
11
  RSpec.configure do |c|
12
12
  c.include Helpers
13
- c.before do
13
+ c.after do
14
14
  $graph_type = :digraph
15
15
  end
16
16
  end
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
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: 2014-02-26 00:00:00.000000000 Z
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: '0'
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: '0'
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.2.0
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: