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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23b734b878b51ec2da854f99e7f723b5cb00f59e1b2d0712b5ebcd8f0b05d638
4
- data.tar.gz: f7ef0ac5c923a939067c6f0e8ed52dc899f80e60556a4d2469b453d14009e3be
3
+ metadata.gz: 2a1fb5d4a88ec1f052663cae4ae4b356fddc90ad34ffef47e241a1b35d13da66
4
+ data.tar.gz: bbc12cc3b7a7fb6bbf015569f38fa7f2ba6928b0c07f6dfbe5d80551674507c8
5
5
  SHA512:
6
- metadata.gz: 0e7f6b1d1ec02ad20d524c2bd3bdb84841c799f4a4782742afd0c1ae310fce4ba90d780ce8d8c98fb15be68ed2d085daf03eb70b6d70870af9bb5bda7b00d80e
7
- data.tar.gz: da4fafcf7b5639a300d2242971d40b2cf0c5b19f05d39941ff6610a0bb99e0d4dc4ad47e93ed503472574e8284af352dc3ead275bfadb6b9c450cfbd0f712790
6
+ metadata.gz: 3124d697f0ecedc3dfc8c0d82cf5125c9886dc7691eff89ca75ba2c61ea8af05aa6ee16efe6c4b6e38c927b762cb99d7b8ae00db1f19d55fcfd94d40ede16f8b
7
+ data.tar.gz: 83a3ee2ca08dc704642a48bdf00b05e6b96f108e9c8e9034e6aa46ceb5d2a8dbda757980a65cec3cc3fa041b16fa6742a7ec3cb3034b1e18d0847388c8f1f96d
data/bin/visualize_packs CHANGED
@@ -6,7 +6,6 @@ require "optparse"
6
6
  require "ostruct"
7
7
 
8
8
  require_relative '../lib/visualize_packs'
9
- require_relative '../lib/options'
10
9
 
11
10
  options = Options.new
12
11
 
@@ -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.14
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-03 00:00:00.000000000 Z
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