checkoff 0.200.0 → 0.203.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +130 -28
  3. data/.git-hooks/pre_commit/solargraph_typecheck.rb +12 -11
  4. data/.overcommit.yml +27 -2
  5. data/.rubocop.yml +20 -2
  6. data/.rubocop_todo.yml +90 -0
  7. data/.solargraph.yml +10 -1
  8. data/DEVELOPMENT.md +1 -1
  9. data/Gemfile +11 -8
  10. data/Gemfile.lock +66 -42
  11. data/LICENSE +1 -1
  12. data/Makefile +14 -12
  13. data/bin/brakeman +27 -0
  14. data/bin/overcommit_branch +117 -0
  15. data/bin/spoom +27 -0
  16. data/bin/srb +27 -0
  17. data/bin/srb-rbi +27 -0
  18. data/bin/tapioca +27 -0
  19. data/config/annotations_misc.rb +35 -0
  20. data/docs/cookiecutter_input.json +1 -0
  21. data/fix.sh +14 -6
  22. data/lib/checkoff/custom_fields.rb +3 -2
  23. data/lib/checkoff/internal/search_url/simple_param_converter.rb +11 -0
  24. data/lib/checkoff/version.rb +1 -1
  25. data/requirements_dev.txt +1 -1
  26. data/sorbet/config +4 -0
  27. data/sorbet/rbi/annotations/.gitattributes +1 -0
  28. data/sorbet/rbi/annotations/activesupport.rbi +453 -0
  29. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  30. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  31. data/sorbet/rbi/annotations/mocha.rbi +34 -0
  32. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  33. data/sorbet/rbi/annotations/webmock.rbi +9 -0
  34. data/sorbet/rbi/dsl/.gitattributes +1 -0
  35. data/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
  36. data/sorbet/rbi/gems/.gitattributes +1 -0
  37. data/sorbet/rbi/gems/activesupport@7.1.3.rbi +18749 -0
  38. data/sorbet/rbi/gems/addressable@2.8.6.rbi +1994 -0
  39. data/sorbet/rbi/gems/ansi@1.5.0.rbi +688 -0
  40. data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +6142 -0
  41. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  42. data/sorbet/rbi/gems/backport@1.2.0.rbi +523 -0
  43. data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
  44. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  45. data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +78 -0
  46. data/sorbet/rbi/gems/builder@3.2.4.rbi +505 -0
  47. data/sorbet/rbi/gems/bump@0.10.0.rbi +169 -0
  48. data/sorbet/rbi/gems/cache@0.4.1.rbi +211 -0
  49. data/sorbet/rbi/gems/cache_method@0.2.7.rbi +293 -0
  50. data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +9 -0
  51. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +383 -0
  52. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3427 -0
  53. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11591 -0
  54. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
  55. data/sorbet/rbi/gems/crack@0.4.5.rbi +145 -0
  56. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +969 -0
  57. data/sorbet/rbi/gems/docile@1.4.0.rbi +377 -0
  58. data/sorbet/rbi/gems/drb@2.2.0.rbi +1347 -0
  59. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +9 -0
  60. data/sorbet/rbi/gems/erubi@1.13.0.rbi +152 -0
  61. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +222 -0
  62. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +126 -0
  63. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +136 -0
  64. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +145 -0
  65. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +259 -0
  66. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +142 -0
  67. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +118 -0
  68. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +125 -0
  69. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +133 -0
  70. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +198 -0
  71. data/sorbet/rbi/gems/faraday@1.10.3.rbi +2729 -0
  72. data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +29 -0
  73. data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +1004 -0
  74. data/sorbet/rbi/gems/gli@2.21.1.rbi +9 -0
  75. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +351 -0
  76. data/sorbet/rbi/gems/i18n@1.14.1.rbi +2326 -0
  77. data/sorbet/rbi/gems/imagen@0.1.8.rbi +340 -0
  78. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +899 -0
  79. data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +22 -0
  80. data/sorbet/rbi/gems/json@2.7.1.rbi +1562 -0
  81. data/sorbet/rbi/gems/jwt@2.7.1.rbi +1405 -0
  82. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +128 -0
  83. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3272 -0
  84. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  85. data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
  86. data/sorbet/rbi/gems/mdl@0.13.0.rbi +445 -0
  87. data/sorbet/rbi/gems/method_source@1.0.0.rbi +273 -0
  88. data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +127 -0
  89. data/sorbet/rbi/gems/mime-types@3.5.1.rbi +1252 -0
  90. data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +136 -0
  91. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1014 -0
  92. data/sorbet/rbi/gems/minitest@5.21.1.rbi +1539 -0
  93. data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +314 -0
  94. data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +581 -0
  95. data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +629 -0
  96. data/sorbet/rbi/gems/mocha@2.1.0.rbi +12 -0
  97. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +268 -0
  98. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +102 -0
  99. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +234 -0
  100. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +94 -0
  101. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  102. data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
  103. data/sorbet/rbi/gems/oauth2@1.4.11.rbi +833 -0
  104. data/sorbet/rbi/gems/ostruct@0.6.1.rbi +354 -0
  105. data/sorbet/rbi/gems/overcommit@0.64.0.rbi +2400 -0
  106. data/sorbet/rbi/gems/parallel@1.23.0.rbi +274 -0
  107. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +7253 -0
  108. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  109. data/sorbet/rbi/gems/pry@0.14.2.rbi +10070 -0
  110. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +936 -0
  111. data/sorbet/rbi/gems/punchlist@1.3.2.rbi +173 -0
  112. data/sorbet/rbi/gems/racc@1.7.3.rbi +162 -0
  113. data/sorbet/rbi/gems/rack@3.0.8.rbi +5184 -0
  114. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  115. data/sorbet/rbi/gems/rake@13.1.0.rbi +3022 -0
  116. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  117. data/sorbet/rbi/gems/rbs@2.8.4.rbi +5613 -0
  118. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3750 -0
  119. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +390 -0
  120. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4888 -0
  121. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7061 -0
  122. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2577 -0
  123. data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +3262 -0
  124. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
  125. data/sorbet/rbi/gems/rubocop@1.59.0.rbi +57238 -0
  126. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  127. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  128. data/sorbet/rbi/gems/rugged@1.6.3.rbi +1577 -0
  129. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +217 -0
  130. data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +256 -0
  131. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
  132. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
  133. data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +9396 -0
  134. data/sorbet/rbi/gems/source_finder@3.2.1.rbi +317 -0
  135. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  136. data/sorbet/rbi/gems/tapioca@0.16.4.rbi +3604 -0
  137. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  138. data/sorbet/rbi/gems/tilt@2.4.0.rbi +933 -0
  139. data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +9 -0
  140. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
  141. data/sorbet/rbi/gems/undercover@0.5.0.rbi +433 -0
  142. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  143. data/sorbet/rbi/gems/webmock@3.19.1.rbi +1769 -0
  144. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  145. data/sorbet/rbi/gems/yard@0.9.34.rbi +18247 -0
  146. data/sorbet/rbi/todo.rbi +11 -0
  147. data/sorbet/tapioca/config.yml +13 -0
  148. data/sorbet/tapioca/require.rb +4 -0
  149. metadata +134 -3
@@ -0,0 +1,505 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `builder` gem.
5
+ # Please instead update this file by running `bin/tapioca gem builder`.
6
+
7
+
8
+ # If the Builder::XChar module is not currently defined, fail on any
9
+ # name clashes in standard library classes.
10
+ #
11
+ # source://builder//lib/builder/blankslate.rb#17
12
+ module Builder
13
+ class << self
14
+ # source://builder//lib/builder/xchar.rb#13
15
+ def check_for_name_collision(klass, method_name, defined_constant = T.unsafe(nil)); end
16
+ end
17
+ end
18
+
19
+ # source://builder//lib/builder/blankslate.rb#19
20
+ Builder::BlankSlate = BasicObject
21
+
22
+ # Generic error for builder
23
+ #
24
+ # source://builder//lib/builder/xmlbase.rb#9
25
+ class Builder::IllegalBlockError < ::RuntimeError; end
26
+
27
+ # source://builder//lib/builder/xchar.rb#33
28
+ module Builder::XChar
29
+ class << self
30
+ # encode a string per XML rules
31
+ #
32
+ # source://builder//lib/builder/xchar.rb#152
33
+ def encode(string); end
34
+
35
+ # convert a string to valid UTF-8, compensating for a number of
36
+ # common errors.
37
+ #
38
+ # source://builder//lib/builder/xchar.rb#126
39
+ def unicode(string); end
40
+ end
41
+ end
42
+
43
+ # See
44
+ # http://intertwingly.net/stories/2004/04/14/i18n.html#CleaningWindows
45
+ # for details.
46
+ #
47
+ # source://builder//lib/builder/xchar.rb#38
48
+ Builder::XChar::CP1252 = T.let(T.unsafe(nil), Hash)
49
+
50
+ # source://builder//lib/builder/xchar.rb#100
51
+ Builder::XChar::CP1252_DIFFERENCES = T.let(T.unsafe(nil), String)
52
+
53
+ # source://builder//lib/builder/xchar.rb#120
54
+ Builder::XChar::ENCODING_BINARY = T.let(T.unsafe(nil), Encoding)
55
+
56
+ # source://builder//lib/builder/xchar.rb#122
57
+ Builder::XChar::ENCODING_ISO1 = T.let(T.unsafe(nil), Encoding)
58
+
59
+ # source://builder//lib/builder/xchar.rb#121
60
+ Builder::XChar::ENCODING_UTF8 = T.let(T.unsafe(nil), Encoding)
61
+
62
+ # source://builder//lib/builder/xchar.rb#109
63
+ Builder::XChar::INVALID_XML_CHAR = T.let(T.unsafe(nil), Regexp)
64
+
65
+ # See http://www.w3.org/TR/REC-xml/#dt-chardata for details.
66
+ #
67
+ # source://builder//lib/builder/xchar.rb#69
68
+ Builder::XChar::PREDEFINED = T.let(T.unsafe(nil), Hash)
69
+
70
+ # http://www.fileformat.info/info/unicode/char/fffd/index.htm
71
+ #
72
+ # source://builder//lib/builder/xchar.rb#84
73
+ Builder::XChar::REPLACEMENT_CHAR = T.let(T.unsafe(nil), String)
74
+
75
+ # source://builder//lib/builder/xchar.rb#100
76
+ Builder::XChar::UNICODE_EQUIVALENT = T.let(T.unsafe(nil), String)
77
+
78
+ # See http://www.w3.org/TR/REC-xml/#charsets for details.
79
+ #
80
+ # source://builder//lib/builder/xchar.rb#76
81
+ Builder::XChar::VALID = T.let(T.unsafe(nil), Array)
82
+
83
+ # source://builder//lib/builder/xchar.rb#105
84
+ Builder::XChar::XML_PREDEFINED = T.let(T.unsafe(nil), Regexp)
85
+
86
+ # XmlBase is a base class for building XML builders. See
87
+ # Builder::XmlMarkup and Builder::XmlEvents for examples.
88
+ #
89
+ # source://builder//lib/builder/xmlbase.rb#13
90
+ class Builder::XmlBase < ::BasicObject
91
+ # Create an XML markup builder.
92
+ #
93
+ # out :: Object receiving the markup. +out+ must respond to
94
+ # <tt><<</tt>.
95
+ # indent :: Number of spaces used for indentation (0 implies no
96
+ # indentation and no line breaks).
97
+ # initial :: Level of initial indentation.
98
+ # encoding :: When <tt>encoding</tt> and $KCODE are set to 'utf-8'
99
+ # characters aren't converted to character entities in
100
+ # the output stream.
101
+ #
102
+ # @return [XmlBase] a new instance of XmlBase
103
+ #
104
+ # source://builder//lib/builder/xmlbase.rb#29
105
+ def initialize(indent = T.unsafe(nil), initial = T.unsafe(nil), encoding = T.unsafe(nil)); end
106
+
107
+ # Append text to the output target without escaping any markup.
108
+ # May be used within the markup brackets as:
109
+ #
110
+ # builder.p { |x| x << "<br/>HI" } #=> <p><br/>HI</p>
111
+ #
112
+ # This is useful when using non-builder enabled software that
113
+ # generates strings. Just insert the string directly into the
114
+ # builder without changing the inserted markup.
115
+ #
116
+ # It is also useful for stacking builder objects. Builders only
117
+ # use <tt><<</tt> to append to the target, so by supporting this
118
+ # method/operation builders can use other builders as their
119
+ # targets.
120
+ #
121
+ # source://builder//lib/builder/xmlbase.rb#118
122
+ def <<(text); end
123
+
124
+ # @return [Boolean]
125
+ #
126
+ # source://builder//lib/builder/xmlbase.rb#35
127
+ def explicit_nil_handling?; end
128
+
129
+ # Create XML markup based on the name of the method. This method
130
+ # is never invoked directly, but is called for each markup method
131
+ # in the markup block that isn't cached.
132
+ #
133
+ # source://builder//lib/builder/xmlbase.rb#92
134
+ def method_missing(sym, *args, &block); end
135
+
136
+ # For some reason, nil? is sent to the XmlMarkup object. If nil?
137
+ # is not defined and method_missing is invoked, some strange kind
138
+ # of recursion happens. Since nil? won't ever be an XML tag, it
139
+ # is pretty safe to define it here. (Note: this is an example of
140
+ # cargo cult programming,
141
+ # cf. http://fishbowl.pastiche.org/2004/10/13/cargo_cult_programming).
142
+ #
143
+ # @return [Boolean]
144
+ #
145
+ # source://builder//lib/builder/xmlbase.rb#128
146
+ def nil?; end
147
+
148
+ # Create a tag named +sym+. Other than the first argument which
149
+ # is the tag name, the arguments are the same as the tags
150
+ # implemented via <tt>method_missing</tt>.
151
+ #
152
+ # source://builder//lib/builder/xmlbase.rb#42
153
+ def tag!(sym, *args, &block); end
154
+
155
+ # Append text to the output target. Escape any markup. May be
156
+ # used within the markup brackets as:
157
+ #
158
+ # builder.p { |b| b.br; b.text! "HI" } #=> <p><br/>HI</p>
159
+ #
160
+ # source://builder//lib/builder/xmlbase.rb#101
161
+ def text!(text); end
162
+
163
+ private
164
+
165
+ # source://builder//lib/builder/xmlbase.rb#136
166
+ def _escape(text); end
167
+
168
+ # source://builder//lib/builder/xmlbase.rb#159
169
+ def _escape_attribute(text); end
170
+
171
+ # source://builder//lib/builder/xmlbase.rb#169
172
+ def _indent; end
173
+
174
+ # source://builder//lib/builder/xmlbase.rb#174
175
+ def _nested_structures(block); end
176
+
177
+ # source://builder//lib/builder/xmlbase.rb#164
178
+ def _newline; end
179
+
180
+ # If XmlBase.cache_method_calls = true, we dynamicly create the method
181
+ # missed as an instance method on the XMLBase object. Because XML
182
+ # documents are usually very repetative in nature, the next node will
183
+ # be handled by the new method instead of method_missing. As
184
+ # method_missing is very slow, this speeds up document generation
185
+ # significantly.
186
+ #
187
+ # source://builder//lib/builder/xmlbase.rb#187
188
+ def cache_method_call(sym); end
189
+
190
+ class << self
191
+ # Returns the value of attribute cache_method_calls.
192
+ #
193
+ # source://builder//lib/builder/xmlbase.rb#16
194
+ def cache_method_calls; end
195
+
196
+ # Sets the attribute cache_method_calls
197
+ #
198
+ # @param value the value to set the attribute cache_method_calls to.
199
+ #
200
+ # source://builder//lib/builder/xmlbase.rb#16
201
+ def cache_method_calls=(_arg0); end
202
+ end
203
+ end
204
+
205
+ # Create a series of SAX-like XML events (e.g. start_tag, end_tag)
206
+ # from the markup code. XmlEvent objects are used in a way similar
207
+ # to XmlMarkup objects, except that a series of events are generated
208
+ # and passed to a handler rather than generating character-based
209
+ # markup.
210
+ #
211
+ # Usage:
212
+ # xe = Builder::XmlEvents.new(hander)
213
+ # xe.title("HI") # Sends start_tag/end_tag/text messages to the handler.
214
+ #
215
+ # Indentation may also be selected by providing value for the
216
+ # indentation size and initial indentation level.
217
+ #
218
+ # xe = Builder::XmlEvents.new(handler, indent_size, initial_indent_level)
219
+ #
220
+ # == XML Event Handler
221
+ #
222
+ # The handler object must expect the following events.
223
+ #
224
+ # [<tt>start_tag(tag, attrs)</tt>]
225
+ # Announces that a new tag has been found. +tag+ is the name of
226
+ # the tag and +attrs+ is a hash of attributes for the tag.
227
+ #
228
+ # [<tt>end_tag(tag)</tt>]
229
+ # Announces that an end tag for +tag+ has been found.
230
+ #
231
+ # [<tt>text(text)</tt>]
232
+ # Announces that a string of characters (+text+) has been found.
233
+ # A series of characters may be broken up into more than one
234
+ # +text+ call, so the client cannot assume that a single
235
+ # callback contains all the text data.
236
+ #
237
+ # source://builder//lib/builder/xmlevents.rb#49
238
+ class Builder::XmlEvents < ::Builder::XmlMarkup
239
+ # source://builder//lib/builder/xmlevents.rb#59
240
+ def _end_tag(sym); end
241
+
242
+ # source://builder//lib/builder/xmlevents.rb#54
243
+ def _start_tag(sym, attrs, end_too = T.unsafe(nil)); end
244
+
245
+ # source://builder//lib/builder/xmlevents.rb#50
246
+ def text!(text); end
247
+ end
248
+
249
+ # Create XML markup easily. All (well, almost all) methods sent to
250
+ # an XmlMarkup object will be translated to the equivalent XML
251
+ # markup. Any method with a block will be treated as an XML markup
252
+ # tag with nested markup in the block.
253
+ #
254
+ # Examples will demonstrate this easier than words. In the
255
+ # following, +xm+ is an +XmlMarkup+ object.
256
+ #
257
+ # xm.em("emphasized") # => <em>emphasized</em>
258
+ # xm.em { xm.b("emp & bold") } # => <em><b>emph &amp; bold</b></em>
259
+ # xm.a("A Link", "href"=>"http://onestepback.org")
260
+ # # => <a href="http://onestepback.org">A Link</a>
261
+ # xm.div { xm.br } # => <div><br/></div>
262
+ # xm.target("name"=>"compile", "option"=>"fast")
263
+ # # => <target option="fast" name="compile"\>
264
+ # # NOTE: order of attributes is not specified.
265
+ #
266
+ # xm.instruct! # <?xml version="1.0" encoding="UTF-8"?>
267
+ # xm.html { # <html>
268
+ # xm.head { # <head>
269
+ # xm.title("History") # <title>History</title>
270
+ # } # </head>
271
+ # xm.body { # <body>
272
+ # xm.comment! "HI" # <!-- HI -->
273
+ # xm.h1("Header") # <h1>Header</h1>
274
+ # xm.p("paragraph") # <p>paragraph</p>
275
+ # } # </body>
276
+ # } # </html>
277
+ #
278
+ # == Notes:
279
+ #
280
+ # * The order that attributes are inserted in markup tags is
281
+ # undefined.
282
+ #
283
+ # * Sometimes you wish to insert text without enclosing tags. Use
284
+ # the <tt>text!</tt> method to accomplish this.
285
+ #
286
+ # Example:
287
+ #
288
+ # xm.div { # <div>
289
+ # xm.text! "line"; xm.br # line<br/>
290
+ # xm.text! "another line"; xmbr # another line<br/>
291
+ # } # </div>
292
+ #
293
+ # * The special XML characters <, >, and & are converted to &lt;,
294
+ # &gt; and &amp; automatically. Use the <tt><<</tt> operation to
295
+ # insert text without modification.
296
+ #
297
+ # * Sometimes tags use special characters not allowed in ruby
298
+ # identifiers. Use the <tt>tag!</tt> method to handle these
299
+ # cases.
300
+ #
301
+ # Example:
302
+ #
303
+ # xml.tag!("SOAP:Envelope") { ... }
304
+ #
305
+ # will produce ...
306
+ #
307
+ # <SOAP:Envelope> ... </SOAP:Envelope>"
308
+ #
309
+ # <tt>tag!</tt> will also take text and attribute arguments (after
310
+ # the tag name) like normal markup methods. (But see the next
311
+ # bullet item for a better way to handle XML namespaces).
312
+ #
313
+ # * Direct support for XML namespaces is now available. If the
314
+ # first argument to a tag call is a symbol, it will be joined to
315
+ # the tag to produce a namespace:tag combination. It is easier to
316
+ # show this than describe it.
317
+ #
318
+ # xml.SOAP :Envelope do ... end
319
+ #
320
+ # Just put a space before the colon in a namespace to produce the
321
+ # right form for builder (e.g. "<tt>SOAP:Envelope</tt>" =>
322
+ # "<tt>xml.SOAP :Envelope</tt>")
323
+ #
324
+ # * XmlMarkup builds the markup in any object (called a _target_)
325
+ # that accepts the <tt><<</tt> method. If no target is given,
326
+ # then XmlMarkup defaults to a string target.
327
+ #
328
+ # Examples:
329
+ #
330
+ # xm = Builder::XmlMarkup.new
331
+ # result = xm.title("yada")
332
+ # # result is a string containing the markup.
333
+ #
334
+ # buffer = ""
335
+ # xm = Builder::XmlMarkup.new(buffer)
336
+ # # The markup is appended to buffer (using <<)
337
+ #
338
+ # xm = Builder::XmlMarkup.new(STDOUT)
339
+ # # The markup is written to STDOUT (using <<)
340
+ #
341
+ # xm = Builder::XmlMarkup.new
342
+ # x2 = Builder::XmlMarkup.new(:target=>xm)
343
+ # # Markup written to +x2+ will be send to +xm+.
344
+ #
345
+ # * Indentation is enabled by providing the number of spaces to
346
+ # indent for each level as a second argument to XmlBuilder.new.
347
+ # Initial indentation may be specified using a third parameter.
348
+ #
349
+ # Example:
350
+ #
351
+ # xm = Builder.new(:indent=>2)
352
+ # # xm will produce nicely formatted and indented XML.
353
+ #
354
+ # xm = Builder.new(:indent=>2, :margin=>4)
355
+ # # xm will produce nicely formatted and indented XML with 2
356
+ # # spaces per indent and an over all indentation level of 4.
357
+ #
358
+ # builder = Builder::XmlMarkup.new(:target=>$stdout, :indent=>2)
359
+ # builder.name { |b| b.first("Jim"); b.last("Weirich) }
360
+ # # prints:
361
+ # # <name>
362
+ # # <first>Jim</first>
363
+ # # <last>Weirich</last>
364
+ # # </name>
365
+ #
366
+ # * The instance_eval implementation which forces self to refer to
367
+ # the message receiver as self is now obsolete. We now use normal
368
+ # block calls to execute the markup block. This means that all
369
+ # markup methods must now be explicitly send to the xml builder.
370
+ # For instance, instead of
371
+ #
372
+ # xml.div { strong("text") }
373
+ #
374
+ # you need to write:
375
+ #
376
+ # xml.div { xml.strong("text") }
377
+ #
378
+ # Although more verbose, the subtle change in semantics within the
379
+ # block was found to be prone to error. To make this change a
380
+ # little less cumbersome, the markup block now gets the markup
381
+ # object sent as an argument, allowing you to use a shorter alias
382
+ # within the block.
383
+ #
384
+ # For example:
385
+ #
386
+ # xml_builder = Builder::XmlMarkup.new
387
+ # xml_builder.div { |xml|
388
+ # xml.stong("text")
389
+ # }
390
+ #
391
+ # source://builder//lib/builder/xmlmarkup.rb#161
392
+ class Builder::XmlMarkup < ::Builder::XmlBase
393
+ # Create an XML markup builder. Parameters are specified by an
394
+ # option hash.
395
+ #
396
+ # :target => <em>target_object</em>::
397
+ # Object receiving the markup. +target_object+ must respond to
398
+ # the <tt><<(<em>a_string</em>)</tt> operator and return
399
+ # itself. The default target is a plain string target.
400
+ #
401
+ # :indent => <em>indentation</em>::
402
+ # Number of spaces used for indentation. The default is no
403
+ # indentation and no line breaks.
404
+ #
405
+ # :margin => <em>initial_indentation_level</em>::
406
+ # Amount of initial indentation (specified in levels, not
407
+ # spaces).
408
+ #
409
+ # :quote => <em>:single</em>::
410
+ # Use single quotes for attributes rather than double quotes.
411
+ #
412
+ # :escape_attrs => <em>OBSOLETE</em>::
413
+ # The :escape_attrs option is no longer supported by builder
414
+ # (and will be quietly ignored). String attribute values are
415
+ # now automatically escaped. If you need unescaped attribute
416
+ # values (perhaps you are using entities in the attribute
417
+ # values), then give the value as a Symbol. This allows much
418
+ # finer control over escaping attribute values.
419
+ #
420
+ # @return [XmlMarkup] a new instance of XmlMarkup
421
+ #
422
+ # source://builder//lib/builder/xmlmarkup.rb#190
423
+ def initialize(options = T.unsafe(nil)); end
424
+
425
+ # Insert a CDATA section into the XML markup.
426
+ #
427
+ # For example:
428
+ #
429
+ # xml.cdata!("text to be included in cdata")
430
+ # #=> <![CDATA[text to be included in cdata]]>
431
+ #
432
+ # source://builder//lib/builder/xmlmarkup.rb#270
433
+ def cdata!(text); end
434
+
435
+ # source://builder//lib/builder/xmlmarkup.rb#275
436
+ def cdata_value!(open, text); end
437
+
438
+ # source://builder//lib/builder/xmlmarkup.rb#204
439
+ def comment!(comment_text); end
440
+
441
+ # Insert an XML declaration into the XML markup.
442
+ #
443
+ # For example:
444
+ #
445
+ # xml.declare! :ELEMENT, :blah, "yada"
446
+ # # => <!ELEMENT blah "yada">
447
+ #
448
+ # source://builder//lib/builder/xmlmarkup.rb#215
449
+ def declare!(inst, *args, &block); end
450
+
451
+ # Insert a processing instruction into the XML markup. E.g.
452
+ #
453
+ # For example:
454
+ #
455
+ # xml.instruct!
456
+ # #=> <?xml version="1.0" encoding="UTF-8"?>
457
+ # xml.instruct! :aaa, :bbb=>"ccc"
458
+ # #=> <?aaa bbb="ccc"?>
459
+ #
460
+ # Note: If the encoding is setup to "UTF-8" and the value of
461
+ # $KCODE is "UTF8", then builder will emit UTF-8 encoded strings
462
+ # rather than the entity encoding normally used.
463
+ #
464
+ # source://builder//lib/builder/xmlmarkup.rb#248
465
+ def instruct!(directive_tag = T.unsafe(nil), attrs = T.unsafe(nil)); end
466
+
467
+ # Return the target of the builder.
468
+ #
469
+ # source://builder//lib/builder/xmlmarkup.rb#200
470
+ def target!; end
471
+
472
+ private
473
+
474
+ # source://builder//lib/builder/xmlmarkup.rb#326
475
+ def _attr_value(value); end
476
+
477
+ # Insert an ending tag.
478
+ #
479
+ # source://builder//lib/builder/xmlmarkup.rb#310
480
+ def _end_tag(sym); end
481
+
482
+ # source://builder//lib/builder/xmlmarkup.rb#335
483
+ def _ensure_no_block(got_block); end
484
+
485
+ # Insert the attributes (given in the hash).
486
+ #
487
+ # source://builder//lib/builder/xmlmarkup.rb#315
488
+ def _insert_attributes(attrs, order = T.unsafe(nil)); end
489
+
490
+ # Insert special instruction.
491
+ #
492
+ # source://builder//lib/builder/xmlmarkup.rb#291
493
+ def _special(open, close, data = T.unsafe(nil), attrs = T.unsafe(nil), order = T.unsafe(nil)); end
494
+
495
+ # Start an XML tag. If <tt>end_too</tt> is true, then the start
496
+ # tag is also the end tag (e.g. <br/>
497
+ #
498
+ # source://builder//lib/builder/xmlmarkup.rb#302
499
+ def _start_tag(sym, attrs, end_too = T.unsafe(nil)); end
500
+
501
+ # Insert text directly in to the builder's target.
502
+ #
503
+ # source://builder//lib/builder/xmlmarkup.rb#286
504
+ def _text(text); end
505
+ end
@@ -0,0 +1,169 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `bump` gem.
5
+ # Please instead update this file by running `bin/tapioca gem bump`.
6
+
7
+
8
+ # source://bump//lib/bump.rb#3
9
+ module Bump
10
+ class << self
11
+ # Returns the value of attribute changelog.
12
+ #
13
+ # source://bump//lib/bump.rb#13
14
+ def changelog; end
15
+
16
+ # Sets the attribute changelog
17
+ #
18
+ # @param value the value to set the attribute changelog to.
19
+ #
20
+ # source://bump//lib/bump.rb#13
21
+ def changelog=(_arg0); end
22
+
23
+ # Returns the value of attribute replace_in_default.
24
+ #
25
+ # source://bump//lib/bump.rb#13
26
+ def replace_in_default; end
27
+
28
+ # Sets the attribute replace_in_default
29
+ #
30
+ # @param value the value to set the attribute replace_in_default to.
31
+ #
32
+ # source://bump//lib/bump.rb#13
33
+ def replace_in_default=(_arg0); end
34
+
35
+ # Returns the value of attribute tag_by_default.
36
+ #
37
+ # source://bump//lib/bump.rb#13
38
+ def tag_by_default; end
39
+
40
+ # Sets the attribute tag_by_default
41
+ #
42
+ # @param value the value to set the attribute tag_by_default to.
43
+ #
44
+ # source://bump//lib/bump.rb#13
45
+ def tag_by_default=(_arg0); end
46
+ end
47
+ end
48
+
49
+ # source://bump//lib/bump.rb#16
50
+ class Bump::Bump
51
+ class << self
52
+ # source://bump//lib/bump.rb#71
53
+ def current; end
54
+
55
+ # source://bump//lib/bump.rb#23
56
+ def defaults; end
57
+
58
+ # source://bump//lib/bump.rb#100
59
+ def file; end
60
+
61
+ # source://bump//lib/bump.rb#75
62
+ def next_version(increment, current = T.unsafe(nil)); end
63
+
64
+ # source://bump//lib/bump.rb#104
65
+ def parse_cli_options!(options); end
66
+
67
+ # source://bump//lib/bump.rb#34
68
+ def run(bump, options = T.unsafe(nil)); end
69
+
70
+ private
71
+
72
+ # source://bump//lib/bump.rb#123
73
+ def bump(file, current, next_version, options); end
74
+
75
+ # source://bump//lib/bump.rb#188
76
+ def bump_changelog(file, current); end
77
+
78
+ # source://bump//lib/bump.rb#177
79
+ def bump_part(increment, options); end
80
+
81
+ # source://bump//lib/bump.rb#183
82
+ def bump_set(next_version, options); end
83
+
84
+ # source://bump//lib/bump.rb#165
85
+ def bundler_with_clean_env(&block); end
86
+
87
+ # source://bump//lib/bump.rb#216
88
+ def commit(version, options); end
89
+
90
+ # source://bump//lib/bump.rb#211
91
+ def commit_message(version, options); end
92
+
93
+ # @raise [UnfoundVersionError]
94
+ #
95
+ # source://bump//lib/bump.rb#233
96
+ def current_info; end
97
+
98
+ # source://bump//lib/bump.rb#290
99
+ def extract_version_from_file(file); end
100
+
101
+ # source://bump//lib/bump.rb#296
102
+ def find_version_file(pattern); end
103
+
104
+ # source://bump//lib/bump.rb#222
105
+ def git_add(file); end
106
+
107
+ # source://bump//lib/bump.rb#160
108
+ def open_changelog(log); end
109
+
110
+ # source://bump//lib/bump.rb#113
111
+ def parse_cli_options_value(value); end
112
+
113
+ # source://bump//lib/bump.rb#226
114
+ def replace(file, old, new); end
115
+
116
+ # @return [Boolean]
117
+ #
118
+ # source://bump//lib/bump.rb#306
119
+ def under_version_control?(file); end
120
+
121
+ # source://bump//lib/bump.rb#283
122
+ def version_from_chef; end
123
+
124
+ # source://bump//lib/bump.rb#247
125
+ def version_from_gemspec; end
126
+
127
+ # source://bump//lib/bump.rb#275
128
+ def version_from_lib_rb; end
129
+
130
+ # source://bump//lib/bump.rb#269
131
+ def version_from_version; end
132
+
133
+ # source://bump//lib/bump.rb#260
134
+ def version_from_version_rb; end
135
+ end
136
+ end
137
+
138
+ # source://bump//lib/bump.rb#17
139
+ Bump::Bump::BUMPS = T.let(T.unsafe(nil), Array)
140
+
141
+ # source://bump//lib/bump.rb#19
142
+ Bump::Bump::OPTIONS = T.let(T.unsafe(nil), Array)
143
+
144
+ # source://bump//lib/bump.rb#18
145
+ Bump::Bump::PRERELEASE = T.let(T.unsafe(nil), Array)
146
+
147
+ # source://bump//lib/bump.rb#20
148
+ Bump::Bump::VERSION_REGEX = T.let(T.unsafe(nil), Regexp)
149
+
150
+ # source://bump//lib/bump.rb#4
151
+ class Bump::InvalidIncrementError < ::StandardError; end
152
+
153
+ # source://bump//lib/bump.rb#5
154
+ class Bump::InvalidOptionError < ::StandardError; end
155
+
156
+ # source://bump//lib/bump.rb#6
157
+ class Bump::InvalidVersionError < ::StandardError; end
158
+
159
+ # source://bump//lib/bump.rb#10
160
+ class Bump::RakeArgumentsDeprecatedError < ::StandardError; end
161
+
162
+ # source://bump//lib/bump.rb#8
163
+ class Bump::TooManyVersionFilesError < ::StandardError; end
164
+
165
+ # source://bump//lib/bump.rb#7
166
+ class Bump::UnfoundVersionError < ::StandardError; end
167
+
168
+ # source://bump//lib/bump.rb#9
169
+ class Bump::UnfoundVersionFileError < ::StandardError; end