ipt 1.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/test.yml +41 -0
  3. data/.gitignore +0 -1
  4. data/Gemfile.lock +318 -0
  5. data/README.md +1 -1
  6. data/bin/tapioca +29 -0
  7. data/ipt.gemspec +15 -8
  8. data/lib/pt.rb +8 -9
  9. data/lib/pt/action.rb +42 -24
  10. data/lib/pt/cli.rb +1 -1
  11. data/lib/pt/client.rb +2 -3
  12. data/lib/pt/configuration.rb +1 -1
  13. data/lib/pt/data_row.rb +1 -0
  14. data/lib/pt/data_table.rb +1 -2
  15. data/lib/pt/io.rb +16 -7
  16. data/lib/pt/version.rb +2 -1
  17. data/sorbet/config +3 -0
  18. data/sorbet/rbi/gems/activesupport.rbi +671 -0
  19. data/sorbet/rbi/gems/activesupport@6.1.3.2.rbi +63 -0
  20. data/sorbet/rbi/gems/addressable.rbi +147 -0
  21. data/sorbet/rbi/gems/addressable@2.7.0.rbi +8 -0
  22. data/sorbet/rbi/gems/anyway_config.rbi +197 -0
  23. data/sorbet/rbi/gems/anyway_config@2.1.0.rbi +8 -0
  24. data/sorbet/rbi/gems/aruba.rbi +917 -0
  25. data/sorbet/rbi/gems/aruba@0.14.14.rbi +1342 -0
  26. data/sorbet/rbi/gems/ast.rbi +49 -0
  27. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  28. data/sorbet/rbi/gems/axiom-types@0.1.1.rbi +8 -0
  29. data/sorbet/rbi/gems/builder@3.2.4.rbi +15 -0
  30. data/sorbet/rbi/gems/childprocess.rbi +107 -0
  31. data/sorbet/rbi/gems/childprocess@3.0.0.rbi +135 -0
  32. data/sorbet/rbi/gems/coderay.rbi +285 -0
  33. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  34. data/sorbet/rbi/gems/coercible@1.0.0.rbi +8 -0
  35. data/sorbet/rbi/gems/colorize.rbi +82 -0
  36. data/sorbet/rbi/gems/colorize@0.8.1.rbi +39 -0
  37. data/sorbet/rbi/gems/commander@4.6.0.rbi +8 -0
  38. data/sorbet/rbi/gems/concurrent-ruby.rbi +1590 -0
  39. data/sorbet/rbi/gems/concurrent-ruby@1.1.8.rbi +8 -0
  40. data/sorbet/rbi/gems/config.rbi +124 -0
  41. data/sorbet/rbi/gems/config@3.1.0.rbi +8 -0
  42. data/sorbet/rbi/gems/contracts.rbi +391 -0
  43. data/sorbet/rbi/gems/contracts@0.16.1.rbi +592 -0
  44. data/sorbet/rbi/gems/cucumber-core.rbi +628 -0
  45. data/sorbet/rbi/gems/cucumber-core@9.0.0.rbi +8 -0
  46. data/sorbet/rbi/gems/cucumber-create-meta.rbi +27 -0
  47. data/sorbet/rbi/gems/cucumber-create-meta@4.0.0.rbi +8 -0
  48. data/sorbet/rbi/gems/cucumber-cucumber-expressions.rbi +216 -0
  49. data/sorbet/rbi/gems/cucumber-cucumber-expressions@12.1.1.rbi +8 -0
  50. data/sorbet/rbi/gems/cucumber-gherkin.rbi +289 -0
  51. data/sorbet/rbi/gems/cucumber-gherkin@18.1.1.rbi +8 -0
  52. data/sorbet/rbi/gems/cucumber-html-formatter@13.0.0.rbi +8 -0
  53. data/sorbet/rbi/gems/cucumber-messages.rbi +872 -0
  54. data/sorbet/rbi/gems/cucumber-messages@15.0.0.rbi +8 -0
  55. data/sorbet/rbi/gems/cucumber-tag-expressions.rbi +53 -0
  56. data/sorbet/rbi/gems/cucumber-tag-expressions@3.0.1.rbi +8 -0
  57. data/sorbet/rbi/gems/cucumber-wire.rbi +161 -0
  58. data/sorbet/rbi/gems/cucumber-wire@5.0.0.rbi +8 -0
  59. data/sorbet/rbi/gems/cucumber.rbi +1876 -0
  60. data/sorbet/rbi/gems/cucumber@6.0.0.rbi +8 -0
  61. data/sorbet/rbi/gems/declarative.rbi +75 -0
  62. data/sorbet/rbi/gems/declarative@0.0.20.rbi +8 -0
  63. data/sorbet/rbi/gems/deep_merge.rbi +26 -0
  64. data/sorbet/rbi/gems/deep_merge@1.2.1.rbi +8 -0
  65. data/sorbet/rbi/gems/descendants_tracker@0.0.4.rbi +8 -0
  66. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
  67. data/sorbet/rbi/gems/dry-configurable@0.12.1.rbi +8 -0
  68. data/sorbet/rbi/gems/dry-container@0.7.2.rbi +8 -0
  69. data/sorbet/rbi/gems/dry-core@0.5.0.rbi +8 -0
  70. data/sorbet/rbi/gems/dry-equalizer@0.3.0.rbi +8 -0
  71. data/sorbet/rbi/gems/dry-inflector@0.2.0.rbi +8 -0
  72. data/sorbet/rbi/gems/dry-initializer@3.0.4.rbi +8 -0
  73. data/sorbet/rbi/gems/dry-logic@1.2.0.rbi +8 -0
  74. data/sorbet/rbi/gems/dry-schema@1.6.2.rbi +8 -0
  75. data/sorbet/rbi/gems/dry-types@1.5.1.rbi +8 -0
  76. data/sorbet/rbi/gems/dry-validation@1.6.0.rbi +8 -0
  77. data/sorbet/rbi/gems/equalizer.rbi +23 -0
  78. data/sorbet/rbi/gems/equalizer@0.0.11.rbi +8 -0
  79. data/sorbet/rbi/gems/equatable.rbi +26 -0
  80. data/sorbet/rbi/gems/equatable@0.5.0.rbi +8 -0
  81. data/sorbet/rbi/gems/excon.rbi +378 -0
  82. data/sorbet/rbi/gems/excon@0.81.0.rbi +8 -0
  83. data/sorbet/rbi/gems/faraday-excon.rbi +28 -0
  84. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +8 -0
  85. data/sorbet/rbi/gems/faraday-net_http.rbi +32 -0
  86. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +8 -0
  87. data/sorbet/rbi/gems/faraday-net_http_persistent.rbi +24 -0
  88. data/sorbet/rbi/gems/faraday-net_http_persistent@1.1.0.rbi +8 -0
  89. data/sorbet/rbi/gems/faraday.rbi +606 -0
  90. data/sorbet/rbi/gems/faraday@1.4.1.rbi +8 -0
  91. data/sorbet/rbi/gems/faraday_middleware.rbi +19 -0
  92. data/sorbet/rbi/gems/faraday_middleware@1.0.0.rbi +8 -0
  93. data/sorbet/rbi/gems/ffi.rbi +560 -0
  94. data/sorbet/rbi/gems/ffi@1.15.0.rbi +849 -0
  95. data/sorbet/rbi/gems/formatador.rbi +52 -0
  96. data/sorbet/rbi/gems/formatador@0.2.5.rbi +8 -0
  97. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +49 -0
  98. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +233 -0
  99. data/sorbet/rbi/gems/guard.rbi +397 -0
  100. data/sorbet/rbi/gems/guard@2.16.2.rbi +615 -0
  101. data/sorbet/rbi/gems/highline.rbi +567 -0
  102. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  103. data/sorbet/rbi/gems/i18n.rbi +133 -0
  104. data/sorbet/rbi/gems/i18n@1.8.10.rbi +8 -0
  105. data/sorbet/rbi/gems/ice_nine@0.11.2.rbi +8 -0
  106. data/sorbet/rbi/gems/listen.rbi +301 -0
  107. data/sorbet/rbi/gems/listen@3.5.1.rbi +476 -0
  108. data/sorbet/rbi/gems/lumberjack.rbi +299 -0
  109. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +431 -0
  110. data/sorbet/rbi/gems/method_source.rbi +64 -0
  111. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  112. data/sorbet/rbi/gems/middleware.rbi +32 -0
  113. data/sorbet/rbi/gems/middleware@0.1.0.rbi +8 -0
  114. data/sorbet/rbi/gems/mime-types-data.rbi +17 -0
  115. data/sorbet/rbi/gems/mime-types-data@3.2021.0225.rbi +8 -0
  116. data/sorbet/rbi/gems/mime-types.rbi +218 -0
  117. data/sorbet/rbi/gems/mime-types@3.3.1.rbi +8 -0
  118. data/sorbet/rbi/gems/mini_mime.rbi +52 -0
  119. data/sorbet/rbi/gems/mini_mime@1.1.0.rbi +8 -0
  120. data/sorbet/rbi/gems/minitest@5.14.4.rbi +8 -0
  121. data/sorbet/rbi/gems/multi_json.rbi +62 -0
  122. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +8 -0
  123. data/sorbet/rbi/gems/multi_test.rbi +28 -0
  124. data/sorbet/rbi/gems/multi_test@0.1.2.rbi +8 -0
  125. data/sorbet/rbi/gems/multipart-post.rbi +53 -0
  126. data/sorbet/rbi/gems/multipart-post@2.1.1.rbi +8 -0
  127. data/sorbet/rbi/gems/necromancer.rbi +135 -0
  128. data/sorbet/rbi/gems/necromancer@0.3.0.rbi +8 -0
  129. data/sorbet/rbi/gems/nenv.rbi +60 -0
  130. data/sorbet/rbi/gems/nenv@0.3.0.rbi +88 -0
  131. data/sorbet/rbi/gems/notiffany.rbi +215 -0
  132. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +323 -0
  133. data/sorbet/rbi/gems/paint.rbi +31 -0
  134. data/sorbet/rbi/gems/paint@2.2.1.rbi +8 -0
  135. data/sorbet/rbi/gems/parlour.rbi +840 -0
  136. data/sorbet/rbi/gems/parlour@6.0.0.rbi +1610 -0
  137. data/sorbet/rbi/gems/parser.rbi +1517 -0
  138. data/sorbet/rbi/gems/parser@3.0.1.1.rbi +1726 -0
  139. data/sorbet/rbi/gems/pastel.rbi +128 -0
  140. data/sorbet/rbi/gems/pastel@0.6.1.rbi +8 -0
  141. data/sorbet/rbi/gems/protobuf-cucumber.rbi +1520 -0
  142. data/sorbet/rbi/gems/protobuf-cucumber@3.10.8.rbi +8 -0
  143. data/sorbet/rbi/gems/pry.rbi +1898 -0
  144. data/sorbet/rbi/gems/pry@0.14.1.rbi +2486 -0
  145. data/sorbet/rbi/gems/public_suffix.rbi +104 -0
  146. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +8 -0
  147. data/sorbet/rbi/gems/rainbow.rbi +118 -0
  148. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +153 -0
  149. data/sorbet/rbi/gems/rake.rbi +647 -0
  150. data/sorbet/rbi/gems/rake@10.5.0.rbi +805 -0
  151. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
  152. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +8 -0
  153. data/sorbet/rbi/gems/representable.rbi +227 -0
  154. data/sorbet/rbi/gems/representable@3.1.1.rbi +8 -0
  155. data/sorbet/rbi/gems/rspec-core.rbi +1932 -0
  156. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +2455 -0
  157. data/sorbet/rbi/gems/rspec-expectations.rbi +1151 -0
  158. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +1652 -0
  159. data/sorbet/rbi/gems/rspec-mocks.rbi +1100 -0
  160. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +1462 -0
  161. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  162. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  163. data/sorbet/rbi/gems/rspec.rbi +15 -0
  164. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  165. data/sorbet/rbi/gems/ruby-next-core.rbi +76 -0
  166. data/sorbet/rbi/gems/ruby-next-core@0.12.0.rbi +7 -0
  167. data/sorbet/rbi/gems/ruby2_keywords@0.0.4.rbi +8 -0
  168. data/sorbet/rbi/gems/shellany.rbi +29 -0
  169. data/sorbet/rbi/gems/shellany@0.0.1.rbi +28 -0
  170. data/sorbet/rbi/gems/spoom.rbi +872 -0
  171. data/sorbet/rbi/gems/spoom@1.1.1.rbi +1193 -0
  172. data/sorbet/rbi/gems/sys-uname.rbi +66 -0
  173. data/sorbet/rbi/gems/sys-uname@1.2.2.rbi +8 -0
  174. data/sorbet/rbi/gems/tapioca.rbi +39 -0
  175. data/sorbet/rbi/gems/tapioca@0.4.23.rbi +1230 -0
  176. data/sorbet/rbi/gems/terminal-table.rbi +166 -0
  177. data/sorbet/rbi/gems/terminal-table@3.0.0.rbi +8 -0
  178. data/sorbet/rbi/gems/thor.rbi +537 -0
  179. data/sorbet/rbi/gems/thor@1.1.0.rbi +838 -0
  180. data/sorbet/rbi/gems/thread_safe@0.3.6.rbi +8 -0
  181. data/sorbet/rbi/gems/tracker_api.rbi +33 -0
  182. data/sorbet/rbi/gems/tracker_api@1.13.0.rbi +21 -0
  183. data/sorbet/rbi/gems/trailblazer-option.rbi +22 -0
  184. data/sorbet/rbi/gems/trailblazer-option@0.1.1.rbi +8 -0
  185. data/sorbet/rbi/gems/tty-color.rbi +41 -0
  186. data/sorbet/rbi/gems/tty-color@0.3.0.rbi +8 -0
  187. data/sorbet/rbi/gems/tty-command@0.1.0.rbi +8 -0
  188. data/sorbet/rbi/gems/tty-cursor@0.3.0.rbi +8 -0
  189. data/sorbet/rbi/gems/tty-pager.rbi +41 -0
  190. data/sorbet/rbi/gems/tty-pager@0.4.0.rbi +8 -0
  191. data/sorbet/rbi/gems/tty-platform.rbi +36 -0
  192. data/sorbet/rbi/gems/tty-platform@0.1.0.rbi +8 -0
  193. data/sorbet/rbi/gems/tty-progressbar.rbi +164 -0
  194. data/sorbet/rbi/gems/tty-progressbar@0.9.0.rbi +8 -0
  195. data/sorbet/rbi/gems/tty-prompt@0.6.0.rbi +8 -0
  196. data/sorbet/rbi/gems/tty-screen.rbi +40 -0
  197. data/sorbet/rbi/gems/tty-screen@0.5.1.rbi +8 -0
  198. data/sorbet/rbi/gems/tty-spinner.rbi +40 -0
  199. data/sorbet/rbi/gems/tty-spinner@0.2.0.rbi +8 -0
  200. data/sorbet/rbi/gems/tty-table.rbi +417 -0
  201. data/sorbet/rbi/gems/tty-table@0.5.0.rbi +8 -0
  202. data/sorbet/rbi/gems/tty-which.rbi +22 -0
  203. data/sorbet/rbi/gems/tty-which@0.1.0.rbi +8 -0
  204. data/sorbet/rbi/gems/tty.rbi +126 -0
  205. data/sorbet/rbi/gems/tty@0.5.0.rbi +8 -0
  206. data/sorbet/rbi/gems/tzinfo.rbi +588 -0
  207. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +8 -0
  208. data/sorbet/rbi/gems/uber.rbi +18 -0
  209. data/sorbet/rbi/gems/uber@0.1.0.rbi +8 -0
  210. data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
  211. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +8 -0
  212. data/sorbet/rbi/gems/unicode_utils.rbi +171 -0
  213. data/sorbet/rbi/gems/unicode_utils@1.4.0.rbi +8 -0
  214. data/sorbet/rbi/gems/vcr.rbi +582 -0
  215. data/sorbet/rbi/gems/vcr@6.0.0.rbi +782 -0
  216. data/sorbet/rbi/gems/verse.rbi +87 -0
  217. data/sorbet/rbi/gems/verse@0.4.0.rbi +8 -0
  218. data/sorbet/rbi/gems/virtus@1.0.5.rbi +8 -0
  219. data/sorbet/rbi/gems/wisper@1.6.1.rbi +8 -0
  220. data/sorbet/rbi/gems/zeitwerk.rbi +139 -0
  221. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +8 -0
  222. data/sorbet/rbi/hidden-definitions/errors.txt +8695 -0
  223. data/sorbet/rbi/hidden-definitions/hidden.rbi +18529 -0
  224. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi +37 -0
  225. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +1850 -0
  226. data/sorbet/rbi/sorbet-typed/lib/faraday/all/faraday.rbi +756 -0
  227. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +108 -0
  228. data/sorbet/rbi/sorbet-typed/lib/parlour/6.0.0/parlour.rbi +1903 -0
  229. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
  230. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
  231. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +1891 -0
  232. data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
  233. data/sorbet/rbi/todo.rbi +23 -0
  234. data/sorbet/tapioca/require.rb +4 -0
  235. metadata +341 -23
@@ -0,0 +1,8 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `concurrent-ruby` gem.
3
+ # Please instead update this file by running `bin/tapioca sync`.
4
+
5
+ # typed: true
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
@@ -0,0 +1,124 @@
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/config/all/config.rbi
9
+ #
10
+ # config-3.1.0
11
+
12
+ module Config
13
+ def self.load_and_set_settings(*files); end
14
+ def self.load_files(*files); end
15
+ def self.local_setting_files(config_root, env); end
16
+ def self.reload!; end
17
+ def self.setting_files(config_root, env); end
18
+ def self.setup; end
19
+ extend Anonymous_Config_Configuration_5
20
+ extend Config::Validation::Schema
21
+ end
22
+ module Config::Validation
23
+ end
24
+ class Config::Validation::Error < StandardError
25
+ def self.format(v_res); end
26
+ end
27
+ module Config::Validation::Validate
28
+ def validate!; end
29
+ def validate_using!(validator); end
30
+ end
31
+ class Config::Options < OpenStruct
32
+ def [](param); end
33
+ def []=(param, value); end
34
+ def __convert(h); end
35
+ def add_source!(source); end
36
+ def as_json(options = nil); end
37
+ def collect; end
38
+ def count; end
39
+ def descend_array(array); end
40
+ def each(*args, &block); end
41
+ def empty?; end
42
+ def exit!; end
43
+ def has_key?(key); end
44
+ def key?(key); end
45
+ def keys; end
46
+ def load!; end
47
+ def max; end
48
+ def merge!(hash); end
49
+ def method_missing(method_name, *args); end
50
+ def min; end
51
+ def prepend_source!(source); end
52
+ def reload!; end
53
+ def reload_from_files(*files); end
54
+ def respond_to_missing?(*args); end
55
+ def select; end
56
+ def test; end
57
+ def to_h; end
58
+ def to_hash; end
59
+ def to_json(*args); end
60
+ def zip; end
61
+ include Config::Validation::Validate
62
+ include Enumerable
63
+ end
64
+ class Config::Configuration < Module
65
+ def define_reader(name, default); end
66
+ def define_writer(name); end
67
+ def initialize(**attributes); end
68
+ end
69
+ module Config::Sources
70
+ end
71
+ class Config::Sources::YAMLSource
72
+ def evaluate_erb; end
73
+ def initialize(path, evaluate_erb: nil); end
74
+ def load; end
75
+ def path; end
76
+ def path=(arg0); end
77
+ end
78
+ class Config::Sources::HashSource
79
+ def hash; end
80
+ def hash=(arg0); end
81
+ def initialize(hash); end
82
+ def load; end
83
+ end
84
+ class Config::Sources::EnvSource
85
+ def __value(v); end
86
+ def converter; end
87
+ def initialize(env, prefix: nil, separator: nil, converter: nil, parse_values: nil); end
88
+ def load; end
89
+ def parse_values; end
90
+ def prefix; end
91
+ def separator; end
92
+ end
93
+ module Config::Validation::Schema
94
+ def schema(&block); end
95
+ def schema=(value); end
96
+ end
97
+ module Anonymous_Config_Configuration_5
98
+ def const_name; end
99
+ def const_name=(value); end
100
+ def env_converter; end
101
+ def env_converter=(value); end
102
+ def env_parse_values; end
103
+ def env_parse_values=(value); end
104
+ def env_prefix; end
105
+ def env_prefix=(value); end
106
+ def env_separator; end
107
+ def env_separator=(value); end
108
+ def evaluate_erb_in_yaml; end
109
+ def evaluate_erb_in_yaml=(value); end
110
+ def fail_on_missing; end
111
+ def fail_on_missing=(value); end
112
+ def knockout_prefix; end
113
+ def knockout_prefix=(value); end
114
+ def merge_hash_arrays; end
115
+ def merge_hash_arrays=(value); end
116
+ def merge_nil_values; end
117
+ def merge_nil_values=(value); end
118
+ def overwrite_arrays; end
119
+ def overwrite_arrays=(value); end
120
+ def use_env; end
121
+ def use_env=(value); end
122
+ def validation_contract; end
123
+ def validation_contract=(value); end
124
+ end
@@ -0,0 +1,8 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `config` gem.
3
+ # Please instead update this file by running `bin/tapioca sync`.
4
+
5
+ # typed: true
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
@@ -0,0 +1,391 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
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/contracts/all/contracts.rbi
9
+ #
10
+ # contracts-0.16.1
11
+
12
+ module Contracts
13
+ def self.extended(base); end
14
+ def self.included(base); end
15
+ include Contracts::Attrs
16
+ include Contracts::Builtin
17
+ end
18
+ module Contracts::Attrs
19
+ def attr_accessor_with_contract(*names, contract); end
20
+ def attr_reader_with_contract(*names, contract); end
21
+ def attr_writer_with_contract(*names, contract); end
22
+ end
23
+ module Contracts::Formatters
24
+ end
25
+ class Contracts::Formatters::Expected
26
+ def array_contract(array); end
27
+ def contract(contract = nil); end
28
+ def hash_contract(hash); end
29
+ def initialize(contract, full = nil); end
30
+ end
31
+ module Contracts::Formatters::InspectWrapper
32
+ def delim(value); end
33
+ def empty_to_s?; end
34
+ def empty_val?; end
35
+ def full?; end
36
+ def initialize(value, full); end
37
+ def inspect; end
38
+ def plain?; end
39
+ def self.create(value, full = nil); end
40
+ def strip_prefix(val); end
41
+ def to_s; end
42
+ def useful_to_s?; end
43
+ end
44
+ class Contracts::Formatters::ClassInspectWrapper
45
+ def custom_to_s?; end
46
+ def useful_inspect; end
47
+ include Contracts::Formatters::InspectWrapper
48
+ end
49
+ class Contracts::Formatters::ObjectInspectWrapper
50
+ def custom_to_s?; end
51
+ def useful_inspect; end
52
+ include Contracts::Formatters::InspectWrapper
53
+ end
54
+ module Contracts::Builtin
55
+ end
56
+ class Contracts::Builtin::Num
57
+ def self.valid?(val); end
58
+ end
59
+ class Contracts::Builtin::Pos
60
+ def self.valid?(val); end
61
+ end
62
+ class Contracts::Builtin::Neg
63
+ def self.valid?(val); end
64
+ end
65
+ class Contracts::Builtin::Int
66
+ def self.valid?(val); end
67
+ end
68
+ class Contracts::Builtin::Nat
69
+ def self.valid?(val); end
70
+ end
71
+ class Contracts::Builtin::NatPos
72
+ def self.valid?(val); end
73
+ end
74
+ class Contracts::Builtin::Any
75
+ def self.valid?(val); end
76
+ end
77
+ class Contracts::Builtin::None
78
+ def self.valid?(val); end
79
+ end
80
+ class Contracts::Builtin::CallableClass
81
+ def self.[](*vals); end
82
+ include Contracts::Formatters
83
+ end
84
+ class Contracts::Builtin::Or < Contracts::Builtin::CallableClass
85
+ def initialize(*vals); end
86
+ def to_s; end
87
+ def valid?(val); end
88
+ end
89
+ class Contracts::Builtin::Xor < Contracts::Builtin::CallableClass
90
+ def initialize(*vals); end
91
+ def to_s; end
92
+ def valid?(val); end
93
+ end
94
+ class Contracts::Builtin::And < Contracts::Builtin::CallableClass
95
+ def initialize(*vals); end
96
+ def to_s; end
97
+ def valid?(val); end
98
+ end
99
+ class Contracts::Builtin::RespondTo < Contracts::Builtin::CallableClass
100
+ def initialize(*meths); end
101
+ def to_s; end
102
+ def valid?(val); end
103
+ end
104
+ class Contracts::Builtin::Send < Contracts::Builtin::CallableClass
105
+ def initialize(*meths); end
106
+ def to_s; end
107
+ def valid?(val); end
108
+ end
109
+ class Contracts::Builtin::Exactly < Contracts::Builtin::CallableClass
110
+ def initialize(cls); end
111
+ def to_s; end
112
+ def valid?(val); end
113
+ end
114
+ class Contracts::Builtin::Enum < Contracts::Builtin::CallableClass
115
+ def initialize(*vals); end
116
+ def valid?(val); end
117
+ end
118
+ class Contracts::Builtin::Eq < Contracts::Builtin::CallableClass
119
+ def initialize(value); end
120
+ def to_s; end
121
+ def valid?(val); end
122
+ end
123
+ class Contracts::Builtin::Not < Contracts::Builtin::CallableClass
124
+ def initialize(*vals); end
125
+ def to_s; end
126
+ def valid?(val); end
127
+ end
128
+ class Contracts::Builtin::CollectionOf < Contracts::Builtin::CallableClass
129
+ def initialize(collection_class, contract); end
130
+ def to_s; end
131
+ def valid?(vals); end
132
+ end
133
+ class Contracts::Builtin::CollectionOf::Factory
134
+ def [](contract); end
135
+ def initialize(collection_class, &before_new); end
136
+ def new(contract); end
137
+ end
138
+ class Contracts::Builtin::Args < Contracts::Builtin::CallableClass
139
+ def contract; end
140
+ def initialize(contract); end
141
+ def to_s; end
142
+ end
143
+ class Contracts::Builtin::Bool
144
+ def self.valid?(val); end
145
+ end
146
+ class Contracts::Builtin::RangeOf < Contracts::Builtin::CallableClass
147
+ def initialize(contract); end
148
+ def to_s; end
149
+ def valid?(val); end
150
+ end
151
+ class Contracts::Builtin::HashOf < Contracts::Builtin::CallableClass
152
+ def initialize(key, value = nil); end
153
+ def to_s; end
154
+ def valid?(hash); end
155
+ def validate_hash(hash); end
156
+ end
157
+ class Contracts::Builtin::StrictHash < Contracts::Builtin::CallableClass
158
+ def contract_hash; end
159
+ def initialize(contract_hash); end
160
+ def valid?(arg); end
161
+ end
162
+ class Contracts::Builtin::KeywordArgs < Contracts::Builtin::CallableClass
163
+ def initialize(options); end
164
+ def inspect; end
165
+ def options; end
166
+ def to_s; end
167
+ def valid?(hash); end
168
+ end
169
+ class Contracts::Builtin::DescendantOf < Contracts::Builtin::CallableClass
170
+ def initialize(parent_class); end
171
+ def inspect; end
172
+ def parent_class; end
173
+ def to_s; end
174
+ def valid?(given_class); end
175
+ end
176
+ class Contracts::Builtin::Optional < Contracts::Builtin::CallableClass
177
+ def contract; end
178
+ def ensure_within_opt_hash; end
179
+ def formatted_contract; end
180
+ def initialize(contract); end
181
+ def inspect; end
182
+ def self._valid?(hash, key, contract); end
183
+ def to_s; end
184
+ def valid?(value); end
185
+ def within_opt_hash!; end
186
+ def within_opt_hash; end
187
+ end
188
+ class Contracts::Builtin::Maybe < Contracts::Builtin::Or
189
+ def include_proc?; end
190
+ def initialize(*vals); end
191
+ end
192
+ class Contracts::Builtin::Func < Contracts::Builtin::CallableClass
193
+ def contracts; end
194
+ def initialize(*contracts); end
195
+ end
196
+ module Contracts::MethodDecorators
197
+ def Contract(*args, &blk); end
198
+ def inherited(subclass); end
199
+ def method_added(name); end
200
+ def self.extended(klass); end
201
+ def singleton_method_added(name); end
202
+ end
203
+ class Contracts::Decorator
204
+ def initialize(klass, method); end
205
+ def self.decorators; end
206
+ def self.decorators=(arg0); end
207
+ def self.inherited(klass); end
208
+ end
209
+ class ContractBaseError < ArgumentError
210
+ def data; end
211
+ def initialize(message, data); end
212
+ def to_contract_error; end
213
+ end
214
+ class ContractError < ContractBaseError
215
+ end
216
+ class ParamContractError < ContractError
217
+ end
218
+ class ReturnContractError < ContractError
219
+ end
220
+ class PatternMatchingError < ContractBaseError
221
+ def to_contract_error; end
222
+ end
223
+ class InvariantError < StandardError
224
+ def to_contract_error; end
225
+ end
226
+ class Contracts::ContractsNotIncluded < TypeError
227
+ def initialize(message = nil); end
228
+ def message; end
229
+ def to_s; end
230
+ end
231
+ module Contracts::Invariants
232
+ def self.common(base); end
233
+ def self.extended(base); end
234
+ def self.included(base); end
235
+ def verify_invariants!(method); end
236
+ end
237
+ module Contracts::Invariants::InvariantExtension
238
+ def invariant(name, &condition); end
239
+ def invariants; end
240
+ end
241
+ class Contracts::Invariants::Invariant
242
+ def check_on(target, method); end
243
+ def expected; end
244
+ def initialize(klass, name, &condition); end
245
+ def self.failure_callback(data); end
246
+ def self.failure_msg(data); end
247
+ end
248
+ class Contracts::MethodReference
249
+ def alias_target(this); end
250
+ def aliased_name; end
251
+ def construct_unique_name; end
252
+ def initialize(name, method); end
253
+ def make_alias(this); end
254
+ def make_definition(this, &blk); end
255
+ def make_private(this); end
256
+ def make_protected(this); end
257
+ def method_position; end
258
+ def name; end
259
+ def private?(this); end
260
+ def protected?(this); end
261
+ def send_to(this, *args, &blk); end
262
+ end
263
+ class Contracts::SingletonMethodReference < Contracts::MethodReference
264
+ def alias_target(this); end
265
+ def private?(this); end
266
+ def protected?(this); end
267
+ end
268
+ module Contracts::Support
269
+ def self.contract_id(contract); end
270
+ def self.eigenclass?(target); end
271
+ def self.eigenclass_hierarchy_supported?; end
272
+ def self.eigenclass_of(target); end
273
+ def self.indent_string(string, amount); end
274
+ def self.method_name(method); end
275
+ def self.method_position(method); end
276
+ def self.module_eigenclass?(target); end
277
+ def self.unique_id; end
278
+ end
279
+ module Contracts::Engine
280
+ def self.applied?(*args, &block); end
281
+ def self.apply(*args, &block); end
282
+ def self.base_engine; end
283
+ def self.fetch_from(*args, &block); end
284
+ end
285
+ class Contracts::Engine::Base
286
+ def add_method_decorator(type, name, decorator); end
287
+ def all_decorators; end
288
+ def clear_decorators; end
289
+ def decorate(decorator_class, *args); end
290
+ def decorated_methods; end
291
+ def decorated_methods?; end
292
+ def decorated_methods_for(type, name); end
293
+ def decorators; end
294
+ def eigenclass; end
295
+ def eigenclass_engine; end
296
+ def initialize(klass); end
297
+ def klass; end
298
+ def nearest_decorated_ancestor; end
299
+ def pop_decorators; end
300
+ def self.applied?(klass); end
301
+ def self.apply(klass); end
302
+ def self.fetch_from(klass); end
303
+ def set_eigenclass_owner; end
304
+ def validate!; end
305
+ end
306
+ class Contracts::Engine::Target
307
+ def applied?; end
308
+ def apply(engine_class = nil); end
309
+ def apply_to_eigenclass; end
310
+ def eigenclass; end
311
+ def engine; end
312
+ def initialize(target); end
313
+ def meaningless_eigenclass?; end
314
+ def target; end
315
+ end
316
+ class Contracts::Engine::Eigenclass < Contracts::Engine::Base
317
+ def all_decorators; end
318
+ def owner?; end
319
+ def owner_class; end
320
+ def owner_class=(arg0); end
321
+ def self.lift(eigenclass, owner); end
322
+ def set_eigenclass_owner; end
323
+ def validate!; end
324
+ end
325
+ class Contracts::MethodHandler
326
+ def _method_type; end
327
+ def decorated_methods; end
328
+ def decorator; end
329
+ def decorator_args; end
330
+ def decorator_class; end
331
+ def decorators; end
332
+ def engine; end
333
+ def engine?; end
334
+ def handle; end
335
+ def ignore_decorators?; end
336
+ def initialize(method_name, is_class_method, target); end
337
+ def is_class_method; end
338
+ def mark_pattern_matching_decorators; end
339
+ def method_name; end
340
+ def method_reference; end
341
+ def method_type; end
342
+ def pattern_matching?; end
343
+ def raw_method; end
344
+ def redefine_method; end
345
+ def target; end
346
+ def validate_decorators!; end
347
+ def validate_pattern_matching!; end
348
+ end
349
+ module Contracts::Validators
350
+ def clean_memoized_validators; end
351
+ def make_validator!(contract); end
352
+ def make_validator(contract); end
353
+ def memoized_validators; end
354
+ def override_validator(name, &block); end
355
+ def reset_validators; end
356
+ def restore_validators; end
357
+ def validator_strategies; end
358
+ end
359
+ module Contracts::CallWith
360
+ def call_with(this, *args, &blk); end
361
+ def call_with_inner(returns, this, *args, &blk); end
362
+ end
363
+ module Contracts::Core
364
+ def self.common(base); end
365
+ def self.extended(base); end
366
+ def self.included(base); end
367
+ end
368
+ class Contract < Contracts::Decorator
369
+ def [](*args, &blk); end
370
+ def args_contracts; end
371
+ def call(*args, &blk); end
372
+ def failure_exception; end
373
+ def initialize(klass, method, *contracts); end
374
+ def klass; end
375
+ def maybe_append_block!(args, blk); end
376
+ def maybe_append_options!(args, blk); end
377
+ def method; end
378
+ def pattern_match!; end
379
+ def pattern_match?; end
380
+ def pretty_contract(c); end
381
+ def ret_contract; end
382
+ def self.failure_callback(data, use_pattern_matching = nil); end
383
+ def self.failure_msg(data); end
384
+ def self.fetch_failure_callback; end
385
+ def self.override_failure_callback(&blk); end
386
+ def self.restore_failure_callback; end
387
+ def self.valid?(arg, contract); end
388
+ def to_s; end
389
+ extend Contracts::Validators
390
+ include Contracts::CallWith
391
+ end