graph 2.10.0 → 2.11.1

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: 6a2c55cdc8067ac15364fb4e15fa932fc9f5817df6312e16f429b2e608be5d11
4
- data.tar.gz: b7b2f117ffe778de6b9a7e7b10b0ac9ef17e414ce47ab0bc2d134ee42e589e12
3
+ metadata.gz: 3e6b55c87f35c8cafba0b790c4a83489d3fdd1ba48a29a4689491ab29c8cc12d
4
+ data.tar.gz: a950fa4a27294152cd557218fb6c1a36d798b64c61a2c47a6c302845a0f02eea
5
5
  SHA512:
6
- metadata.gz: 582deb9ceb20d0aaba280a2fcde293a727bee802850f02da4678e8993c50586d8de3a9b21216b56cbe2774833c4a5cfc9a87118b5f989a918b6cfabfe2e61d67
7
- data.tar.gz: 15b572f55a752e17bc01469ca24bf13ffb63a906aead7f653cd3bcb7135e51a9f2bb860e2d04fbcadcc783f830fb21dd1cf0eb1aae532bd13e883e5848774384
6
+ metadata.gz: 6db14574dd5e1d60df87c1c1c5b6368b2d63be35e334c5afc0a9c94a0529f26845fcd89a8c14ff20ddc642c99279f7f632de35f2760c71b62148a44ffbc312bd
7
+ data.tar.gz: 54275c35bb2df10c41daa08c2fe00522fcf00d8c7f4b66cd086905f1b562ede4560a5dbcac022bcdeb3d68306433a0ce0722e8194fbeab30eea33d57956c2531
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,20 @@
1
+ === 2.11.1 / 2024-07-12
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fix errors created when string literals are frozen.
6
+
7
+ === 2.11.0 / 2022-09-29
8
+
9
+ * 2 minor enhancements:
10
+
11
+ * Added -r to bin/graph to rotate the image 90 degrees.
12
+ * Trying to improve the output of dep_analyzer (rects + better coloring).
13
+
14
+ * 1 bug fix:
15
+
16
+ * Fixes for homebrew_analyzer to deal with homebrew changes / yet-more-bugs.
17
+
1
18
  === 2.10.0 / 2020-02-09
2
19
 
3
20
  * 3 minor enhancements:
data/bin/graph CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env ruby -ws
2
2
 
3
- $o ||= false
4
- $d ||= false
3
+ $o ||= false # open after creating
4
+ $d ||= false # dot file only
5
+ $r ||= false # rotate 90°
5
6
 
6
7
  type = ARGV.shift
7
8
  unless type then
@@ -21,6 +22,8 @@ klass = Object.const_get name
21
22
  analyzer = klass.new
22
23
  graph = analyzer.run
23
24
 
25
+ graph.rotate if $r
26
+
24
27
  huge = graph.nodes.size + graph.edges.size > 500
25
28
  ext = $d ? nil : huge ? "pdf" : "png"
26
29
 
data/lib/dep_analyzer.rb CHANGED
@@ -170,16 +170,20 @@ class DepAnalyzer < Cache
170
170
  ports[port] = deps
171
171
  end
172
172
 
173
+ rect = g.rect
173
174
  blue = g.color "blue"
174
175
  purple = g.color "purple4"
175
176
  red = g.color "red"
177
+ pink = g.fill_lightpink
176
178
 
177
179
  indies = ports.keys - ports.minvert.keys
178
180
  indies.each do |k|
181
+ rect << g[k]
179
182
  blue << g[k]
180
183
  end
181
184
 
182
185
  old.each do |k,v|
186
+ pink << g[k]
183
187
  if indies.include? k then
184
188
  purple << g[k]
185
189
  else
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.0" # :nodoc:
10
+ VERSION = "2.11.1" # :nodoc:
11
11
 
12
12
  # :stopdoc:
13
13
 
@@ -420,7 +420,7 @@ class Graph
420
420
  result = []
421
421
 
422
422
  type = graph ? "subgraph " : "digraph "
423
- type << "\"#{name}\"" if name and !name.empty?
423
+ type = "%s%p" % [type, name] if name and !name.empty?
424
424
  result << type
425
425
  result << " {"
426
426
 
@@ -12,7 +12,7 @@ class HomebrewAnalyzer < DepAnalyzer
12
12
  puts "scanning installed ports"
13
13
  ports = normal `brew list #{SHH}`
14
14
  puts "scanning installed casks"
15
- self.casks = normal `brew cask list #{SHH}`
15
+ self.casks = normal `brew list --cask #{SHH}`
16
16
  ports + casks
17
17
  end
18
18
 
@@ -21,15 +21,26 @@ class HomebrewAnalyzer < DepAnalyzer
21
21
  puts "scanning outdated ports"
22
22
  ports = normal `brew outdated #{SHH}`
23
23
  puts "scanning outdated casks"
24
- casks = normal `brew cask outdated #{SHH}`
24
+ casks = normal `brew outdated --cask #{SHH}`
25
25
  ports + casks
26
26
  end
27
27
 
28
28
  def alldeps
29
- @alldeps ||= `brew deps --installed`
30
- .lines
31
- .map { |l| k, *v = l.delete(":").split; [clean(k), v] }
32
- .to_h
29
+ # there's YET ANOTHER bug in homebrew whereby `brew deps -1
30
+ # --installed` output is painfully different from all other output:
31
+ #
32
+ # % brew deps -1 --for-each pango
33
+ # pango: cairo fontconfig freetype fribidi glib harfbuzz
34
+ # % brew deps -1 --installed | grep pango
35
+ # pango: cairo
36
+
37
+ @alldeps ||= begin
38
+ full_names = `brew list --full-name`.split
39
+ `brew deps -n1 --for-each #{full_names.join " "}`
40
+ .lines
41
+ .map { |l| k, *v = l.delete(":").split; [clean(k), v] }
42
+ .to_h
43
+ end
33
44
  end
34
45
 
35
46
  def deps port
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0
4
+ version: 2.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBBDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyL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oNBliefOTcn2
27
+ bg5IOP7UoGM5lC174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
28
+ B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
29
+ S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
30
+ deKfBjgVAq7EYHu1AczzlUly
31
31
  -----END CERTIFICATE-----
32
- date: 2020-02-10 00:00:00.000000000 Z
32
+ date: 2024-07-12 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rdoc
@@ -57,14 +57,14 @@ dependencies:
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '3.22'
60
+ version: '4.2'
61
61
  type: :development
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '3.22'
67
+ version: '4.2'
68
68
  description: "Graph is a type of hash that outputs in graphviz's dot format. It\ncomes
69
69
  with a command-line interface that is easily pluggable.\n\nIt ships with plugins
70
70
  to graph dependencies and status of installed\nrubygems, rake tasks, homebrew ports,
@@ -109,7 +109,7 @@ licenses:
109
109
  - MIT
110
110
  metadata:
111
111
  homepage_uri: https://github.com/seattlerb/graph
112
- post_install_message:
112
+ post_install_message:
113
113
  rdoc_options:
114
114
  - "--main"
115
115
  - README.txt
@@ -126,8 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubygems_version: 3.0.3
130
- signing_key:
129
+ rubygems_version: 3.5.14
130
+ signing_key:
131
131
  specification_version: 4
132
132
  summary: Graph is a type of hash that outputs in graphviz's dot format
133
133
  test_files: []
metadata.gz.sig CHANGED
Binary file