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,276 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi sorbet-typed
3
+ #
4
+ # If you would like to make changes to this file, great! Please upstream any changes you make here:
5
+ #
6
+ # https://github.com/sorbet/sorbet-typed/edit/master/lib/rainbow/all/rainbow.rbi
7
+ #
8
+ # typed: strong
9
+
10
+ module Rainbow
11
+ sig { returns(T::Boolean) }
12
+ attr_accessor :enabled
13
+
14
+ class Color
15
+ sig { returns(Symbol) }
16
+ attr_reader :ground
17
+
18
+ sig do
19
+ params(
20
+ ground: Symbol,
21
+ values: T.any([Integer], [Integer, Integer, Integer])
22
+ ).returns(Color)
23
+ end
24
+ def self.build(ground, values); end
25
+
26
+ sig { params(hex: String).returns([Integer, Integer, Integer]) }
27
+ def self.parse_hex_color(hex); end
28
+
29
+ class Indexed < Color
30
+ sig { returns(Integer) }
31
+ attr_reader :num
32
+
33
+ sig { params(ground: Symbol, num: Integer).void }
34
+ def initialize(ground, num); end
35
+
36
+ sig { returns(T::Array[Integer]) }
37
+ def codes; end
38
+ end
39
+
40
+ class Named < Indexed
41
+ NAMES = T.let(nil, T::Hash[Symbol, Integer])
42
+
43
+ sig { returns(T::Array[Symbol]) }
44
+ def self.color_names; end
45
+
46
+ sig { returns(String) }
47
+ def self.valid_names; end
48
+
49
+ sig { params(ground: Symbol, name: Symbol).void }
50
+ def initialize(ground, name); end
51
+ end
52
+
53
+ class RGB < Indexed
54
+ sig { returns(Integer) }
55
+ attr_accessor :r, :g, :b
56
+
57
+ sig { params(value: Numeric).returns(Integer) }
58
+ def to_ansi_domain(value); end
59
+
60
+ sig { params(ground: Symbol, values: Integer).void }
61
+ def initialize(ground, *values); end
62
+
63
+ sig { returns(T::Array[Integer]) }
64
+ def codes; end
65
+ end
66
+
67
+ class X11Named < RGB
68
+ include X11ColorNames
69
+
70
+ sig { returns(T::Array[Symbol]) }
71
+ def self.color_names; end
72
+
73
+ sig { returns(String) }
74
+ def self.valid_names; end
75
+
76
+ sig { params(ground: Symbol, name: Symbol).void }
77
+ def initialize(ground, name); end
78
+ end
79
+ end
80
+
81
+ sig { returns(Wrapper) }
82
+ def self.global; end
83
+
84
+ sig { returns(T::Boolean) }
85
+ def self.enabled; end
86
+
87
+ sig { params(value: T::Boolean).returns(T::Boolean) }
88
+ def self.enabled=(value); end
89
+
90
+ sig { params(string: String).returns(String) }
91
+ def self.uncolor(string); end
92
+
93
+ class NullPresenter < String
94
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
95
+ def color(*values); end
96
+
97
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
98
+ def foreground(*values); end
99
+
100
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
101
+ def fg(*values); end
102
+
103
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
104
+ def background(*values); end
105
+
106
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
107
+ def bg(*values); end
108
+
109
+ sig { returns(NullPresenter) }
110
+ def reset; end
111
+
112
+ sig { returns(NullPresenter) }
113
+ def bright; end
114
+
115
+ sig { returns(NullPresenter) }
116
+ def faint; end
117
+
118
+ sig { returns(NullPresenter) }
119
+ def italic; end
120
+
121
+ sig { returns(NullPresenter) }
122
+ def underline; end
123
+
124
+ sig { returns(NullPresenter) }
125
+ def blink; end
126
+
127
+ sig { returns(NullPresenter) }
128
+ def inverse; end
129
+
130
+ sig { returns(NullPresenter) }
131
+ def hide; end
132
+
133
+ sig { returns(NullPresenter) }
134
+ def cross_out; end
135
+
136
+ sig { returns(NullPresenter) }
137
+ def black; end
138
+
139
+ sig { returns(NullPresenter) }
140
+ def red; end
141
+
142
+ sig { returns(NullPresenter) }
143
+ def green; end
144
+
145
+ sig { returns(NullPresenter) }
146
+ def yellow; end
147
+
148
+ sig { returns(NullPresenter) }
149
+ def blue; end
150
+
151
+ sig { returns(NullPresenter) }
152
+ def magenta; end
153
+
154
+ sig { returns(NullPresenter) }
155
+ def cyan; end
156
+
157
+ sig { returns(NullPresenter) }
158
+ def white; end
159
+
160
+ sig { returns(NullPresenter) }
161
+ def bold; end
162
+
163
+ sig { returns(NullPresenter) }
164
+ def dark; end
165
+
166
+ sig { returns(NullPresenter) }
167
+ def strike; end
168
+ end
169
+
170
+ class Presenter < String
171
+ TERM_EFFECTS = T.let(nil, T::Hash[Symbol, Integer])
172
+
173
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
174
+ def color(*values); end
175
+
176
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
177
+ def foreground(*values); end
178
+
179
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
180
+ def fg(*values); end
181
+
182
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
183
+ def background(*values); end
184
+
185
+ sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
186
+ def bg(*values); end
187
+
188
+ sig { returns(Presenter) }
189
+ def reset; end
190
+
191
+ sig { returns(Presenter) }
192
+ def bright; end
193
+
194
+ sig { returns(Presenter) }
195
+ def faint; end
196
+
197
+ sig { returns(Presenter) }
198
+ def italic; end
199
+
200
+ sig { returns(Presenter) }
201
+ def underline; end
202
+
203
+ sig { returns(Presenter) }
204
+ def blink; end
205
+
206
+ sig { returns(Presenter) }
207
+ def inverse; end
208
+
209
+ sig { returns(Presenter) }
210
+ def hide; end
211
+
212
+ sig { returns(Presenter) }
213
+ def cross_out; end
214
+
215
+ sig { returns(Presenter) }
216
+ def black; end
217
+
218
+ sig { returns(Presenter) }
219
+ def red; end
220
+
221
+ sig { returns(Presenter) }
222
+ def green; end
223
+
224
+ sig { returns(Presenter) }
225
+ def yellow; end
226
+
227
+ sig { returns(Presenter) }
228
+ def blue; end
229
+
230
+ sig { returns(Presenter) }
231
+ def magenta; end
232
+
233
+ sig { returns(Presenter) }
234
+ def cyan; end
235
+
236
+ sig { returns(Presenter) }
237
+ def white; end
238
+
239
+ sig { returns(Presenter) }
240
+ def bold; end
241
+
242
+ sig { returns(Presenter) }
243
+ def dark; end
244
+
245
+ sig { returns(Presenter) }
246
+ def strike; end
247
+ end
248
+
249
+ class StringUtils
250
+ sig { params(string: String, codes: T::Array[Integer]).returns(String) }
251
+ def self.wrap_with_sgr(string, codes); end
252
+
253
+ sig { params(string: String).returns(String) }
254
+ def uncolor(string); end
255
+ end
256
+
257
+ VERSION = T.let(nil, String)
258
+
259
+ class Wrapper
260
+ sig { returns(T::Boolean) }
261
+ attr_accessor :enabled
262
+
263
+ sig { params(enabled: T::Boolean).void }
264
+ def initialize(enabled = true); end
265
+
266
+ sig { params(string: String).returns(T.any(Rainbow::Presenter, Rainbow::NullPresenter)) }
267
+ def wrap(string); end
268
+ end
269
+
270
+ module X11ColorNames
271
+ NAMES = T.let(nil, T::Hash[Symbol, [Integer, Integer, Integer]])
272
+ end
273
+ end
274
+
275
+ sig { params(string: String).returns(Rainbow::Presenter) }
276
+ def Rainbow(string); end