graphviz 1.2.1 → 1.3.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
  SHA256:
3
- metadata.gz: 30f9b04b7b92d57ff9e1e4f68ae81c01366983bc036f672b0010ad59b7eab6f2
4
- data.tar.gz: f7a50152baff26bd21462607ce6e79c402554b431ee8b7ed9dd73bfc1e23550c
3
+ metadata.gz: 29e052052371da093f8af8d18ce86648e07d2db5b6f5f52611ba7e2e9ec209b3
4
+ data.tar.gz: 8f0a0adcc7ade5c1d3bdc83b31fe9a4e2959634165315dc13ea4064a7acafcd8
5
5
  SHA512:
6
- metadata.gz: dfeb350f6a1f2f8875b9b16f7c85172a6aec3628c6fc361a405946a9faf166de55649e1d8ea31cfd4ccc12c968748354ded9815a2ef2d2c960f549612455622b
7
- data.tar.gz: 3c5e94544debcae56ac98d17d8cc3883006fba432f912d1d3b5259f77bbd4443993720ad1e831d57ecaca8ab03864fc24ec3f70f11ff303c1255bcce89416d06
6
+ metadata.gz: 9f7dcd70d3cae48a797144b9eb0b0f71e2511ec441fface71941db08e5b8c7d1fedd94fe16d6b3be1b6625323133b9ff7743474957e79286d5536c2f147023e9
7
+ data.tar.gz: 7c733e2aed2377287d95e8fb0ff499a9bc88c0d35bda353d8f5b25d7d620888b1d4266b22b53023b22c963e5d31aa034115679aa244bd362d5420aefac50677c
checksums.yaml.gz.sig ADDED
Binary file
data/lib/graphviz/edge.rb CHANGED
@@ -1,24 +1,9 @@
1
- # Copyright, 2014, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
20
2
 
21
- require 'stringio'
3
+ # Released under the MIT License.
4
+ # Copyright, 2017-2025, by Samuel Williams.
5
+
6
+ require "stringio"
22
7
 
23
8
  module Graphviz
24
9
  # Represents a visual edge between two nodes.
@@ -1,32 +1,21 @@
1
- # Copyright, 2014, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
20
2
 
21
- require 'stringio'
3
+ # Released under the MIT License.
4
+ # Copyright, 2013-2025, by Samuel Williams.
5
+ # Copyright, 2018, by Fred Heath.
6
+ # Copyright, 2020, by Dustin Zeisler.
7
+ # Copyright, 2021, by Jun Jiang.
8
+ # Copyright, 2025, by Martin Vidner.
22
9
 
23
- require_relative 'node'
10
+ require "stringio"
11
+
12
+ require_relative "node"
24
13
 
25
14
  module Graphviz
26
15
  # Contains a set of nodes, edges and subgraphs.
27
16
  class Graph < Node
28
17
  # Initialize the graph with the specified unique name.
29
- def initialize(name = 'G', parent = nil, **attributes)
18
+ def initialize(name = "G", parent = nil, **attributes)
30
19
  super
31
20
 
32
21
  @edges = []
@@ -54,7 +43,7 @@ module Graphviz
54
43
  def add_subgraph(name = nil, **attributes)
55
44
  name ||= "#{@name}S#{@nodes.count}"
56
45
 
57
- subgraph = Graph.new(name, self, attributes)
46
+ subgraph = Graph.new(name, self, **attributes)
58
47
 
59
48
  self << subgraph
60
49
 
@@ -95,9 +84,9 @@ module Graphviz
95
84
 
96
85
  def graph_format(options)
97
86
  if @graph
98
- 'subgraph'
87
+ "subgraph"
99
88
  else
100
- options[:format] || 'digraph'
89
+ options[:format] || "digraph"
101
90
  end
102
91
  end
103
92
 
data/lib/graphviz/node.rb CHANGED
@@ -1,24 +1,10 @@
1
- # Copyright, 2017, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
20
2
 
21
- require_relative 'edge'
3
+ # Released under the MIT License.
4
+ # Copyright, 2017-2025, by Samuel Williams.
5
+ # Copyright, 2021, by Jun Jiang.
6
+
7
+ require_relative "edge"
22
8
 
23
9
  module Graphviz
24
10
  # Represents a visual node in the graph, which can be connected to other nodes.
@@ -1,23 +1,8 @@
1
- # Copyright, 2014, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2013-2025, by Samuel Williams.
20
5
 
21
6
  module Graphviz
22
- VERSION = "1.2.1"
7
+ VERSION = "1.3.0"
23
8
  end
data/lib/graphviz.rb CHANGED
@@ -1,27 +1,13 @@
1
- # Copyright, 2014, by Samuel G. D. Williams. <http://www.codeotaku.com>
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining a copy
4
- # of this software and associated documentation files (the "Software"), to deal
5
- # in the Software without restriction, including without limitation the rights
6
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- # copies of the Software, and to permit persons to whom the Software is
8
- # furnished to do so, subject to the following conditions:
9
- #
10
- # The above copyright notice and this permission notice shall be included in
11
- # all copies or substantial portions of the Software.
12
- #
13
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- # THE SOFTWARE.
1
+ # frozen_string_literal: true
2
+
3
+ # Released under the MIT License.
4
+ # Copyright, 2013-2025, by Samuel Williams.
5
+ # Copyright, 2017, by Kieran Trezona-le Comte.
20
6
 
21
7
  require_relative "graphviz/version"
22
8
  require_relative "graphviz/graph"
23
9
 
24
- require 'process/pipeline'
10
+ require "process/pipeline"
25
11
 
26
12
  module Graphviz
27
13
  # Outputs the graph using the +dot+ executable.
@@ -30,7 +16,7 @@ module Graphviz
30
16
  # @option options [String] :format ('pdf') The output format (e.g. pdf).
31
17
  # @option options [String] :path The output path, if not specified data is returned.
32
18
  # @option options [String] :dot ('dot') The +dot+ executable to use.
33
- def self.output(graph, path: nil, format: 'pdf', dot: 'dot')
19
+ def self.output(graph, path: nil, format: "pdf", dot: "dot")
34
20
  output_format = format
35
21
 
36
22
  if path
data/license.md ADDED
@@ -0,0 +1,29 @@
1
+ # MIT License
2
+
3
+ Copyright, 2013-2025, by Samuel Williams.
4
+ Copyright, 2017, by Wesley Mouedine Assaby.
5
+ Copyright, 2017, by Lucas Caton.
6
+ Copyright, 2017, by Kieran Trezona-le Comte.
7
+ Copyright, 2018, by Fred Heath.
8
+ Copyright, 2020, by Dustin Zeisler.
9
+ Copyright, 2021, by Jun Jiang.
10
+ Copyright, 2025, by Elijah Miller.
11
+ Copyright, 2025, by Martin Vidner.
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
data/readme.md ADDED
@@ -0,0 +1,27 @@
1
+ # Graphviz
2
+
3
+ Graphviz is a graph visualisation system. This gem is a lightweight interface for generating graphs with Graphviz.
4
+
5
+ [![Development Status](https://github.com/ioquatix/graphviz/workflows/Test/badge.svg)](https://github.com/ioquatix/graphviz/actions?workflow=Test)
6
+
7
+ ## Usage
8
+
9
+ Please see the <a href="https://ioquatix.github.io/graphviz/">project documentation</a> or run it locally using `bake utopia:project:serve`.
10
+
11
+ ## Contributing
12
+
13
+ We welcome contributions to this project.
14
+
15
+ 1. Fork it.
16
+ 2. Create your feature branch (`git checkout -b my-new-feature`).
17
+ 3. Commit your changes (`git commit -am 'Add some feature'`).
18
+ 4. Push to the branch (`git push origin my-new-feature`).
19
+ 5. Create new Pull Request.
20
+
21
+ ### Developer Certificate of Origin
22
+
23
+ In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
24
+
25
+ ### Community Guidelines
26
+
27
+ This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
data.tar.gz.sig ADDED
Binary file
metadata CHANGED
@@ -1,14 +1,51 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphviz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
+ - Dustin Zeisler
9
+ - Elijah Miller
10
+ - Martin Vidner
11
+ - Fred Heath
12
+ - Jun Jiang
13
+ - Kieran Trezona-le Comte
14
+ - Lucas Caton
15
+ - Wesley Mouedine Assaby
8
16
  autorequire:
9
17
  bindir: bin
10
- cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
18
+ cert_chain:
19
+ - |
20
+ -----BEGIN CERTIFICATE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uijgqR4sGDlRsMC4GA1UdEQQnMCWBI3NhbXVlbC53aWxs
37
+ aWFtc0BvcmlvbnRyYW5zZmVyLmNvLm56MC4GA1UdEgQnMCWBI3NhbXVlbC53aWxs
38
+ aWFtc0BvcmlvbnRyYW5zZmVyLmNvLm56MA0GCSqGSIb3DQEBCwUAA4IBgQB5sxkE
39
+ cBsSYwK6fYpM+hA5B5yZY2+L0Z+27jF1pWGgbhPH8/FjjBLVn+VFok3CDpRqwXCl
40
+ xCO40JEkKdznNy2avOMra6PFiQyOE74kCtv7P+Fdc+FhgqI5lMon6tt9rNeXmnW/
41
+ c1NaMRdxy999hmRGzUSFjozcCwxpy/LwabxtdXwXgSay4mQ32EDjqR1TixS1+smp
42
+ 8C/NCWgpIfzpHGJsjvmH2wAfKtTTqB9CVKLCWEnCHyCaRVuKkrKjqhYCdmMBqCws
43
+ JkxfQWC+jBVeG9ZtPhQgZpfhvh+6hMhraUYRQ6XGyvBqEUe+yo6DKIT3MtGE2+CP
44
+ eX9i9ZWBydWb8/rvmwmX2kkcBbX0hZS1rcR593hGc61JR6lvkGYQ2MYskBveyaxt
45
+ Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
46
+ voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
47
+ -----END CERTIFICATE-----
48
+ date: 2025-01-04 00:00:00.000000000 Z
12
49
  dependencies:
13
50
  - !ruby/object:Gem::Dependency
14
51
  name: process-pipeline
@@ -24,48 +61,6 @@ dependencies:
24
61
  - - ">="
25
62
  - !ruby/object:Gem::Version
26
63
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: covered
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '3.6'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '3.6'
69
64
  description:
70
65
  email:
71
66
  executables: []
@@ -77,11 +72,15 @@ files:
77
72
  - lib/graphviz/graph.rb
78
73
  - lib/graphviz/node.rb
79
74
  - lib/graphviz/version.rb
75
+ - license.md
76
+ - readme.md
80
77
  homepage: https://github.com/ioquatix/graphviz
81
78
  licenses:
82
79
  - MIT
83
80
  metadata:
81
+ documentation_uri: https://ioquatix.github.io/graphviz/
84
82
  funding_uri: https://github.com/sponsors/ioquatix/
83
+ source_code_uri: https://github.com/ioquatix/graphviz.git
85
84
  post_install_message:
86
85
  rdoc_options: []
87
86
  require_paths:
@@ -90,14 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
89
  requirements:
91
90
  - - ">="
92
91
  - !ruby/object:Gem::Version
93
- version: '0'
92
+ version: '3.1'
94
93
  required_rubygems_version: !ruby/object:Gem::Requirement
95
94
  requirements:
96
95
  - - ">="
97
96
  - !ruby/object:Gem::Version
98
97
  version: '0'
99
98
  requirements: []
100
- rubygems_version: 3.1.2
99
+ rubygems_version: 3.5.22
101
100
  signing_key:
102
101
  specification_version: 4
103
102
  summary: A lightweight interface for generating graphs with Graphviz.
metadata.gz.sig ADDED
Binary file