visualize_packs 0.5.0 → 0.5.1

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: 6f359f93291f20b1d7d77b62a32c52a7fa76baf86444201239f2b8e2bd629b83
4
- data.tar.gz: e52a5b63f4ef80429727ed92d6e624329c6fe98904e0406b7b39b6f20a996121
3
+ metadata.gz: 56b6eb0efc33722b2682f29f19c4714bf37d3c943acd87de6f9fd66a170a6614
4
+ data.tar.gz: 55e0f497ff12b86c551b6b214617d3a696162abb20e4bcbf40410a7fafb70f1b
5
5
  SHA512:
6
- metadata.gz: 2ec569b998d850151acf257f1cff5baf31a6fa7f3453dc1505776d33027b71f26fcb369c2d1b05cfef6d8d468b47a5b826e78859d485169b3bdcc163a634335c
7
- data.tar.gz: 692b0eba45954340cbc043efd5b3937009ff402549ae3557e9d0013e827962c289ca1b9dc00eab399d9b0627099db42276912e566dfbd5e978960442f9bef649
6
+ metadata.gz: ecc802ecdc77152a1b073de7b3a5797aeee9122cf26e0cd240cb092983aa549da3c7da29cb49ec62f4d9264058dcf76f6c6f6eb7b03d460563b537d6279f114e
7
+ data.tar.gz: e502a1af91017dcf432e696f8fdb7348f401eb29963cc48768cf11494d38f6d222b1d85bc93d2ff1d51807c2ee5224aa00194356bc63633859ba7f1c8854abd6
data/bin/tapioca ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'tapioca' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12
+
13
+ bundle_binstub = File.expand_path("bundle", __dir__)
14
+
15
+ if File.file?(bundle_binstub)
16
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
17
+ load(bundle_binstub)
18
+ else
19
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21
+ end
22
+ end
23
+
24
+ require "rubygems"
25
+ require "bundler/setup"
26
+
27
+ load Gem.bin_path("tapioca", "tapioca")
data/lib/options.rb CHANGED
@@ -1,33 +1,21 @@
1
- class Options
2
- attr_accessor :show_layers
3
- attr_accessor :show_dependencies
4
- attr_accessor :show_todos
5
- attr_accessor :show_privacy
6
- attr_accessor :show_teams
1
+ # frozen_string_literal: true
2
+ # typed: strict
7
3
 
8
- attr_accessor :focus_package
9
- attr_accessor :show_only_edges_to_focus_package
4
+ class Options < T::Struct
5
+ extend T::Sig
10
6
 
11
- attr_accessor :roll_nested_todos_into_top_level
12
- attr_accessor :focus_folder
13
- attr_accessor :show_nested_relationships
7
+ prop :show_layers, T::Boolean, default: true
8
+ prop :show_dependencies, T::Boolean, default: true
9
+ prop :show_todos, T::Boolean, default: true
10
+ prop :show_privacy, T::Boolean, default: true
11
+ prop :show_teams, T::Boolean, default: true
14
12
 
15
- attr_accessor :remote_base_url
13
+ prop :focus_package, T.nilable(String)
14
+ prop :show_only_edges_to_focus_package, T::Boolean, default: false
16
15
 
17
- def initialize
18
- @show_layers = true
19
- @show_dependencies = true
20
- @show_todos = true
21
- @show_privacy = true
22
- @show_teams = true
16
+ prop :roll_nested_todos_into_top_level, T::Boolean, default: false
17
+ prop :focus_folder, T.nilable(String)
18
+ prop :show_nested_relationships, T::Boolean, default: true
23
19
 
24
- @focus_package = nil
25
- @show_only_edges_to_focus_package = false
26
-
27
- @roll_nested_todos_into_top_level = false
28
- @focus_folder = nil
29
- @show_nested_relationships = true
30
-
31
- @remote_base_url = nil
32
- end
20
+ prop :remote_base_url, T.nilable(String)
33
21
  end
@@ -1,3 +1,6 @@
1
+ # frozen_string_literal: true
2
+ # typed: false
3
+
1
4
  require 'erb'
2
5
  require 'packs-specification'
3
6
  require 'parse_packwerk'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visualize_packs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
@@ -25,7 +25,21 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: sorbet-runtime
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.12'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sorbet
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - ">="
@@ -39,19 +53,19 @@ dependencies:
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
- name: rspec
56
+ name: tapioca
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '3.12'
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '3.12'
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: packs-specification
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +94,20 @@ dependencies:
80
94
  - - ">="
81
95
  - !ruby/object:Gem::Version
82
96
  version: 0.20.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: sorbet-runtime
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
83
111
  description: A gem to visualize connections in a Ruby app that uses packs
84
112
  email:
85
113
  - dev@gusto.com
@@ -89,6 +117,7 @@ extensions: []
89
117
  extra_rdoc_files: []
90
118
  files:
91
119
  - README.md
120
+ - bin/tapioca
92
121
  - bin/visualize_packs
93
122
  - lib/graph.dot.erb
94
123
  - lib/options.rb