pocky 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +5 -4
- data/lib/pocky/packwerk.rb +4 -1
- data/lib/pocky/tasks/generate.rake +1 -1
- data/lib/pocky/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 737a6863c40b2d7b6872d954fd981d24471a6d53
|
4
|
+
data.tar.gz: 08034b2af953ac3508c055e1c42db3e24d98b39b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03c9dc88876057590f30cbb56e534baa65096e90933b3aefd05f6b5423f9b25d77ae600bf46d7b0abe755ea266f9af2421381912b0a4fab1cda7a6ad28fea81b
|
7
|
+
data.tar.gz: bf24431a9c8a48fafbd9ff8b11ccaebe79bc4e662cbc9da3f1b41cec00019834afadd51a83799390acc077fb45c1a6fce5254224f226385bffcf1f2ee56ba557
|
data/README.md
CHANGED
@@ -16,6 +16,9 @@ Invoke as a rake task:
|
|
16
16
|
$ rake pocky:generate
|
17
17
|
|
18
18
|
|
19
|
+
![packwerk](https://user-images.githubusercontent.com/138784/104111683-df043180-5299-11eb-9a37-8db6851062e0.png)
|
20
|
+
|
21
|
+
|
19
22
|
#### Generate with custom options
|
20
23
|
```ruby
|
21
24
|
Pocky::Packwerk.generate(
|
@@ -29,8 +32,6 @@ Pocky::Packwerk.generate(
|
|
29
32
|
)
|
30
33
|
```
|
31
34
|
|
32
|
-
![pocky-graph](https://user-images.githubusercontent.com/138784/103251690-a6299b80-492e-11eb-92f1-205752d850d8.png)
|
33
|
-
|
34
35
|
Note that the the bold edges indicate heavier dependencies.
|
35
36
|
|
36
37
|
Invoke as a rake task:
|
@@ -38,8 +39,8 @@ Invoke as a rake task:
|
|
38
39
|
$ rake pocky:generate"[app/packages,Monolith,packages.png,100]"
|
39
40
|
|
40
41
|
|
41
|
-
#### `
|
42
|
-
`
|
42
|
+
#### Generate subsystem graph (`package_path` as an array)
|
43
|
+
`package_path` can also be an array in case your packages are organized in multiple directories. Alternatively, you can also provide paths to individual packages to generate more focused graphs for your package subsystems.
|
43
44
|
|
44
45
|
```ruby
|
45
46
|
Pocky::Packwerk.generate(
|
data/lib/pocky/packwerk.rb
CHANGED
@@ -97,7 +97,10 @@ module Pocky
|
|
97
97
|
@graph.add_edges(
|
98
98
|
@nodes[package],
|
99
99
|
@nodes[provider_package],
|
100
|
-
**@deprecated_references_edge_options.merge(
|
100
|
+
**@deprecated_references_edge_options.merge(
|
101
|
+
penwidth: edge_width(invocations.length),
|
102
|
+
constraint: false,
|
103
|
+
),
|
101
104
|
)
|
102
105
|
end
|
103
106
|
end
|
@@ -4,7 +4,7 @@ namespace :pocky do
|
|
4
4
|
desc 'Generate dependency graph for packwerk packages'
|
5
5
|
task :generate, [:root_path, :default_package, :filename, :dpi] do |_task, args|
|
6
6
|
Pocky::Packwerk.generate(args.merge(
|
7
|
-
root_path:
|
7
|
+
root_path: args[:root_path].split(/\s+/)
|
8
8
|
))
|
9
9
|
end
|
10
10
|
end
|
data/lib/pocky/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pocky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Quan Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-graphviz
|
@@ -69,7 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
|
72
|
+
rubyforge_project:
|
73
|
+
rubygems_version: 2.4.5
|
73
74
|
signing_key:
|
74
75
|
specification_version: 4
|
75
76
|
summary: A ruby gem that generates dependency graph for your packwerk packages
|