brew_dg 0.0.1 → 0.0.2
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 +8 -8
- data/README.md +16 -11
- data/lib/brew_dg/dependency_manifest.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODRiZjA0NjNlZjA3YzAwNDc2YTE5ZDJlMjYzYzMyMmMxNDNiODMwNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGFlOThjMTExNzU1YWE1Yjc5MjA2YzlkZGE0NjVlNTEwOWRlZDI1Mg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWFmMDFjODk5NmM5YzQzNTk3YzY1MDkyOTZjYTY0MDQyNGJhNDEzNmQ3YmFi
|
10
|
+
MDZjZTI2ZGEwYzYxMjkxMDdkMjBlMDdkMGMzMWU1MmM1Y2Y0YzUyOTA1NzIy
|
11
|
+
ZjExYzZlM2I3YjBkNjU3NzRjZDA2MzNhZjdiYTI4MTA0NTRkYzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2IwNDU5Yzk5NWQ3YTIxNjg4NzVkYmIxMWQwNDYzYTQ4NjhkYjExNzQyNDVm
|
14
|
+
NGU1ZDA5NzVjMWRiZWZiY2FhZjY2NjhlMDI0NDBiMzMzYzBhZTk3ZDRkZTAw
|
15
|
+
MjA5YjM3MGU0NzcxMWRmYjFjOWY5OGYwM2RhYzA1MGJkNjk5ZmE=
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Homebrew Dependency Graphs.
|
4
4
|
|
5
|
-
BrewDG allows you to visualize your homebrew package dependencies. It can also take a list of packages, and give you those packages, with each package preceeded by its dependencies (and its dependencies will be preceeded by _its_ dependencies, and so forth).
|
5
|
+
BrewDG allows you to visualize your homebrew package dependencies. It can also take a list of packages, and give you those packages, with each package preceeded by its dependencies (and its dependencies will be preceeded by _its_ dependencies, and so forth - see the [Example](#listing-stuff)).
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -14,6 +14,8 @@ BrewDG allows you to visualize your homebrew package dependencies. It can also t
|
|
14
14
|
|
15
15
|
`brew_dg` is pretty slow since it's issuing and parsing the output of `brew` commands. Which is to say, you may want to have a beverage to sip while using it, particularly on a large number of packages.
|
16
16
|
|
17
|
+
### Listing Stuff
|
18
|
+
|
17
19
|
1. List packages plus their recommended dependencies. This is what compelled me to write `brew_dg`.
|
18
20
|
|
19
21
|
```
|
@@ -32,14 +34,18 @@ BrewDG allows you to visualize your homebrew package dependencies. It can also t
|
|
32
34
|
mysql gdal autoconf automake libtool gpp postgis
|
33
35
|
```
|
34
36
|
|
35
|
-
|
37
|
+
### Visualizing Stuff
|
38
|
+
|
39
|
+
**N.B.**: `brew_dg` uses `ruby-graphviz` to draw graphs, so you'll need to install graphviz first.
|
40
|
+
|
41
|
+
1. Visualize homebrew dependencies. See [Graph](#graph) for visual details. (Note that these visualizations require graphviz):
|
36
42
|
|
37
43
|
```
|
38
44
|
$ brew_dg -o library.png
|
39
45
|
$ open library.png
|
40
46
|
```
|
41
47
|
|
42
|
-
|
48
|
+
2. Visualize a package's recommended and required dependencies (as well as their dependencies)
|
43
49
|
|
44
50
|
```
|
45
51
|
$ brew_dg -o postgis.png postgis
|
@@ -48,22 +54,20 @@ BrewDG allows you to visualize your homebrew package dependencies. It can also t
|
|
48
54
|
|
49
55
|
[](http://f.cl.ly/items/3g2m3y2e150X1w2d263s/postgis.png)
|
50
56
|
|
51
|
-
|
57
|
+
3. Visualize all of a package's dependencies, including Optional and Build dependencies
|
52
58
|
|
53
59
|
```
|
54
60
|
$ brew_dg -a -o postgis.png postgis
|
55
61
|
$ open postgis.png
|
56
62
|
```
|
57
63
|
|
58
|
-
##
|
59
|
-
|
60
|
-
`gem install brew_dg`
|
64
|
+
## Man Page-ish
|
61
65
|
|
62
|
-
|
66
|
+
### Synopsis
|
63
67
|
|
64
68
|
brew_dg [options] [package package ...]
|
65
69
|
|
66
|
-
|
70
|
+
### Description
|
67
71
|
|
68
72
|
Assuming for the moment that brew_dg is given no options, for each
|
69
73
|
package given, brew_dg will display that package, along with its
|
@@ -90,13 +94,14 @@ preceeding description:
|
|
90
94
|
-O [file]
|
91
95
|
Draw inverted graph, and write it to file. Directed edges are read as
|
92
96
|
"is a dependency of." If given a directory $DIR, the file will be
|
93
|
-
located at $DIR/library.png. See Graph section for stylistic
|
97
|
+
located at $DIR/library.png. See [Graph](#graph) section for stylistic
|
98
|
+
details.
|
94
99
|
|
95
100
|
-t types
|
96
101
|
Display only dependencies of the comma-delimited types specified. e.g.
|
97
102
|
`-t Recommended,Optional'
|
98
103
|
|
99
|
-
|
104
|
+
### Graph
|
100
105
|
|
101
106
|
The graph uses edge and arrow styles to differentiate between dependency
|
102
107
|
types.
|
@@ -20,7 +20,9 @@ module BrewDG
|
|
20
20
|
|
21
21
|
if manifest_parts.size == 2
|
22
22
|
manifest_body = manifest_parts.last
|
23
|
-
dependencies = manifest_body.split(', ').map
|
23
|
+
dependencies = manifest_body.split(', ').map do |dependency|
|
24
|
+
dependency.scan(/\w|\s|-|_/).join.strip
|
25
|
+
end
|
24
26
|
else
|
25
27
|
dependencies = []
|
26
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brew_dg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Cobb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|