graph 2.7.1 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +10 -0
- data/README.txt +1 -1
- data/lib/graph.rb +10 -1
- data/test/test_graph.rb +6 -0
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb34c141ed522c2c0da2da754540cd594805a7ce
|
|
4
|
+
data.tar.gz: 1be34e2646de65771ee0840410a62a9f926ece29
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cde57b10aac08b7d7083ca3805e9e130cc1e102406654a35d5bdaa04fb732a89b9ceb4265543210016f5fef73896b7690e280874954b1e931f1b3d7fe9505df5
|
|
7
|
+
data.tar.gz: 1d8603f7d9f06588bf52b232a2619b1f14b1bdb622ae7c0ea85e5049fd1e5e25d5a6c58bed61642fff1c9b191f21e5e5b740e17ad68c760e1ed46a785ed97548
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/History.txt
CHANGED
data/README.txt
CHANGED
data/lib/graph.rb
CHANGED
|
@@ -7,7 +7,7 @@ require "enumerator"
|
|
|
7
7
|
# dot format.
|
|
8
8
|
|
|
9
9
|
class Graph
|
|
10
|
-
VERSION = "2.
|
|
10
|
+
VERSION = "2.8.0" # :nodoc:
|
|
11
11
|
|
|
12
12
|
# :stopdoc:
|
|
13
13
|
|
|
@@ -539,6 +539,15 @@ class Graph
|
|
|
539
539
|
self.to = to
|
|
540
540
|
end
|
|
541
541
|
|
|
542
|
+
##
|
|
543
|
+
# Sets the decorate attribute.
|
|
544
|
+
# Decorate connects the label to the deg with a line
|
|
545
|
+
|
|
546
|
+
def decorate decorate
|
|
547
|
+
self.attributes << "decorate = #{decorate}"
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
|
|
542
551
|
##
|
|
543
552
|
# Returns the edge in dot syntax.
|
|
544
553
|
|
data/test/test_graph.rb
CHANGED
|
@@ -443,6 +443,12 @@ class TestEdge < Minitest::Test
|
|
|
443
443
|
assert_equal ["label = \"blah\\nblah\""], e.attributes
|
|
444
444
|
end
|
|
445
445
|
|
|
446
|
+
def test_decorate
|
|
447
|
+
e.decorate "true"
|
|
448
|
+
|
|
449
|
+
assert_equal ["decorate = true"], e.attributes
|
|
450
|
+
end
|
|
451
|
+
|
|
446
452
|
def test_to_s
|
|
447
453
|
assert_equal '"a" -> "b"', e.to_s
|
|
448
454
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Davis
|
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
|
29
29
|
xJcC6UN6NHMOVMyAXsr2HR0gRRx4ofN1LoP2KhXzSr8UMvQYlwPmE0N5GQv1b5AO
|
|
30
30
|
VpzF30vNaJK6ZT7xlIsIlwmH
|
|
31
31
|
-----END CERTIFICATE-----
|
|
32
|
-
date: 2014-
|
|
32
|
+
date: 2014-12-10 00:00:00.000000000 Z
|
|
33
33
|
dependencies:
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: minitest
|
|
@@ -65,21 +65,21 @@ dependencies:
|
|
|
65
65
|
requirements:
|
|
66
66
|
- - ~>
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '3.
|
|
68
|
+
version: '3.13'
|
|
69
69
|
type: :development
|
|
70
70
|
prerelease: false
|
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - ~>
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '3.
|
|
75
|
+
version: '3.13'
|
|
76
76
|
description: "Graph is a type of hash that outputs in graphviz's dot format. It\ncomes
|
|
77
77
|
with a command-line interface that is easily pluggable.\n\nIt ships with plugins
|
|
78
78
|
to graph dependencies and status of installed\nrubygems, rake tasks, homebrew ports,
|
|
79
79
|
mac ports, and freebsd ports,\ncoloring leaf nodes blue, outdated nodes red, and
|
|
80
80
|
outdated leaf nodes\npurple (red+blue).\n\nOSX quick tip: \n\n % sudo gem install
|
|
81
|
-
graph\n % sudo brew install graphviz\n % gem unpack graph\n
|
|
82
|
-
\ % rake gallery\n % open gallery/*.png"
|
|
81
|
+
graph --development\n % sudo brew install graphviz\n % gem unpack graph\n
|
|
82
|
+
\ % cd graph*\n % rake gallery\n % open gallery/*.png"
|
|
83
83
|
email:
|
|
84
84
|
- ryand-ruby@zenspider.com
|
|
85
85
|
executables:
|
metadata.gz.sig
CHANGED
|
Binary file
|