bhook 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +3 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +6 -0
  6. data/Gemfile.lock +82 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +27 -0
  9. data/Rakefile +13 -0
  10. data/bin/bhook +11 -0
  11. data/lib/bhook/args_parser.rb +55 -0
  12. data/lib/bhook/converter/html.rb +51 -0
  13. data/lib/bhook/directory.rb +62 -0
  14. data/lib/bhook/md_file.rb +50 -0
  15. data/lib/bhook/theme/_after_h1.erb +7 -0
  16. data/lib/bhook/theme/page.erb +71 -0
  17. data/lib/bhook/version.rb +6 -0
  18. data/lib/bhook/workspace.rb +45 -0
  19. data/lib/bhook.rb +22 -0
  20. data/sorbet/config +3 -0
  21. data/sorbet/rbi/gems/ast.rbi +49 -0
  22. data/sorbet/rbi/gems/bhook.rbi +15 -0
  23. data/sorbet/rbi/gems/git.rbi +531 -0
  24. data/sorbet/rbi/gems/kramdown.rbi +255 -0
  25. data/sorbet/rbi/gems/listen.rbi +304 -0
  26. data/sorbet/rbi/gems/parallel.rbi +83 -0
  27. data/sorbet/rbi/gems/parser.rbi +1440 -0
  28. data/sorbet/rbi/gems/rainbow.rbi +122 -0
  29. data/sorbet/rbi/gems/rake.rbi +644 -0
  30. data/sorbet/rbi/gems/rchardet.rbi +181 -0
  31. data/sorbet/rbi/gems/regexp_parser.rbi +929 -0
  32. data/sorbet/rbi/gems/rexml.rbi +599 -0
  33. data/sorbet/rbi/gems/rspec-core.rbi +1898 -0
  34. data/sorbet/rbi/gems/rspec-expectations.rbi +1171 -0
  35. data/sorbet/rbi/gems/rspec-mocks.rbi +1094 -0
  36. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  37. data/sorbet/rbi/gems/rspec.rbi +15 -0
  38. data/sorbet/rbi/gems/rubocop-ast.rbi +1385 -0
  39. data/sorbet/rbi/gems/rubocop-rake.rbi +85 -0
  40. data/sorbet/rbi/gems/rubocop-rspec.rbi +1044 -0
  41. data/sorbet/rbi/gems/rubocop.rbi +8593 -0
  42. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  43. data/sorbet/rbi/gems/unicode-display_width.rbi +20 -0
  44. data/sorbet/rbi/hidden-definitions/errors.txt +4944 -0
  45. data/sorbet/rbi/hidden-definitions/hidden.rbi +10044 -0
  46. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
  47. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
  48. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
  49. data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +12 -0
  50. data/sorbet/rbi/todo.rbi +7 -0
  51. metadata +235 -0
@@ -0,0 +1,531 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/git/all/git.rbi
9
+ #
10
+ # git-1.10.2
11
+
12
+ module Git
13
+ def config(name = nil, value = nil); end
14
+ def global_config(name = nil, value = nil); end
15
+ def self.bare(git_dir, options = nil); end
16
+ def self.clone(repository, name, options = nil); end
17
+ def self.config; end
18
+ def self.configure; end
19
+ def self.export(repository, name, options = nil); end
20
+ def self.global_config(name = nil, value = nil); end
21
+ def self.init(directory = nil, options = nil); end
22
+ def self.ls_remote(location = nil, options = nil); end
23
+ def self.open(working_dir, options = nil); end
24
+ end
25
+ class Git::Author
26
+ def date; end
27
+ def date=(arg0); end
28
+ def email; end
29
+ def email=(arg0); end
30
+ def initialize(author_string); end
31
+ def name; end
32
+ def name=(arg0); end
33
+ end
34
+ class Git::Base
35
+ def add(paths = nil, **options); end
36
+ def add_remote(name, url, opts = nil); end
37
+ def add_tag(name, *options); end
38
+ def apply(file); end
39
+ def apply_mail(file); end
40
+ def archive(treeish, file = nil, opts = nil); end
41
+ def cat_file(objectish); end
42
+ def chdir; end
43
+ def checkout(branch = nil, opts = nil); end
44
+ def checkout_file(version, file); end
45
+ def checkout_index(opts = nil); end
46
+ def clean(opts = nil); end
47
+ def commit(message, opts = nil); end
48
+ def commit_all(message, opts = nil); end
49
+ def config(name = nil, value = nil, options = nil); end
50
+ def current_branch; end
51
+ def delete_tag(name); end
52
+ def describe(committish = nil, opts = nil); end
53
+ def dir; end
54
+ def each_conflict(&block); end
55
+ def fetch(remote = nil, opts = nil); end
56
+ def gc; end
57
+ def grep(string, path_limiter = nil, opts = nil); end
58
+ def index; end
59
+ def initialize(options = nil); end
60
+ def is_branch?(branch); end
61
+ def is_local_branch?(branch); end
62
+ def is_remote_branch?(branch); end
63
+ def lib; end
64
+ def ls_files(location = nil); end
65
+ def ls_tree(objectish); end
66
+ def merge(branch, message = nil, opts = nil); end
67
+ def pull(remote = nil, branch = nil); end
68
+ def push(remote = nil, branch = nil, opts = nil); end
69
+ def read_tree(treeish, opts = nil); end
70
+ def remotes; end
71
+ def remove(path = nil, opts = nil); end
72
+ def remove_remote(name); end
73
+ def repack; end
74
+ def repo; end
75
+ def repo_size; end
76
+ def reset(commitish = nil, opts = nil); end
77
+ def reset_hard(commitish = nil, opts = nil); end
78
+ def revert(commitish = nil, opts = nil); end
79
+ def revparse(objectish); end
80
+ def self.bare(git_dir, options = nil); end
81
+ def self.clone(repository, name, options = nil); end
82
+ def self.config; end
83
+ def self.init(directory = nil, options = nil); end
84
+ def self.normalize_index(options); end
85
+ def self.normalize_paths(options, default_working_directory: nil, default_repository: nil, bare: nil); end
86
+ def self.normalize_repository(options, default:, bare: nil); end
87
+ def self.normalize_working_directory(options, default:, bare: nil); end
88
+ def self.open(working_dir, options = nil); end
89
+ def set_index(index_file, check = nil); end
90
+ def set_remote_url(name, url); end
91
+ def set_working(work_dir, check = nil); end
92
+ def show(objectish = nil, path = nil); end
93
+ def tags; end
94
+ def update_ref(branch, commit); end
95
+ def with_index(new_index); end
96
+ def with_temp_index(&blk); end
97
+ def with_temp_working(&blk); end
98
+ def with_working(work_dir); end
99
+ def write_and_commit_tree(opts = nil); end
100
+ def write_tree; end
101
+ include Git::Base::Factory
102
+ end
103
+ module Git::Base::Factory
104
+ def branch(branch_name = nil); end
105
+ def branches; end
106
+ def commit_tree(tree = nil, opts = nil); end
107
+ def diff(objectish = nil, obj2 = nil); end
108
+ def gblob(objectish); end
109
+ def gcommit(objectish); end
110
+ def gtree(objectish); end
111
+ def log(count = nil); end
112
+ def merge_base(*args); end
113
+ def object(objectish); end
114
+ def remote(remote_name = nil); end
115
+ def status; end
116
+ def tag(tag_name); end
117
+ def worktree(dir, commitish = nil); end
118
+ def worktrees; end
119
+ end
120
+ class Git::Path
121
+ def initialize(path, check_path = nil); end
122
+ def path; end
123
+ def path=(arg0); end
124
+ def readable?; end
125
+ def to_s; end
126
+ def writable?; end
127
+ end
128
+ class Git::Branch < Git::Path
129
+ def archive(file, opts = nil); end
130
+ def check_if_create; end
131
+ def checkout; end
132
+ def contains?(commit); end
133
+ def create; end
134
+ def current; end
135
+ def delete; end
136
+ def determine_current; end
137
+ def full; end
138
+ def full=(arg0); end
139
+ def gcommit; end
140
+ def in_branch(message = nil); end
141
+ def initialize(base, name); end
142
+ def merge(branch = nil, message = nil); end
143
+ def name; end
144
+ def name=(arg0); end
145
+ def parse_name(name); end
146
+ def remote; end
147
+ def remote=(arg0); end
148
+ def stashes; end
149
+ def to_a; end
150
+ def to_s; end
151
+ def update_ref(commit); end
152
+ end
153
+ class Git::Branches
154
+ def [](branch_name); end
155
+ def each(&block); end
156
+ def initialize(base); end
157
+ def local; end
158
+ def remote; end
159
+ def size; end
160
+ def to_s; end
161
+ include Enumerable
162
+ end
163
+ class Git::Config
164
+ def binary_path; end
165
+ def binary_path=(arg0); end
166
+ def git_ssh; end
167
+ def git_ssh=(arg0); end
168
+ def initialize; end
169
+ end
170
+ class Git::Diff
171
+ def [](key); end
172
+ def cache_full; end
173
+ def cache_name_status; end
174
+ def cache_stats; end
175
+ def deletions; end
176
+ def each(&block); end
177
+ def from; end
178
+ def initialize(base, from = nil, to = nil); end
179
+ def insertions; end
180
+ def lines; end
181
+ def name_status; end
182
+ def patch(file = nil); end
183
+ def path(path); end
184
+ def process_full; end
185
+ def process_full_diff; end
186
+ def size; end
187
+ def stats; end
188
+ def to; end
189
+ def to_s(file = nil); end
190
+ include Enumerable
191
+ end
192
+ class Git::Diff::DiffFile
193
+ def binary?; end
194
+ def blob(type = nil); end
195
+ def dst; end
196
+ def dst=(arg0); end
197
+ def initialize(base, hash); end
198
+ def mode; end
199
+ def mode=(arg0); end
200
+ def patch; end
201
+ def patch=(arg0); end
202
+ def path; end
203
+ def path=(arg0); end
204
+ def src; end
205
+ def src=(arg0); end
206
+ def type; end
207
+ def type=(arg0); end
208
+ end
209
+ module Git::EncodingUtils
210
+ def self.best_guess_encoding; end
211
+ def self.default_encoding; end
212
+ def self.detected_encoding(str); end
213
+ def self.encoding_options; end
214
+ def self.normalize_encoding(str); end
215
+ end
216
+ class Git::EscapedPath
217
+ def escaped_path_to_bytes(path); end
218
+ def extract_escape(path, index); end
219
+ def extract_octal(path, index); end
220
+ def extract_single_char(path, index); end
221
+ def initialize(path); end
222
+ def next_byte(path, index); end
223
+ def path; end
224
+ def unescape; end
225
+ end
226
+ class Git::Index < Git::Path
227
+ end
228
+ class Git::GitExecuteError < StandardError
229
+ end
230
+ class Git::Lib
231
+ def add(paths = nil, options = nil); end
232
+ def apply(patch_file); end
233
+ def apply_mail(patch_file); end
234
+ def archive(sha, file = nil, opts = nil); end
235
+ def branch_contains(commit, branch_name = nil); end
236
+ def branch_current; end
237
+ def branch_delete(branch); end
238
+ def branch_new(branch); end
239
+ def branches_all; end
240
+ def change_head_branch(branch_name); end
241
+ def checkout(branch, opts = nil); end
242
+ def checkout_file(version, file); end
243
+ def checkout_index(opts = nil); end
244
+ def clean(opts = nil); end
245
+ def clone(repository, name, opts = nil); end
246
+ def command(cmd, *opts, &block); end
247
+ def command_lines(cmd, *opts); end
248
+ def commit(message, opts = nil); end
249
+ def commit_data(sha); end
250
+ def commit_tree(tree, opts = nil); end
251
+ def config_get(name); end
252
+ def config_list; end
253
+ def config_remote(name); end
254
+ def config_set(name, value, options = nil); end
255
+ def conflicts; end
256
+ def current_command_version; end
257
+ def describe(committish = nil, opts = nil); end
258
+ def diff_as_hash(diff_command, opts = nil); end
259
+ def diff_files; end
260
+ def diff_full(obj1 = nil, obj2 = nil, opts = nil); end
261
+ def diff_index(treeish); end
262
+ def diff_name_status(reference1 = nil, reference2 = nil, opts = nil); end
263
+ def diff_stats(obj1 = nil, obj2 = nil, opts = nil); end
264
+ def escape(s); end
265
+ def escape_for_sh(s); end
266
+ def escape_for_windows(s); end
267
+ def fetch(remote, opts); end
268
+ def full_log_commits(opts = nil); end
269
+ def full_tree(sha); end
270
+ def gc; end
271
+ def git_dir; end
272
+ def git_index_file; end
273
+ def git_work_dir; end
274
+ def global_config_get(name); end
275
+ def global_config_list; end
276
+ def global_config_set(name, value); end
277
+ def grep(string, opts = nil); end
278
+ def ignored_files; end
279
+ def init(opts = nil); end
280
+ def initialize(base = nil, logger = nil); end
281
+ def list_files(ref_dir); end
282
+ def log_commits(opts = nil); end
283
+ def log_common_options(opts); end
284
+ def log_path_options(opts); end
285
+ def ls_files(location = nil); end
286
+ def ls_remote(location = nil, opts = nil); end
287
+ def ls_tree(sha); end
288
+ def meets_required_version?; end
289
+ def merge(branch, message = nil, opts = nil); end
290
+ def merge_base(*args); end
291
+ def mv(file1, file2); end
292
+ def namerev(string); end
293
+ def object_contents(sha, &block); end
294
+ def object_size(sha); end
295
+ def object_type(sha); end
296
+ def parse_config(file); end
297
+ def parse_config_list(lines); end
298
+ def process_commit_data(data, sha = nil, indent = nil); end
299
+ def process_commit_log_data(data); end
300
+ def process_tag_data(data, name, indent = nil); end
301
+ def pull(remote = nil, branch = nil); end
302
+ def push(remote, branch = nil, opts = nil); end
303
+ def read_tree(treeish, opts = nil); end
304
+ def remote_add(name, url, opts = nil); end
305
+ def remote_remove(name); end
306
+ def remote_set_url(name, url); end
307
+ def remotes; end
308
+ def remove(path = nil, opts = nil); end
309
+ def repack; end
310
+ def required_command_version; end
311
+ def reset(commit, opts = nil); end
312
+ def restore_git_system_env_variables; end
313
+ def return_base_opts_from_clone(clone_dir, opts); end
314
+ def revert(commitish, opts = nil); end
315
+ def revparse(string); end
316
+ def run_command(git_cmd, &block); end
317
+ def set_custom_git_env_variables; end
318
+ def show(objectish = nil, path = nil); end
319
+ def stash_apply(id = nil); end
320
+ def stash_clear; end
321
+ def stash_list; end
322
+ def stash_save(message); end
323
+ def stashes_all; end
324
+ def store_git_system_env_variables; end
325
+ def tag(name, *opts); end
326
+ def tag_data(name); end
327
+ def tag_sha(tag_name); end
328
+ def tags; end
329
+ def tree_depth(sha); end
330
+ def unmerged; end
331
+ def update_ref(branch, commit); end
332
+ def windows_platform?; end
333
+ def with_custom_env_variables(&block); end
334
+ def worktree_add(dir, commitish = nil); end
335
+ def worktree_prune; end
336
+ def worktree_remove(dir); end
337
+ def worktrees_all; end
338
+ def write_tree; end
339
+ end
340
+ class Git::Log
341
+ def [](index); end
342
+ def author(regex); end
343
+ def between(sha1, sha2 = nil); end
344
+ def check_log; end
345
+ def cherry; end
346
+ def dirty_log; end
347
+ def each(&block); end
348
+ def first; end
349
+ def grep(regex); end
350
+ def initialize(base, count = nil); end
351
+ def last; end
352
+ def object(objectish); end
353
+ def path(path); end
354
+ def run_log; end
355
+ def since(date); end
356
+ def size; end
357
+ def skip(num); end
358
+ def to_s; end
359
+ def until(date); end
360
+ include Enumerable
361
+ end
362
+ class Git::GitTagNameDoesNotExist < StandardError
363
+ end
364
+ class Git::Object
365
+ def self.new(base, objectish, type = nil, is_tag = nil); end
366
+ end
367
+ class Git::Object::AbstractObject
368
+ def archive(file = nil, opts = nil); end
369
+ def blob?; end
370
+ def commit?; end
371
+ def contents(&block); end
372
+ def contents_array; end
373
+ def diff(objectish); end
374
+ def grep(string, path_limiter = nil, opts = nil); end
375
+ def initialize(base, objectish); end
376
+ def log(count = nil); end
377
+ def mode; end
378
+ def mode=(arg0); end
379
+ def objectish; end
380
+ def objectish=(arg0); end
381
+ def sha; end
382
+ def size; end
383
+ def size=(arg0); end
384
+ def tag?; end
385
+ def to_s; end
386
+ def tree?; end
387
+ def type; end
388
+ def type=(arg0); end
389
+ end
390
+ class Git::Object::Blob < Git::Object::AbstractObject
391
+ def blob?; end
392
+ def initialize(base, sha, mode = nil); end
393
+ end
394
+ class Git::Object::Tree < Git::Object::AbstractObject
395
+ def blobs; end
396
+ def check_tree; end
397
+ def children; end
398
+ def depth; end
399
+ def files; end
400
+ def full_tree; end
401
+ def initialize(base, sha, mode = nil); end
402
+ def subdirectories; end
403
+ def subtrees; end
404
+ def tree?; end
405
+ def trees; end
406
+ end
407
+ class Git::Object::Commit < Git::Object::AbstractObject
408
+ def author; end
409
+ def author_date; end
410
+ def check_commit; end
411
+ def commit?; end
412
+ def committer; end
413
+ def committer_date; end
414
+ def date; end
415
+ def diff_parent; end
416
+ def gtree; end
417
+ def initialize(base, sha, init = nil); end
418
+ def message; end
419
+ def name; end
420
+ def parent; end
421
+ def parents; end
422
+ def set_commit(data); end
423
+ end
424
+ class Git::Object::Tag < Git::Object::AbstractObject
425
+ def annotated?; end
426
+ def check_tag; end
427
+ def initialize(base, sha, name); end
428
+ def message; end
429
+ def name; end
430
+ def name=(arg0); end
431
+ def tag?; end
432
+ def tagger; end
433
+ end
434
+ class Git::Remote < Git::Path
435
+ def branch(branch = nil); end
436
+ def fetch(opts = nil); end
437
+ def fetch_opts; end
438
+ def fetch_opts=(arg0); end
439
+ def initialize(base, name); end
440
+ def merge(branch = nil); end
441
+ def name; end
442
+ def name=(arg0); end
443
+ def remove; end
444
+ def to_s; end
445
+ def url; end
446
+ def url=(arg0); end
447
+ end
448
+ class Git::Repository < Git::Path
449
+ end
450
+ class Git::Status
451
+ def [](file); end
452
+ def added; end
453
+ def added?(file); end
454
+ def changed; end
455
+ def changed?(file); end
456
+ def construct_status; end
457
+ def deleted; end
458
+ def deleted?(file); end
459
+ def each(&block); end
460
+ def fetch_added; end
461
+ def fetch_modified; end
462
+ def fetch_untracked; end
463
+ def initialize(base); end
464
+ def pretty; end
465
+ def pretty_file(file); end
466
+ def untracked; end
467
+ def untracked?(file); end
468
+ include Enumerable
469
+ end
470
+ class Git::Status::StatusFile
471
+ def blob(type = nil); end
472
+ def initialize(base, hash); end
473
+ def mode_index; end
474
+ def mode_index=(arg0); end
475
+ def mode_repo; end
476
+ def mode_repo=(arg0); end
477
+ def path; end
478
+ def path=(arg0); end
479
+ def sha_index; end
480
+ def sha_index=(arg0); end
481
+ def sha_repo; end
482
+ def sha_repo=(arg0); end
483
+ def stage; end
484
+ def stage=(arg0); end
485
+ def type; end
486
+ def type=(arg0); end
487
+ def untracked; end
488
+ def untracked=(arg0); end
489
+ end
490
+ class Git::Stash
491
+ def initialize(base, message, existing = nil); end
492
+ def message; end
493
+ def save; end
494
+ def saved?; end
495
+ def to_s; end
496
+ end
497
+ class Git::Stashes
498
+ def [](index); end
499
+ def all; end
500
+ def apply(index = nil); end
501
+ def clear; end
502
+ def each(&block); end
503
+ def initialize(base); end
504
+ def save(message); end
505
+ def size; end
506
+ include Enumerable
507
+ end
508
+ class Git::WorkingDirectory < Git::Path
509
+ end
510
+ class Git::Worktree < Git::Path
511
+ def add; end
512
+ def dir; end
513
+ def dir=(arg0); end
514
+ def full; end
515
+ def full=(arg0); end
516
+ def gcommit; end
517
+ def gcommit=(arg0); end
518
+ def initialize(base, dir, gcommit = nil); end
519
+ def remove; end
520
+ def to_a; end
521
+ def to_s; end
522
+ end
523
+ class Git::Worktrees
524
+ def [](worktree_name); end
525
+ def each(&block); end
526
+ def initialize(base); end
527
+ def prune; end
528
+ def size; end
529
+ def to_s; end
530
+ include Enumerable
531
+ end