visualize_packs 0.5.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -6
  3. data/lib/graph.dot.erb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56b6eb0efc33722b2682f29f19c4714bf37d3c943acd87de6f9fd66a170a6614
4
- data.tar.gz: 55e0f497ff12b86c551b6b214617d3a696162abb20e4bcbf40410a7fafb70f1b
3
+ metadata.gz: 2a14f60b122081e11447ca15b17f75693f2797ed56f26ea7918f5eea7422ea8b
4
+ data.tar.gz: b09d7f7b1683ddb4422ae839f6a6d5d8af159e16a34cd7798ad9155dd713e46f
5
5
  SHA512:
6
- metadata.gz: ecc802ecdc77152a1b073de7b3a5797aeee9122cf26e0cd240cb092983aa549da3c7da29cb49ec62f4d9264058dcf76f6c6f6eb7b03d460563b537d6279f114e
7
- data.tar.gz: e502a1af91017dcf432e696f8fdb7348f401eb29963cc48768cf11494d38f6d222b1d85bc93d2ff1d51807c2ee5224aa00194356bc63633859ba7f1c8854abd6
6
+ metadata.gz: 07c3ae10e94edd11c917293de275b2c0fef42e2acc74139817adee33691f3d37dbfb1df6d643c4d2a302dc2eea28948b9316ba0cf5610fdf2f63a9c53293a70a
7
+ data.tar.gz: 1cd63442e74739d13a30638557f891c72809b121e938526542cc201bd621dc596b3352d16697d876f465992f874230fe65a70b0cf9f966c3c5b56d318711cc5e
data/README.md CHANGED
@@ -31,17 +31,20 @@ bundle exec visualize_packs --help
31
31
 
32
32
  ## What outputs look like
33
33
 
34
- ![Sample diagrams produced](https://github.com/shageman/visualize_packs/blob/main/diagram_examples.png?raw=true)
34
+ ![Sample diagrams produced](https://github.com/rubyatscale/visualize_packs/blob/main/diagram_examples.png?raw=true)
35
35
 
36
36
  ## Contributing
37
37
 
38
- To contribute, install graphviz (and the `dot` command). You must also have Ruby 3.2.2 and bundler installed. Then
38
+ To contribute, install graphviz (and the `dot` command) and imagemagick. You must also have Ruby 3.2.2 and bundler installed. Then
39
39
 
40
40
  ```
41
- cd spec
42
- ./test.sh
41
+ ./spec/test.sh
43
42
  ```
44
43
 
45
- Then, in `spec/sample_app` visually compare all `X.png` to `X_new.png` to make sure you are happy with the changes. If you, are, run `./update_cassettes.sh` in the same folder and commit the new test files with your changes.
44
+ At the end of the test run, a new window will open up showing you a comparison of the old graphs (on the left) and the new graphs (on the right). Compare the visuals to make sure you're getting the changes you were expecting.
46
45
 
47
- If you have imagemagick installed, you can then also run `./create_comparison.sh` to create one big image of all the before (left) and after (right) versions of the sample diagrams.
46
+ Once you are ready, run the following and commit the new `diagram_examples.png` and the new dot files with your changes:
47
+
48
+ ```
49
+ ./spec/update_cassettes.sh
50
+ ```
data/lib/graph.dot.erb CHANGED
@@ -112,7 +112,7 @@ digraph package_diagram {
112
112
  <%- if options.show_nested_relationships -%>
113
113
  <%- all_packages.each do |package| -%>
114
114
  <%- all_packages.each do |nested_package| -%>
115
- <%- if nested_package.name.include?(package.name) && !(nested_package.name == package.name) -%>
115
+ <%- if nested_package.name.include?("#{package.name}/") && !(nested_package.name == package.name) -%>
116
116
  "<%= package.name -%>" -> "<%= nested_package.name -%>" [ color=purple penwidth=3 ]
117
117
  <%- end -%>
118
118
  <%- end -%>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visualize_packs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-16 00:00:00.000000000 Z
11
+ date: 2023-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler