checkoff 0.222.0 → 0.225.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/checkoff.gemspec +10 -5
  3. data/lib/checkoff/attachments.rb +1 -0
  4. data/lib/checkoff/cli.rb +1 -1
  5. data/lib/checkoff/clients.rb +2 -1
  6. data/lib/checkoff/custom_fields.rb +2 -1
  7. data/lib/checkoff/events.rb +2 -1
  8. data/lib/checkoff/internal/asana_event_enrichment.rb +1 -0
  9. data/lib/checkoff/internal/asana_event_filter.rb +1 -0
  10. data/lib/checkoff/internal/config_loader.rb +2 -2
  11. data/lib/checkoff/internal/logging.rb +6 -5
  12. data/lib/checkoff/internal/project_hashes.rb +1 -0
  13. data/lib/checkoff/internal/project_selector_evaluator.rb +2 -1
  14. data/lib/checkoff/internal/project_timing.rb +1 -0
  15. data/lib/checkoff/internal/search_url/custom_field_param_converter.rb +1 -0
  16. data/lib/checkoff/internal/search_url/custom_field_variant.rb +1 -0
  17. data/lib/checkoff/internal/search_url/date_param_converter.rb +1 -0
  18. data/lib/checkoff/internal/search_url/parser.rb +1 -0
  19. data/lib/checkoff/internal/search_url/results_merger.rb +1 -0
  20. data/lib/checkoff/internal/search_url/simple_param_converter.rb +1 -0
  21. data/lib/checkoff/internal/search_url.rb +1 -0
  22. data/lib/checkoff/internal/section_selector_evaluator.rb +2 -1
  23. data/lib/checkoff/internal/selector_classes/common/function_evaluator.rb +1 -0
  24. data/lib/checkoff/internal/selector_classes/common.rb +1 -0
  25. data/lib/checkoff/internal/selector_classes/function_evaluator.rb +1 -0
  26. data/lib/checkoff/internal/selector_classes/project/function_evaluator.rb +1 -0
  27. data/lib/checkoff/internal/selector_classes/project.rb +1 -0
  28. data/lib/checkoff/internal/selector_classes/section/function_evaluator.rb +3 -1
  29. data/lib/checkoff/internal/selector_classes/section.rb +1 -0
  30. data/lib/checkoff/internal/selector_classes/task/function_evaluator.rb +1 -0
  31. data/lib/checkoff/internal/selector_classes/task.rb +1 -0
  32. data/lib/checkoff/internal/selector_evaluator.rb +5 -4
  33. data/lib/checkoff/internal/task_hashes.rb +1 -0
  34. data/lib/checkoff/internal/task_selector_evaluator.rb +2 -1
  35. data/lib/checkoff/internal/task_timing.rb +1 -0
  36. data/lib/checkoff/internal/thread_local.rb +1 -0
  37. data/lib/checkoff/monkeypatches/resource_marshalling.rb +1 -0
  38. data/lib/checkoff/my_tasks.rb +2 -1
  39. data/lib/checkoff/portfolios.rb +12 -9
  40. data/lib/checkoff/project_selectors.rb +1 -0
  41. data/lib/checkoff/projects.rb +3 -1
  42. data/lib/checkoff/resources.rb +1 -0
  43. data/lib/checkoff/section_selectors.rb +1 -0
  44. data/lib/checkoff/sections.rb +4 -4
  45. data/lib/checkoff/subtasks.rb +1 -0
  46. data/lib/checkoff/tags.rb +67 -17
  47. data/lib/checkoff/task_searches.rb +1 -0
  48. data/lib/checkoff/task_selectors.rb +1 -0
  49. data/lib/checkoff/tasks.rb +2 -2
  50. data/lib/checkoff/timelines.rb +1 -0
  51. data/lib/checkoff/timing.rb +1 -0
  52. data/lib/checkoff/version.rb +2 -1
  53. data/lib/checkoff/workspaces.rb +2 -1
  54. data/lib/checkoff.rb +1 -0
  55. data/rbi/checkoff.rbi +4529 -0
  56. data/sig/checkoff.rbs +3749 -0
  57. metadata +4 -205
  58. data/.circleci/config.yml +0 -291
  59. data/.envrc +0 -9
  60. data/.git-hooks/pre_commit/circle_ci.rb +0 -25
  61. data/.git-hooks/pre_commit/punchlist.rb +0 -51
  62. data/.git-hooks/pre_commit/solargraph_typecheck.rb +0 -76
  63. data/.gitattributes +0 -6
  64. data/.gitignore +0 -61
  65. data/.markdownlint_style.rb +0 -3
  66. data/.mdlrc +0 -1
  67. data/.overcommit.yml +0 -114
  68. data/.rubocop.yml +0 -143
  69. data/.rubocop_todo.yml +0 -90
  70. data/.solargraph.yml +0 -35
  71. data/.yamllint.yml +0 -8
  72. data/CODE_OF_CONDUCT.md +0 -133
  73. data/CONTRIBUTING.rst +0 -75
  74. data/DEVELOPMENT.md +0 -69
  75. data/GLOSSARY.md +0 -16
  76. data/Gemfile +0 -66
  77. data/Gemfile.lock +0 -336
  78. data/LICENSE +0 -21
  79. data/Makefile +0 -121
  80. data/bin/brakeman +0 -27
  81. data/bin/bump +0 -29
  82. data/bin/checkoff +0 -29
  83. data/bin/console +0 -15
  84. data/bin/overcommit +0 -29
  85. data/bin/overcommit_branch +0 -114
  86. data/bin/rake +0 -29
  87. data/bin/rubocop +0 -27
  88. data/bin/setup +0 -8
  89. data/bin/solargraph +0 -27
  90. data/bin/sord +0 -27
  91. data/bin/spoom +0 -27
  92. data/bin/srb +0 -27
  93. data/bin/srb-rbi +0 -27
  94. data/bin/tapioca +0 -27
  95. data/bin/yard +0 -27
  96. data/config/annotations_asana.rb +0 -254
  97. data/config/annotations_misc.rb +0 -68
  98. data/config/env.1p +0 -2
  99. data/docs/.gitignore +0 -3
  100. data/docs/cookiecutter_input.json +0 -17
  101. data/docs/example_project.png +0 -0
  102. data/fix.sh +0 -534
  103. data/metrics/bigfiles_high_water_mark +0 -1
  104. data/metrics/brakeman_high_water_mark +0 -1
  105. data/metrics/bundle-audit_high_water_mark +0 -1
  106. data/metrics/cane_high_water_mark +0 -1
  107. data/metrics/eslint_high_water_mark +0 -1
  108. data/metrics/flake8_high_water_mark +0 -1
  109. data/metrics/flay_high_water_mark +0 -1
  110. data/metrics/flog_high_water_mark +0 -1
  111. data/metrics/jscs_high_water_mark +0 -1
  112. data/metrics/mdl_high_water_mark +0 -1
  113. data/metrics/pep8_high_water_mark +0 -1
  114. data/metrics/punchlist_high_water_mark +0 -1
  115. data/metrics/pycodestyle_high_water_mark +0 -1
  116. data/metrics/rails_best_practices_high_water_mark +0 -1
  117. data/metrics/rubocop_high_water_mark +0 -1
  118. data/metrics/scalastyle_high_water_mark +0 -1
  119. data/metrics/shellcheck_high_water_mark +0 -1
  120. data/package.json +0 -9
  121. data/rakelib/citest.rake +0 -4
  122. data/rakelib/clear_metrics.rake +0 -9
  123. data/rakelib/console.rake +0 -15
  124. data/rakelib/default.rake +0 -4
  125. data/rakelib/doc.rake +0 -6
  126. data/rakelib/gem_tasks.rake +0 -3
  127. data/rakelib/localtest.rake +0 -4
  128. data/rakelib/overcommit.rake +0 -6
  129. data/rakelib/quality.rake +0 -4
  130. data/rakelib/repl.rake +0 -4
  131. data/rakelib/test.rake +0 -10
  132. data/rakelib/trigger_next_builds.rake +0 -7
  133. data/rakelib/undercover.rake +0 -8
  134. data/requirements_dev.txt +0 -2
  135. data/sorbet/config +0 -4
  136. data/sorbet/rbi/annotations/.gitattributes +0 -1
  137. data/sorbet/rbi/annotations/activesupport.rbi +0 -453
  138. data/sorbet/rbi/annotations/faraday.rbi +0 -17
  139. data/sorbet/rbi/annotations/minitest.rbi +0 -119
  140. data/sorbet/rbi/annotations/mocha.rbi +0 -34
  141. data/sorbet/rbi/annotations/rainbow.rbi +0 -269
  142. data/sorbet/rbi/annotations/webmock.rbi +0 -9
  143. data/sorbet/rbi/dsl/.gitattributes +0 -1
  144. data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -23
  145. data/sorbet/rbi/gems/.gitattributes +0 -1
  146. data/sorbet/rbi/gems/activesupport@7.1.5.rbi +0 -18746
  147. data/sorbet/rbi/gems/addressable@2.8.6.rbi +0 -1994
  148. data/sorbet/rbi/gems/ansi@1.5.0.rbi +0 -688
  149. data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +0 -6142
  150. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -585
  151. data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -523
  152. data/sorbet/rbi/gems/base64@0.2.0.rbi +0 -509
  153. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +0 -618
  154. data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +0 -78
  155. data/sorbet/rbi/gems/brakeman@6.2.2.rbi +0 -222
  156. data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -505
  157. data/sorbet/rbi/gems/bump@0.10.0.rbi +0 -169
  158. data/sorbet/rbi/gems/cache@0.4.1.rbi +0 -211
  159. data/sorbet/rbi/gems/cache_method@0.2.7.rbi +0 -293
  160. data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +0 -9
  161. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +0 -383
  162. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -3427
  163. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -11591
  164. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +0 -9
  165. data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -145
  166. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +0 -969
  167. data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -377
  168. data/sorbet/rbi/gems/drb@2.2.1.rbi +0 -1347
  169. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -9
  170. data/sorbet/rbi/gems/erubi@1.13.0.rbi +0 -152
  171. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -222
  172. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -126
  173. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -136
  174. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -145
  175. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -259
  176. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -142
  177. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -118
  178. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -125
  179. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -133
  180. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -198
  181. data/sorbet/rbi/gems/faraday@1.10.3.rbi +0 -2729
  182. data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +0 -29
  183. data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +0 -1004
  184. data/sorbet/rbi/gems/gli@2.22.0.rbi +0 -9
  185. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -351
  186. data/sorbet/rbi/gems/i18n@1.14.6.rbi +0 -2359
  187. data/sorbet/rbi/gems/imagen@0.1.8.rbi +0 -340
  188. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +0 -899
  189. data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +0 -22
  190. data/sorbet/rbi/gems/json@2.7.1.rbi +0 -1562
  191. data/sorbet/rbi/gems/jwt@2.7.1.rbi +0 -1405
  192. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -128
  193. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3272
  194. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14238
  195. data/sorbet/rbi/gems/logger@1.6.2.rbi +0 -923
  196. data/sorbet/rbi/gems/mdl@0.13.0.rbi +0 -445
  197. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -273
  198. data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +0 -127
  199. data/sorbet/rbi/gems/mime-types@3.5.1.rbi +0 -1252
  200. data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +0 -136
  201. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +0 -1014
  202. data/sorbet/rbi/gems/minitest@5.21.1.rbi +0 -1539
  203. data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +0 -314
  204. data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +0 -581
  205. data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +0 -629
  206. data/sorbet/rbi/gems/mocha@2.1.0.rbi +0 -12
  207. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +0 -268
  208. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +0 -102
  209. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +0 -234
  210. data/sorbet/rbi/gems/mutex_m@0.3.0.rbi +0 -97
  211. data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
  212. data/sorbet/rbi/gems/nokogiri@1.17.0.rbi +0 -8201
  213. data/sorbet/rbi/gems/oauth2@1.4.11.rbi +0 -833
  214. data/sorbet/rbi/gems/overcommit@0.64.1.rbi +0 -2400
  215. data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -274
  216. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +0 -7253
  217. data/sorbet/rbi/gems/prism@1.2.0.rbi +0 -39085
  218. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -10070
  219. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +0 -936
  220. data/sorbet/rbi/gems/punchlist@1.3.2.rbi +0 -173
  221. data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -162
  222. data/sorbet/rbi/gems/rack@3.1.8.rbi +0 -4896
  223. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
  224. data/sorbet/rbi/gems/rake@13.1.0.rbi +0 -3022
  225. data/sorbet/rbi/gems/rbi@0.2.1.rbi +0 -4535
  226. data/sorbet/rbi/gems/rbs@2.8.4.rbi +0 -5613
  227. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +0 -3750
  228. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -390
  229. data/sorbet/rbi/gems/rexml@3.3.9.rbi +0 -4964
  230. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +0 -7061
  231. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +0 -2577
  232. data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +0 -3262
  233. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -329
  234. data/sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi +0 -7546
  235. data/sorbet/rbi/gems/rubocop@1.59.0.rbi +0 -57238
  236. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
  237. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -9
  238. data/sorbet/rbi/gems/rugged@1.6.3.rbi +0 -1577
  239. data/sorbet/rbi/gems/securerandom@0.4.0.rbi +0 -75
  240. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -217
  241. data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +0 -256
  242. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +0 -2149
  243. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +0 -9
  244. data/sorbet/rbi/gems/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi +0 -320
  245. data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +0 -9396
  246. data/sorbet/rbi/gems/source_finder@3.2.1.rbi +0 -317
  247. data/sorbet/rbi/gems/spoom@1.5.0.rbi +0 -4932
  248. data/sorbet/rbi/gems/tapioca@0.16.5.rbi +0 -3617
  249. data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
  250. data/sorbet/rbi/gems/tilt@2.4.0.rbi +0 -933
  251. data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +0 -9
  252. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
  253. data/sorbet/rbi/gems/undercover@0.5.0.rbi +0 -433
  254. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -66
  255. data/sorbet/rbi/gems/webmock@3.19.1.rbi +0 -1769
  256. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
  257. data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18406
  258. data/sorbet/rbi/todo.rbi +0 -11
  259. data/sorbet/tapioca/config.yml +0 -13
  260. data/sorbet/tapioca/require.rb +0 -4
@@ -1,505 +0,0 @@
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
@@ -1,169 +0,0 @@
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