graph 2.10.0 → 2.11.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: 6a2c55cdc8067ac15364fb4e15fa932fc9f5817df6312e16f429b2e608be5d11
4
- data.tar.gz: b7b2f117ffe778de6b9a7e7b10b0ac9ef17e414ce47ab0bc2d134ee42e589e12
3
+ metadata.gz: 9e3e77a037eb6a1d0590ecc38940bc5f043562af70e1cdf0f3ed1ab8c3c24634
4
+ data.tar.gz: a5682ec5e678f9330afc4c853132746398991118043ec295269ab724f32c30cf
5
5
  SHA512:
6
- metadata.gz: 582deb9ceb20d0aaba280a2fcde293a727bee802850f02da4678e8993c50586d8de3a9b21216b56cbe2774833c4a5cfc9a87118b5f989a918b6cfabfe2e61d67
7
- data.tar.gz: 15b572f55a752e17bc01469ca24bf13ffb63a906aead7f653cd3bcb7135e51a9f2bb860e2d04fbcadcc783f830fb21dd1cf0eb1aae532bd13e883e5848774384
6
+ metadata.gz: 6a6736ea7c648eb10201c0c89ec7f5921a99c44e2efc142caf8bbe58ea2494ec5b71dc87c72aef39f572639693415b63590f36231d94a801d893206c012bda22
7
+ data.tar.gz: 573fd706cca92c52a0580fec4f18f0033bc17dbe9a6b223f0f00598fb2bc735781d6731492473dceafd379da6260bff740d86b6ae86662ceebe3f7d512d129dd
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,14 @@
1
+ === 2.11.0 / 2022-09-29
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Added -r to bin/graph to rotate the image 90 degrees.
6
+ * Trying to improve the output of dep_analyzer (rects + better coloring).
7
+
8
+ * 1 bug fix:
9
+
10
+ * Fixes for homebrew_analyzer to deal with homebrew changes / yet-more-bugs.
11
+
1
12
  === 2.10.0 / 2020-02-09
2
13
 
3
14
  * 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.0" # :nodoc:
11
11
 
12
12
  # :stopdoc:
13
13
 
@@ -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.0
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
+ MIIDPjCCAiagAwIBAgIBBjANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTE5MTIxMzAwMDIwNFoXDTIwMTIxMjAwMDIwNFowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTIxMTIyMzIzMTkwNFoXDTIyMTIyMzIzMTkwNFowRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8ixkARkWA2NvbTCC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+ YsuyUzsMz6GQA4khyaMgKNSD
31
31
  -----END CERTIFICATE-----
32
- date: 2020-02-10 00:00:00.000000000 Z
32
+ date: 2022-09-29 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: '3.25'
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: '3.25'
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.3.12
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