danger 8.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +22 -0
  3. data/README.md +94 -0
  4. data/bin/danger +5 -0
  5. data/lib/assets/DangerfileTemplate +13 -0
  6. data/lib/danger.rb +44 -0
  7. data/lib/danger/ci_source/appcenter.rb +55 -0
  8. data/lib/danger/ci_source/appveyor.rb +60 -0
  9. data/lib/danger/ci_source/azure_pipelines.rb +44 -0
  10. data/lib/danger/ci_source/bamboo.rb +41 -0
  11. data/lib/danger/ci_source/bitbucket_pipelines.rb +37 -0
  12. data/lib/danger/ci_source/bitrise.rb +65 -0
  13. data/lib/danger/ci_source/buddybuild.rb +62 -0
  14. data/lib/danger/ci_source/buildkite.rb +51 -0
  15. data/lib/danger/ci_source/ci_source.rb +37 -0
  16. data/lib/danger/ci_source/circle.rb +94 -0
  17. data/lib/danger/ci_source/circle_api.rb +51 -0
  18. data/lib/danger/ci_source/cirrus.rb +31 -0
  19. data/lib/danger/ci_source/code_build.rb +57 -0
  20. data/lib/danger/ci_source/codefresh.rb +53 -0
  21. data/lib/danger/ci_source/codeship.rb +44 -0
  22. data/lib/danger/ci_source/dotci.rb +52 -0
  23. data/lib/danger/ci_source/drone.rb +71 -0
  24. data/lib/danger/ci_source/github_actions.rb +43 -0
  25. data/lib/danger/ci_source/gitlab_ci.rb +86 -0
  26. data/lib/danger/ci_source/jenkins.rb +149 -0
  27. data/lib/danger/ci_source/local_git_repo.rb +119 -0
  28. data/lib/danger/ci_source/local_only_git_repo.rb +47 -0
  29. data/lib/danger/ci_source/screwdriver.rb +47 -0
  30. data/lib/danger/ci_source/semaphore.rb +37 -0
  31. data/lib/danger/ci_source/support/commits.rb +17 -0
  32. data/lib/danger/ci_source/support/find_repo_info_from_logs.rb +35 -0
  33. data/lib/danger/ci_source/support/find_repo_info_from_url.rb +42 -0
  34. data/lib/danger/ci_source/support/local_pull_request.rb +14 -0
  35. data/lib/danger/ci_source/support/no_pull_request.rb +7 -0
  36. data/lib/danger/ci_source/support/no_repo_info.rb +5 -0
  37. data/lib/danger/ci_source/support/pull_request_finder.rb +179 -0
  38. data/lib/danger/ci_source/support/remote_pull_request.rb +15 -0
  39. data/lib/danger/ci_source/support/repo_info.rb +10 -0
  40. data/lib/danger/ci_source/surf.rb +37 -0
  41. data/lib/danger/ci_source/teamcity.rb +159 -0
  42. data/lib/danger/ci_source/travis.rb +51 -0
  43. data/lib/danger/ci_source/vsts.rb +73 -0
  44. data/lib/danger/ci_source/xcode_server.rb +48 -0
  45. data/lib/danger/clients/rubygems_client.rb +14 -0
  46. data/lib/danger/commands/dangerfile/gem.rb +43 -0
  47. data/lib/danger/commands/dangerfile/init.rb +30 -0
  48. data/lib/danger/commands/dry_run.rb +54 -0
  49. data/lib/danger/commands/init.rb +297 -0
  50. data/lib/danger/commands/init_helpers/interviewer.rb +92 -0
  51. data/lib/danger/commands/local.rb +83 -0
  52. data/lib/danger/commands/local_helpers/http_cache.rb +36 -0
  53. data/lib/danger/commands/local_helpers/local_setup.rb +46 -0
  54. data/lib/danger/commands/local_helpers/pry_setup.rb +31 -0
  55. data/lib/danger/commands/plugins/plugin_json.rb +46 -0
  56. data/lib/danger/commands/plugins/plugin_lint.rb +54 -0
  57. data/lib/danger/commands/plugins/plugin_readme.rb +45 -0
  58. data/lib/danger/commands/pr.rb +92 -0
  59. data/lib/danger/commands/runner.rb +94 -0
  60. data/lib/danger/commands/staging.rb +53 -0
  61. data/lib/danger/commands/systems.rb +43 -0
  62. data/lib/danger/comment_generators/bitbucket_server.md.erb +20 -0
  63. data/lib/danger/comment_generators/bitbucket_server_inline.md.erb +15 -0
  64. data/lib/danger/comment_generators/bitbucket_server_message_group.md.erb +12 -0
  65. data/lib/danger/comment_generators/github.md.erb +55 -0
  66. data/lib/danger/comment_generators/github_inline.md.erb +26 -0
  67. data/lib/danger/comment_generators/gitlab.md.erb +40 -0
  68. data/lib/danger/comment_generators/gitlab_inline.md.erb +26 -0
  69. data/lib/danger/comment_generators/vsts.md.erb +20 -0
  70. data/lib/danger/core_ext/file_list.rb +18 -0
  71. data/lib/danger/core_ext/string.rb +20 -0
  72. data/lib/danger/danger_core/dangerfile.rb +341 -0
  73. data/lib/danger/danger_core/dangerfile_dsl.rb +29 -0
  74. data/lib/danger/danger_core/dangerfile_generator.rb +11 -0
  75. data/lib/danger/danger_core/environment_manager.rb +123 -0
  76. data/lib/danger/danger_core/executor.rb +92 -0
  77. data/lib/danger/danger_core/message_aggregator.rb +49 -0
  78. data/lib/danger/danger_core/message_group.rb +68 -0
  79. data/lib/danger/danger_core/messages/base.rb +56 -0
  80. data/lib/danger/danger_core/messages/markdown.rb +42 -0
  81. data/lib/danger/danger_core/messages/violation.rb +54 -0
  82. data/lib/danger/danger_core/plugins/dangerfile_bitbucket_cloud_plugin.rb +144 -0
  83. data/lib/danger/danger_core/plugins/dangerfile_bitbucket_server_plugin.rb +211 -0
  84. data/lib/danger/danger_core/plugins/dangerfile_danger_plugin.rb +248 -0
  85. data/lib/danger/danger_core/plugins/dangerfile_git_plugin.rb +158 -0
  86. data/lib/danger/danger_core/plugins/dangerfile_github_plugin.rb +254 -0
  87. data/lib/danger/danger_core/plugins/dangerfile_gitlab_plugin.rb +240 -0
  88. data/lib/danger/danger_core/plugins/dangerfile_local_only_plugin.rb +42 -0
  89. data/lib/danger/danger_core/plugins/dangerfile_messaging_plugin.rb +218 -0
  90. data/lib/danger/danger_core/plugins/dangerfile_vsts_plugin.rb +191 -0
  91. data/lib/danger/danger_core/standard_error.rb +143 -0
  92. data/lib/danger/helpers/array_subclass.rb +61 -0
  93. data/lib/danger/helpers/comment.rb +32 -0
  94. data/lib/danger/helpers/comments_helper.rb +178 -0
  95. data/lib/danger/helpers/comments_parsing_helper.rb +70 -0
  96. data/lib/danger/helpers/emoji_mapper.rb +41 -0
  97. data/lib/danger/helpers/find_max_num_violations.rb +31 -0
  98. data/lib/danger/helpers/message_groups_array_helper.rb +31 -0
  99. data/lib/danger/plugin_support/gems_resolver.rb +77 -0
  100. data/lib/danger/plugin_support/plugin.rb +49 -0
  101. data/lib/danger/plugin_support/plugin_file_resolver.rb +30 -0
  102. data/lib/danger/plugin_support/plugin_linter.rb +161 -0
  103. data/lib/danger/plugin_support/plugin_parser.rb +199 -0
  104. data/lib/danger/plugin_support/templates/readme_table.html.erb +26 -0
  105. data/lib/danger/request_sources/bitbucket_cloud.rb +171 -0
  106. data/lib/danger/request_sources/bitbucket_cloud_api.rb +181 -0
  107. data/lib/danger/request_sources/bitbucket_server.rb +105 -0
  108. data/lib/danger/request_sources/bitbucket_server_api.rb +117 -0
  109. data/lib/danger/request_sources/github/github.rb +530 -0
  110. data/lib/danger/request_sources/github/github_review.rb +126 -0
  111. data/lib/danger/request_sources/github/github_review_resolver.rb +19 -0
  112. data/lib/danger/request_sources/github/github_review_unsupported.rb +25 -0
  113. data/lib/danger/request_sources/gitlab.rb +525 -0
  114. data/lib/danger/request_sources/local_only.rb +53 -0
  115. data/lib/danger/request_sources/request_source.rb +85 -0
  116. data/lib/danger/request_sources/support/get_ignored_violation.rb +17 -0
  117. data/lib/danger/request_sources/vsts.rb +118 -0
  118. data/lib/danger/request_sources/vsts_api.rb +138 -0
  119. data/lib/danger/scm_source/git_repo.rb +181 -0
  120. data/lib/danger/version.rb +4 -0
  121. metadata +339 -0
@@ -0,0 +1,4 @@
1
+ module Danger
2
+ VERSION = "8.0.3".freeze
3
+ DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
+ end
metadata ADDED
@@ -0,0 +1,339 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: danger
3
+ version: !ruby/object:Gem::Version
4
+ version: 8.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Orta Therox
8
+ - Juanito Fatas
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2020-07-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: claide
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: claide-plugins
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 0.9.2
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 0.9.2
42
+ - !ruby/object:Gem::Dependency
43
+ name: git
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.7'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.7'
56
+ - !ruby/object:Gem::Dependency
57
+ name: colored2
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '3.1'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '3.1'
70
+ - !ruby/object:Gem::Dependency
71
+ name: faraday
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 0.9.0
77
+ - - "<"
78
+ - !ruby/object:Gem::Version
79
+ version: '2.0'
80
+ type: :runtime
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 0.9.0
87
+ - - "<"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.0'
90
+ - !ruby/object:Gem::Dependency
91
+ name: faraday-http-cache
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.0'
97
+ type: :runtime
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.0'
104
+ - !ruby/object:Gem::Dependency
105
+ name: kramdown
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.0'
111
+ type: :runtime
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '2.0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: kramdown-parser-gfm
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.0'
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.0'
132
+ - !ruby/object:Gem::Dependency
133
+ name: octokit
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '4.7'
139
+ type: :runtime
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '4.7'
146
+ - !ruby/object:Gem::Dependency
147
+ name: terminal-table
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1'
153
+ type: :runtime
154
+ prerelease: false
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1'
160
+ - !ruby/object:Gem::Dependency
161
+ name: cork
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.1'
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.1'
174
+ - !ruby/object:Gem::Dependency
175
+ name: no_proxy_fix
176
+ requirement: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ type: :runtime
182
+ prerelease: false
183
+ version_requirements: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ description: Stop Saying 'You Forgot To…' in Code Review
189
+ email:
190
+ - orta.therox@gmail.com
191
+ - katehuang0320@gmail.com
192
+ executables:
193
+ - danger
194
+ extensions: []
195
+ extra_rdoc_files: []
196
+ files:
197
+ - LICENSE
198
+ - README.md
199
+ - bin/danger
200
+ - lib/assets/DangerfileTemplate
201
+ - lib/danger.rb
202
+ - lib/danger/ci_source/appcenter.rb
203
+ - lib/danger/ci_source/appveyor.rb
204
+ - lib/danger/ci_source/azure_pipelines.rb
205
+ - lib/danger/ci_source/bamboo.rb
206
+ - lib/danger/ci_source/bitbucket_pipelines.rb
207
+ - lib/danger/ci_source/bitrise.rb
208
+ - lib/danger/ci_source/buddybuild.rb
209
+ - lib/danger/ci_source/buildkite.rb
210
+ - lib/danger/ci_source/ci_source.rb
211
+ - lib/danger/ci_source/circle.rb
212
+ - lib/danger/ci_source/circle_api.rb
213
+ - lib/danger/ci_source/cirrus.rb
214
+ - lib/danger/ci_source/code_build.rb
215
+ - lib/danger/ci_source/codefresh.rb
216
+ - lib/danger/ci_source/codeship.rb
217
+ - lib/danger/ci_source/dotci.rb
218
+ - lib/danger/ci_source/drone.rb
219
+ - lib/danger/ci_source/github_actions.rb
220
+ - lib/danger/ci_source/gitlab_ci.rb
221
+ - lib/danger/ci_source/jenkins.rb
222
+ - lib/danger/ci_source/local_git_repo.rb
223
+ - lib/danger/ci_source/local_only_git_repo.rb
224
+ - lib/danger/ci_source/screwdriver.rb
225
+ - lib/danger/ci_source/semaphore.rb
226
+ - lib/danger/ci_source/support/commits.rb
227
+ - lib/danger/ci_source/support/find_repo_info_from_logs.rb
228
+ - lib/danger/ci_source/support/find_repo_info_from_url.rb
229
+ - lib/danger/ci_source/support/local_pull_request.rb
230
+ - lib/danger/ci_source/support/no_pull_request.rb
231
+ - lib/danger/ci_source/support/no_repo_info.rb
232
+ - lib/danger/ci_source/support/pull_request_finder.rb
233
+ - lib/danger/ci_source/support/remote_pull_request.rb
234
+ - lib/danger/ci_source/support/repo_info.rb
235
+ - lib/danger/ci_source/surf.rb
236
+ - lib/danger/ci_source/teamcity.rb
237
+ - lib/danger/ci_source/travis.rb
238
+ - lib/danger/ci_source/vsts.rb
239
+ - lib/danger/ci_source/xcode_server.rb
240
+ - lib/danger/clients/rubygems_client.rb
241
+ - lib/danger/commands/dangerfile/gem.rb
242
+ - lib/danger/commands/dangerfile/init.rb
243
+ - lib/danger/commands/dry_run.rb
244
+ - lib/danger/commands/init.rb
245
+ - lib/danger/commands/init_helpers/interviewer.rb
246
+ - lib/danger/commands/local.rb
247
+ - lib/danger/commands/local_helpers/http_cache.rb
248
+ - lib/danger/commands/local_helpers/local_setup.rb
249
+ - lib/danger/commands/local_helpers/pry_setup.rb
250
+ - lib/danger/commands/plugins/plugin_json.rb
251
+ - lib/danger/commands/plugins/plugin_lint.rb
252
+ - lib/danger/commands/plugins/plugin_readme.rb
253
+ - lib/danger/commands/pr.rb
254
+ - lib/danger/commands/runner.rb
255
+ - lib/danger/commands/staging.rb
256
+ - lib/danger/commands/systems.rb
257
+ - lib/danger/comment_generators/bitbucket_server.md.erb
258
+ - lib/danger/comment_generators/bitbucket_server_inline.md.erb
259
+ - lib/danger/comment_generators/bitbucket_server_message_group.md.erb
260
+ - lib/danger/comment_generators/github.md.erb
261
+ - lib/danger/comment_generators/github_inline.md.erb
262
+ - lib/danger/comment_generators/gitlab.md.erb
263
+ - lib/danger/comment_generators/gitlab_inline.md.erb
264
+ - lib/danger/comment_generators/vsts.md.erb
265
+ - lib/danger/core_ext/file_list.rb
266
+ - lib/danger/core_ext/string.rb
267
+ - lib/danger/danger_core/dangerfile.rb
268
+ - lib/danger/danger_core/dangerfile_dsl.rb
269
+ - lib/danger/danger_core/dangerfile_generator.rb
270
+ - lib/danger/danger_core/environment_manager.rb
271
+ - lib/danger/danger_core/executor.rb
272
+ - lib/danger/danger_core/message_aggregator.rb
273
+ - lib/danger/danger_core/message_group.rb
274
+ - lib/danger/danger_core/messages/base.rb
275
+ - lib/danger/danger_core/messages/markdown.rb
276
+ - lib/danger/danger_core/messages/violation.rb
277
+ - lib/danger/danger_core/plugins/dangerfile_bitbucket_cloud_plugin.rb
278
+ - lib/danger/danger_core/plugins/dangerfile_bitbucket_server_plugin.rb
279
+ - lib/danger/danger_core/plugins/dangerfile_danger_plugin.rb
280
+ - lib/danger/danger_core/plugins/dangerfile_git_plugin.rb
281
+ - lib/danger/danger_core/plugins/dangerfile_github_plugin.rb
282
+ - lib/danger/danger_core/plugins/dangerfile_gitlab_plugin.rb
283
+ - lib/danger/danger_core/plugins/dangerfile_local_only_plugin.rb
284
+ - lib/danger/danger_core/plugins/dangerfile_messaging_plugin.rb
285
+ - lib/danger/danger_core/plugins/dangerfile_vsts_plugin.rb
286
+ - lib/danger/danger_core/standard_error.rb
287
+ - lib/danger/helpers/array_subclass.rb
288
+ - lib/danger/helpers/comment.rb
289
+ - lib/danger/helpers/comments_helper.rb
290
+ - lib/danger/helpers/comments_parsing_helper.rb
291
+ - lib/danger/helpers/emoji_mapper.rb
292
+ - lib/danger/helpers/find_max_num_violations.rb
293
+ - lib/danger/helpers/message_groups_array_helper.rb
294
+ - lib/danger/plugin_support/gems_resolver.rb
295
+ - lib/danger/plugin_support/plugin.rb
296
+ - lib/danger/plugin_support/plugin_file_resolver.rb
297
+ - lib/danger/plugin_support/plugin_linter.rb
298
+ - lib/danger/plugin_support/plugin_parser.rb
299
+ - lib/danger/plugin_support/templates/readme_table.html.erb
300
+ - lib/danger/request_sources/bitbucket_cloud.rb
301
+ - lib/danger/request_sources/bitbucket_cloud_api.rb
302
+ - lib/danger/request_sources/bitbucket_server.rb
303
+ - lib/danger/request_sources/bitbucket_server_api.rb
304
+ - lib/danger/request_sources/github/github.rb
305
+ - lib/danger/request_sources/github/github_review.rb
306
+ - lib/danger/request_sources/github/github_review_resolver.rb
307
+ - lib/danger/request_sources/github/github_review_unsupported.rb
308
+ - lib/danger/request_sources/gitlab.rb
309
+ - lib/danger/request_sources/local_only.rb
310
+ - lib/danger/request_sources/request_source.rb
311
+ - lib/danger/request_sources/support/get_ignored_violation.rb
312
+ - lib/danger/request_sources/vsts.rb
313
+ - lib/danger/request_sources/vsts_api.rb
314
+ - lib/danger/scm_source/git_repo.rb
315
+ - lib/danger/version.rb
316
+ homepage: https://github.com/danger/danger
317
+ licenses:
318
+ - MIT
319
+ metadata: {}
320
+ post_install_message:
321
+ rdoc_options: []
322
+ require_paths:
323
+ - lib
324
+ required_ruby_version: !ruby/object:Gem::Requirement
325
+ requirements:
326
+ - - ">="
327
+ - !ruby/object:Gem::Version
328
+ version: 2.4.0
329
+ required_rubygems_version: !ruby/object:Gem::Requirement
330
+ requirements:
331
+ - - ">="
332
+ - !ruby/object:Gem::Version
333
+ version: '0'
334
+ requirements: []
335
+ rubygems_version: 3.1.2
336
+ signing_key:
337
+ specification_version: 4
338
+ summary: Like Unit Tests, but for your Team Culture.
339
+ test_files: []