visualize_packs 0.5.14 → 0.5.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/visualize_packs +0 -1
- data/lib/visualize_packs.rb +4 -0
- metadata +3 -3
- /data/lib/{options.rb → visualize_packs/options.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a1fb5d4a88ec1f052663cae4ae4b356fddc90ad34ffef47e241a1b35d13da66
|
4
|
+
data.tar.gz: bbc12cc3b7a7fb6bbf015569f38fa7f2ba6928b0c07f6dfbe5d80551674507c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3124d697f0ecedc3dfc8c0d82cf5125c9886dc7691eff89ca75ba2c61ea8af05aa6ee16efe6c4b6e38c927b762cb99d7b8ae00db1f19d55fcfd94d40ede16f8b
|
7
|
+
data.tar.gz: 83a3ee2ca08dc704642a48bdf00b05e6b96f108e9c8e9034e6aa46ceb5d2a8dbda757980a65cec3cc3fa041b16fa6742a7ec3cb3034b1e18d0847388c8f1f96d
|
data/bin/visualize_packs
CHANGED
data/lib/visualize_packs.rb
CHANGED
@@ -6,6 +6,8 @@ require 'packs-specification'
|
|
6
6
|
require 'parse_packwerk'
|
7
7
|
require 'digest/md5'
|
8
8
|
|
9
|
+
require 'visualize_packs/options'
|
10
|
+
|
9
11
|
module VisualizePacks
|
10
12
|
extend T::Sig
|
11
13
|
|
@@ -167,6 +169,8 @@ module VisualizePacks
|
|
167
169
|
count_delta = todo_count - min_count
|
168
170
|
|
169
171
|
width_delta = count_delta / todo_range.to_f * width_range
|
172
|
+
width_delta = 0 if width_delta.nan?
|
173
|
+
|
170
174
|
edge_width = min_width + width_delta
|
171
175
|
edge_width.round(2)
|
172
176
|
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.
|
4
|
+
version: 0.5.15
|
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-09-
|
11
|
+
date: 2023-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -120,8 +120,8 @@ files:
|
|
120
120
|
- bin/tapioca
|
121
121
|
- bin/visualize_packs
|
122
122
|
- lib/graph.dot.erb
|
123
|
-
- lib/options.rb
|
124
123
|
- lib/visualize_packs.rb
|
124
|
+
- lib/visualize_packs/options.rb
|
125
125
|
homepage: https://github.com/rubyatscale/visualize_packs
|
126
126
|
licenses:
|
127
127
|
- MIT
|
File without changes
|