graph 2.7.1 → 2.8.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
  SHA1:
3
- metadata.gz: d43217847ab6f968f52ced4d54311cca4a322cc1
4
- data.tar.gz: 16e8b0788c331f2f2093a2ca7db910b4b409c879
3
+ metadata.gz: cb34c141ed522c2c0da2da754540cd594805a7ce
4
+ data.tar.gz: 1be34e2646de65771ee0840410a62a9f926ece29
5
5
  SHA512:
6
- metadata.gz: 64a280d9e010e7d014266f7f3bd81cc0aefb1911227ad64e472461214e97e94cd39d2a743ec4ce30537a63ed6b73a06e4e477e7d5c54b87147d5afb162a16a98
7
- data.tar.gz: 89807e9f9584b4bbe9f63a0b19511f8d94b81c315bc2471abaee32e85e472ba1d69650f874823fca534d88ca8e84238f02b7d57b181ff158b6fe40f7f40dea51
6
+ metadata.gz: cde57b10aac08b7d7083ca3805e9e130cc1e102406654a35d5bdaa04fb732a89b9ceb4265543210016f5fef73896b7690e280874954b1e931f1b3d7fe9505df5
7
+ data.tar.gz: 1d8603f7d9f06588bf52b232a2619b1f14b1bdb622ae7c0ea85e5049fd1e5e25d5a6c58bed61642fff1c9b191f21e5e5b740e17ad68c760e1ed46a785ed97548
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,13 @@
1
+ === 2.8.0 / 2014-12-09
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added Edge#decorate. (thagomizer)
6
+
7
+ * 1 bug fix:
8
+
9
+ * Fixed readme quick tip by including dev deps when installing graph. (amejiarosario)
10
+
1
11
  === 2.7.1 / 2014-09-26
2
12
 
3
13
  * 1 bug fix:
data/README.txt CHANGED
@@ -14,7 +14,7 @@ purple (red+blue).
14
14
 
15
15
  OSX quick tip:
16
16
 
17
- % sudo gem install graph
17
+ % sudo gem install graph --development
18
18
  % sudo brew install graphviz
19
19
  % gem unpack graph
20
20
  % cd graph*
@@ -7,7 +7,7 @@ require "enumerator"
7
7
  # dot format.
8
8
 
9
9
  class Graph
10
- VERSION = "2.7.1" # :nodoc:
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
 
@@ -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.7.1
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-09-26 00:00:00.000000000 Z
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.12'
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.12'
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 % cd 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