graph 2.3.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +13 -0
- data/lib/graph.rb +7 -3
- data/lib/rake_analyzer.rb +8 -1
- metadata +18 -18
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
=== 2.4.0 / 2012-01-16
|
2
|
+
|
3
|
+
* 4 minor enhancements:
|
4
|
+
|
5
|
+
* Renamed arrow_none to none_arrow.
|
6
|
+
* Renamed box to box_arrow (because the box shape was already defined).
|
7
|
+
* Renamed diamond to diamond_arrow (because the diamond shape was already defined).
|
8
|
+
* Allow rake analyzer to read from stdin, making it more usable for isolated systems.
|
9
|
+
|
10
|
+
* 1 bug fix:
|
11
|
+
|
12
|
+
* Fixed 1.9.3 warnings.
|
13
|
+
|
1
14
|
=== 2.3.1 / 2011-12-19
|
2
15
|
|
3
16
|
* 1 minor enhancement:
|
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.4.0" # :nodoc:
|
11
11
|
|
12
12
|
LIGHT_COLORS = %w(gray lightblue lightcyan lightgray lightpink
|
13
13
|
lightslategray lightsteelblue white)
|
@@ -70,7 +70,12 @@ class Graph
|
|
70
70
|
end
|
71
71
|
|
72
72
|
ARROWS.each do |name|
|
73
|
-
method_name =
|
73
|
+
method_name = {
|
74
|
+
"none" => "none_arrow",
|
75
|
+
"box" => "box_arrow",
|
76
|
+
"diamond" => "diamond_arrow",
|
77
|
+
}[name] || name
|
78
|
+
|
74
79
|
define_method(method_name) { arrowhead name }
|
75
80
|
end
|
76
81
|
|
@@ -493,7 +498,6 @@ class Graph
|
|
493
498
|
attr_accessor :name
|
494
499
|
|
495
500
|
def connected?
|
496
|
-
node = self.name
|
497
501
|
edges = graph.edges
|
498
502
|
|
499
503
|
edges.include?(name) or edges.any? { |from, deps| deps.include? name }
|
data/lib/rake_analyzer.rb
CHANGED
@@ -11,7 +11,14 @@ class RakeAnalyzer < DepAnalyzer
|
|
11
11
|
rake = Gem.bin_path('rake', 'rake') rescue 'rake'
|
12
12
|
path = $:.join File::PATH_SEPARATOR
|
13
13
|
|
14
|
-
|
14
|
+
content =
|
15
|
+
if $stdin.tty? then
|
16
|
+
`#{Gem.ruby} -I#{path} -S #{rake} -P -s`
|
17
|
+
else
|
18
|
+
$stdin.read
|
19
|
+
end
|
20
|
+
|
21
|
+
content.each_line do |line|
|
15
22
|
case line
|
16
23
|
when /^rake (.+)/
|
17
24
|
name = $1
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 2.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 2.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
FBHgymkyj/AOSqKRIpXPhjC6
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date:
|
39
|
+
date: 2012-01-17 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
@@ -46,41 +46,41 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
hash:
|
49
|
+
hash: 17
|
50
50
|
segments:
|
51
51
|
- 2
|
52
|
-
-
|
53
|
-
version: "2.
|
52
|
+
- 9
|
53
|
+
version: "2.9"
|
54
54
|
type: :development
|
55
55
|
version_requirements: *id001
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
57
|
+
name: rdoc
|
58
58
|
prerelease: false
|
59
59
|
requirement: &id002 !ruby/object:Gem::Requirement
|
60
60
|
none: false
|
61
61
|
requirements:
|
62
62
|
- - ~>
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
hash:
|
64
|
+
hash: 19
|
65
65
|
segments:
|
66
|
-
-
|
67
|
-
-
|
68
|
-
version: "
|
66
|
+
- 3
|
67
|
+
- 10
|
68
|
+
version: "3.10"
|
69
69
|
type: :development
|
70
70
|
version_requirements: *id002
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
|
-
name:
|
72
|
+
name: hoe
|
73
73
|
prerelease: false
|
74
74
|
requirement: &id003 !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
76
76
|
requirements:
|
77
77
|
- - ~>
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
hash:
|
79
|
+
hash: 27
|
80
80
|
segments:
|
81
|
-
-
|
82
|
-
-
|
83
|
-
version: "
|
81
|
+
- 2
|
82
|
+
- 12
|
83
|
+
version: "2.12"
|
84
84
|
type: :development
|
85
85
|
version_requirements: *id003
|
86
86
|
description: |-
|
metadata.gz.sig
CHANGED
Binary file
|