danger-packwerk 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/lib/danger-packwerk/packwerk_wrapper.rb +2 -2
  3. data/lib/danger-packwerk/version.rb +1 -1
  4. data/sorbet/config +1 -0
  5. data/sorbet/rbi/gems/actionview@7.0.4.rbi +11543 -0
  6. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +12959 -0
  7. data/sorbet/rbi/gems/addressable@2.8.1.rbi +1505 -0
  8. data/sorbet/rbi/gems/ast@2.4.2.rbi +522 -0
  9. data/sorbet/rbi/gems/better_html@2.0.1.rbi +286 -0
  10. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  11. data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +791 -0
  12. data/sorbet/rbi/gems/claide@1.1.0.rbi +1132 -0
  13. data/sorbet/rbi/gems/coderay@1.1.3.rbi +2256 -0
  14. data/sorbet/rbi/gems/colored2@3.1.2.rbi +130 -0
  15. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +8695 -0
  16. data/sorbet/rbi/gems/cork@0.3.0.rbi +248 -0
  17. data/sorbet/rbi/gems/crass@1.0.6.rbi +436 -0
  18. data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +8 -0
  19. data/sorbet/rbi/gems/danger@9.0.0.rbi +4722 -0
  20. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +862 -0
  21. data/sorbet/rbi/gems/erubi@1.11.0.rbi +102 -0
  22. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +266 -0
  23. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +209 -0
  24. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +212 -0
  25. data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +805 -0
  26. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +221 -0
  27. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +266 -0
  28. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +216 -0
  29. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +206 -0
  30. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +212 -0
  31. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +225 -0
  32. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +222 -0
  33. data/sorbet/rbi/gems/faraday@1.10.2.rbi +1862 -0
  34. data/sorbet/rbi/gems/git@1.12.0.rbi +1936 -0
  35. data/sorbet/rbi/gems/i18n@1.12.0.rbi +1643 -0
  36. data/sorbet/rbi/gems/json@2.6.2.rbi +1418 -0
  37. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +8 -0
  38. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +2168 -0
  39. data/sorbet/rbi/gems/loofah@2.19.0.rbi +646 -0
  40. data/sorbet/rbi/gems/method_source@1.0.0.rbi +199 -0
  41. data/sorbet/rbi/gems/minitest@5.16.3.rbi +997 -0
  42. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +165 -0
  43. data/sorbet/rbi/gems/nap@1.1.0.rbi +351 -0
  44. data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +8 -0
  45. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +4916 -0
  46. data/sorbet/rbi/gems/octokit@5.6.1.rbi +8939 -0
  47. data/sorbet/rbi/gems/open4@1.3.4.rbi +8 -0
  48. data/sorbet/rbi/gems/{packwerk@2.1.1.rbi → packwerk@2.2.1.rbi} +602 -51
  49. data/sorbet/rbi/gems/parallel@1.22.1.rbi +163 -0
  50. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +5988 -0
  51. data/sorbet/rbi/gems/pry@0.14.1.rbi +6969 -0
  52. data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +779 -0
  53. data/sorbet/rbi/gems/racc@1.6.0.rbi +92 -0
  54. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +8 -0
  55. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +493 -0
  56. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +227 -0
  57. data/sorbet/rbi/gems/rake@13.0.6.rbi +1865 -0
  58. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2337 -0
  59. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +587 -0
  60. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +1851 -0
  61. data/sorbet/rbi/gems/rexml@3.2.5.rbi +3852 -0
  62. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +7725 -0
  63. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +6201 -0
  64. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +3625 -0
  65. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +1176 -0
  66. data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
  67. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +4193 -0
  68. data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +677 -0
  69. data/sorbet/rbi/gems/rubocop@1.36.0.rbi +37914 -0
  70. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +732 -0
  71. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  72. data/sorbet/rbi/gems/sawyer@0.9.2.rbi +513 -0
  73. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +326 -0
  74. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1600 -0
  75. data/sorbet/rbi/gems/tapioca@0.8.0.rbi +1959 -0
  76. data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +438 -0
  77. data/sorbet/rbi/gems/thor@1.2.1.rbi +2921 -0
  78. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +4879 -0
  79. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +27 -0
  80. data/sorbet/rbi/gems/unparser@0.6.5.rbi +2789 -0
  81. data/sorbet/rbi/gems/webrick@1.7.0.rbi +1802 -0
  82. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +288 -0
  83. data/sorbet/rbi/gems/yard@0.9.27.rbi +12668 -0
  84. data/sorbet/rbi/todo.rbi +122 -0
  85. metadata +84 -7
  86. data/sorbet/rbi/gems/danger@8.5.0.rbi +0 -122
data/sorbet/rbi/todo.rbi CHANGED
@@ -1,3 +1,125 @@
1
1
  module ::RSpec
2
2
  module Matchers; end
3
3
  end
4
+
5
+ # typed: true
6
+
7
+ class Danger::DangerfileGitHubPlugin < ::Danger::Plugin
8
+ def initialize(dangerfile); end
9
+
10
+ def api; end
11
+ def base_commit; end
12
+ def branch_for_base; end
13
+ def branch_for_head; end
14
+ def dismiss_out_of_range_messages(dismiss = T.unsafe(nil)); end
15
+ def head_commit; end
16
+ def html_link(paths, full_path: T.unsafe(nil)); end
17
+ def mr_author; end
18
+ def mr_body; end
19
+ def mr_json; end
20
+ def mr_labels; end
21
+ def mr_title; end
22
+ def pr_author; end
23
+ def pr_body; end
24
+ def pr_diff; end
25
+ def pr_draft?; end
26
+ def pr_json; end
27
+ def pr_labels; end
28
+ def pr_title; end
29
+ def review; end
30
+
31
+ private
32
+
33
+ def create_link(href, text); end
34
+
35
+ class << self
36
+ def instance_name; end
37
+ def new(dangerfile); end
38
+ end
39
+ end
40
+
41
+ class Danger::CI
42
+ def initialize(_env); end
43
+
44
+ def pull_request_id; end
45
+ def pull_request_id=(_arg0); end
46
+ def repo_slug; end
47
+ def repo_slug=(_arg0); end
48
+ def repo_url; end
49
+ def repo_url=(_arg0); end
50
+ def supported_request_sources; end
51
+ def supported_request_sources=(_arg0); end
52
+ def supports?(request_source); end
53
+
54
+ class << self
55
+ def available_ci_sources; end
56
+ def inherited(child_class); end
57
+ def validates_as_ci?(_env); end
58
+ def validates_as_pr?(_env); end
59
+ end
60
+ end
61
+
62
+ class Danger::LocalGitRepo < ::Danger::CI
63
+ def initialize(env = T.unsafe(nil)); end
64
+
65
+ def base_commit; end
66
+ def base_commit=(_arg0); end
67
+ def git; end
68
+ def head_commit; end
69
+ def head_commit=(_arg0); end
70
+ def run_git(command); end
71
+ def supported_request_sources; end
72
+
73
+ private
74
+
75
+ def commits; end
76
+ def find_pull_request(env); end
77
+ def find_remote_info(env); end
78
+ def found_pull_request; end
79
+ def given_pull_request_url?(env); end
80
+ def missing_remote_error_message; end
81
+ def raise_error_for_missing_remote; end
82
+ def remote_info; end
83
+ def sha; end
84
+
85
+ class << self
86
+ def validates_as_ci?(env); end
87
+ def validates_as_pr?(_env); end
88
+ end
89
+ end
90
+
91
+
92
+ class Danger::DangerfileGitPlugin < ::Danger::Plugin
93
+ def initialize(dangerfile); end
94
+
95
+ def added_files; end
96
+ def commits; end
97
+ def deleted_files; end
98
+ def deletions; end
99
+ def diff; end
100
+ def diff_for_file(file); end
101
+ def info_for_file(file); end
102
+ def insertions; end
103
+ def lines_of_code; end
104
+ def modified_files; end
105
+ def renamed_files; end
106
+ def tags; end
107
+
108
+ class << self
109
+ def instance_name; end
110
+ end
111
+ end
112
+
113
+
114
+ class Danger::Plugin
115
+ sig { returns(Danger::DangerfileGitHubPlugin) }
116
+ def github; end
117
+
118
+ sig { returns(Danger::DangerfileGitPlugin) }
119
+ def git; end
120
+
121
+ def markdown(message, file:, line:); end
122
+ end
123
+
124
+ class Danger::Dangerfile; end
125
+ module DangerHelpers::Cork::Board; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-packwerk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-20 00:00:00.000000000 Z
11
+ date: 2022-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: danger-plugin-api
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 2.2.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 2.2.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: parse_packwerk
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -198,10 +198,87 @@ files:
198
198
  - lib/danger-packwerk/violation_diff.rb
199
199
  - lib/danger_plugin.rb
200
200
  - sorbet/config
201
+ - sorbet/rbi/gems/actionview@7.0.4.rbi
202
+ - sorbet/rbi/gems/activesupport@7.0.4.rbi
203
+ - sorbet/rbi/gems/addressable@2.8.1.rbi
204
+ - sorbet/rbi/gems/ast@2.4.2.rbi
205
+ - sorbet/rbi/gems/better_html@2.0.1.rbi
206
+ - sorbet/rbi/gems/builder@3.2.4.rbi
207
+ - sorbet/rbi/gems/claide-plugins@0.9.2.rbi
208
+ - sorbet/rbi/gems/claide@1.1.0.rbi
209
+ - sorbet/rbi/gems/coderay@1.1.3.rbi
210
+ - sorbet/rbi/gems/colored2@3.1.2.rbi
211
+ - sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi
201
212
  - sorbet/rbi/gems/constant_resolver@0.2.0.rbi
202
- - sorbet/rbi/gems/danger@8.5.0.rbi
203
- - sorbet/rbi/gems/packwerk@2.1.1.rbi
213
+ - sorbet/rbi/gems/cork@0.3.0.rbi
214
+ - sorbet/rbi/gems/crass@1.0.6.rbi
215
+ - sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi
216
+ - sorbet/rbi/gems/danger@9.0.0.rbi
217
+ - sorbet/rbi/gems/diff-lcs@1.5.0.rbi
218
+ - sorbet/rbi/gems/erubi@1.11.0.rbi
219
+ - sorbet/rbi/gems/faraday-em_http@1.0.0.rbi
220
+ - sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi
221
+ - sorbet/rbi/gems/faraday-excon@1.1.0.rbi
222
+ - sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi
223
+ - sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi
224
+ - sorbet/rbi/gems/faraday-multipart@1.0.4.rbi
225
+ - sorbet/rbi/gems/faraday-net_http@1.0.1.rbi
226
+ - sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi
227
+ - sorbet/rbi/gems/faraday-patron@1.0.0.rbi
228
+ - sorbet/rbi/gems/faraday-rack@1.0.0.rbi
229
+ - sorbet/rbi/gems/faraday-retry@1.0.3.rbi
230
+ - sorbet/rbi/gems/faraday@1.10.2.rbi
231
+ - sorbet/rbi/gems/git@1.12.0.rbi
232
+ - sorbet/rbi/gems/i18n@1.12.0.rbi
233
+ - sorbet/rbi/gems/json@2.6.2.rbi
234
+ - sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi
235
+ - sorbet/rbi/gems/kramdown@2.4.0.rbi
236
+ - sorbet/rbi/gems/loofah@2.19.0.rbi
237
+ - sorbet/rbi/gems/method_source@1.0.0.rbi
238
+ - sorbet/rbi/gems/minitest@5.16.3.rbi
239
+ - sorbet/rbi/gems/multipart-post@2.2.3.rbi
240
+ - sorbet/rbi/gems/nap@1.1.0.rbi
241
+ - sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi
242
+ - sorbet/rbi/gems/nokogiri@1.13.8.rbi
243
+ - sorbet/rbi/gems/octokit@5.6.1.rbi
244
+ - sorbet/rbi/gems/open4@1.3.4.rbi
245
+ - sorbet/rbi/gems/packwerk@2.2.1.rbi
246
+ - sorbet/rbi/gems/parallel@1.22.1.rbi
204
247
  - sorbet/rbi/gems/parse_packwerk@0.12.1.rbi
248
+ - sorbet/rbi/gems/parser@3.1.2.1.rbi
249
+ - sorbet/rbi/gems/pry@0.14.1.rbi
250
+ - sorbet/rbi/gems/public_suffix@5.0.0.rbi
251
+ - sorbet/rbi/gems/racc@1.6.0.rbi
252
+ - sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi
253
+ - sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi
254
+ - sorbet/rbi/gems/rainbow@3.1.1.rbi
255
+ - sorbet/rbi/gems/rake@13.0.6.rbi
256
+ - sorbet/rbi/gems/rbi@0.0.14.rbi
257
+ - sorbet/rbi/gems/rchardet@1.8.0.rbi
258
+ - sorbet/rbi/gems/regexp_parser@2.5.0.rbi
259
+ - sorbet/rbi/gems/rexml@3.2.5.rbi
260
+ - sorbet/rbi/gems/rspec-core@3.11.0.rbi
261
+ - sorbet/rbi/gems/rspec-expectations@3.11.0.rbi
262
+ - sorbet/rbi/gems/rspec-mocks@3.11.1.rbi
263
+ - sorbet/rbi/gems/rspec-support@3.11.0.rbi
264
+ - sorbet/rbi/gems/rspec@3.11.0.rbi
265
+ - sorbet/rbi/gems/rubocop-ast@1.21.0.rbi
266
+ - sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi
267
+ - sorbet/rbi/gems/rubocop@1.36.0.rbi
268
+ - sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi
269
+ - sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi
270
+ - sorbet/rbi/gems/sawyer@0.9.2.rbi
271
+ - sorbet/rbi/gems/smart_properties@1.17.0.rbi
272
+ - sorbet/rbi/gems/spoom@1.1.11.rbi
273
+ - sorbet/rbi/gems/tapioca@0.8.0.rbi
274
+ - sorbet/rbi/gems/terminal-table@3.0.2.rbi
275
+ - sorbet/rbi/gems/thor@1.2.1.rbi
276
+ - sorbet/rbi/gems/tzinfo@2.0.5.rbi
277
+ - sorbet/rbi/gems/unicode-display_width@2.3.0.rbi
278
+ - sorbet/rbi/gems/unparser@0.6.5.rbi
279
+ - sorbet/rbi/gems/webrick@1.7.0.rbi
280
+ - sorbet/rbi/gems/yard-sorbet@0.6.1.rbi
281
+ - sorbet/rbi/gems/yard@0.9.27.rbi
205
282
  - sorbet/rbi/todo.rbi
206
283
  - sorbet/tapioca/require.rb
207
284
  homepage: https://github.com/rubyatscale/danger-packwerk
@@ -227,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
304
  - !ruby/object:Gem::Version
228
305
  version: '0'
229
306
  requirements: []
230
- rubygems_version: 3.3.7
307
+ rubygems_version: 3.1.6
231
308
  signing_key:
232
309
  specification_version: 4
233
310
  summary: Danger plugin for packwerk.
@@ -1,122 +0,0 @@
1
- # typed: true
2
-
3
- class Danger::DangerfileGitHubPlugin < ::Danger::Plugin
4
- def initialize(dangerfile); end
5
-
6
- def api; end
7
- def base_commit; end
8
- def branch_for_base; end
9
- def branch_for_head; end
10
- def dismiss_out_of_range_messages(dismiss = T.unsafe(nil)); end
11
- def head_commit; end
12
- def html_link(paths, full_path: T.unsafe(nil)); end
13
- def mr_author; end
14
- def mr_body; end
15
- def mr_json; end
16
- def mr_labels; end
17
- def mr_title; end
18
- def pr_author; end
19
- def pr_body; end
20
- def pr_diff; end
21
- def pr_draft?; end
22
- def pr_json; end
23
- def pr_labels; end
24
- def pr_title; end
25
- def review; end
26
-
27
- private
28
-
29
- def create_link(href, text); end
30
-
31
- class << self
32
- def instance_name; end
33
- def new(dangerfile); end
34
- end
35
- end
36
-
37
- class Danger::CI
38
- def initialize(_env); end
39
-
40
- def pull_request_id; end
41
- def pull_request_id=(_arg0); end
42
- def repo_slug; end
43
- def repo_slug=(_arg0); end
44
- def repo_url; end
45
- def repo_url=(_arg0); end
46
- def supported_request_sources; end
47
- def supported_request_sources=(_arg0); end
48
- def supports?(request_source); end
49
-
50
- class << self
51
- def available_ci_sources; end
52
- def inherited(child_class); end
53
- def validates_as_ci?(_env); end
54
- def validates_as_pr?(_env); end
55
- end
56
- end
57
-
58
- class Danger::LocalGitRepo < ::Danger::CI
59
- def initialize(env = T.unsafe(nil)); end
60
-
61
- def base_commit; end
62
- def base_commit=(_arg0); end
63
- def git; end
64
- def head_commit; end
65
- def head_commit=(_arg0); end
66
- def run_git(command); end
67
- def supported_request_sources; end
68
-
69
- private
70
-
71
- def commits; end
72
- def find_pull_request(env); end
73
- def find_remote_info(env); end
74
- def found_pull_request; end
75
- def given_pull_request_url?(env); end
76
- def missing_remote_error_message; end
77
- def raise_error_for_missing_remote; end
78
- def remote_info; end
79
- def sha; end
80
-
81
- class << self
82
- def validates_as_ci?(env); end
83
- def validates_as_pr?(_env); end
84
- end
85
- end
86
-
87
-
88
- class Danger::DangerfileGitPlugin < ::Danger::Plugin
89
- def initialize(dangerfile); end
90
-
91
- def added_files; end
92
- def commits; end
93
- def deleted_files; end
94
- def deletions; end
95
- def diff; end
96
- def diff_for_file(file); end
97
- def info_for_file(file); end
98
- def insertions; end
99
- def lines_of_code; end
100
- def modified_files; end
101
- def renamed_files; end
102
- def tags; end
103
-
104
- class << self
105
- def instance_name; end
106
- end
107
- end
108
-
109
-
110
- class Danger::Plugin
111
- sig { returns(Danger::DangerfileGitHubPlugin) }
112
- def github; end
113
-
114
- sig { returns(Danger::DangerfileGitPlugin) }
115
- def git; end
116
-
117
- def markdown(message, file:, line:); end
118
- end
119
-
120
- class Danger::Dangerfile; end
121
- module Danger::EnvironmentManager; end
122
- module DangerHelpers::Cork::Board; end