stripe 10.9.0.pre.beta.1 → 10.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -275
  3. data/Gemfile +3 -0
  4. data/Makefile +7 -0
  5. data/OPENAPI_VERSION +1 -1
  6. data/README.md +0 -11
  7. data/VERSION +1 -1
  8. data/bin/tapioca +27 -0
  9. data/lib/stripe/api_operations/request.rb +1 -2
  10. data/lib/stripe/api_resource.rb +10 -1
  11. data/lib/stripe/api_resource_test_helpers.rb +6 -2
  12. data/lib/stripe/api_version.rb +0 -1
  13. data/lib/stripe/list_object.rb +3 -0
  14. data/lib/stripe/object_types.rb +120 -141
  15. data/lib/stripe/resources/account.rb +6 -4
  16. data/lib/stripe/resources/account_link.rb +3 -0
  17. data/lib/stripe/resources/account_session.rb +3 -0
  18. data/lib/stripe/resources/apple_pay_domain.rb +3 -0
  19. data/lib/stripe/resources/application_fee.rb +3 -0
  20. data/lib/stripe/resources/application_fee_refund.rb +3 -0
  21. data/lib/stripe/resources/apps/secret.rb +3 -0
  22. data/lib/stripe/resources/balance.rb +3 -0
  23. data/lib/stripe/resources/balance_transaction.rb +3 -0
  24. data/lib/stripe/resources/bank_account.rb +3 -0
  25. data/lib/stripe/resources/billing_portal/configuration.rb +3 -0
  26. data/lib/stripe/resources/billing_portal/session.rb +3 -0
  27. data/lib/stripe/resources/capability.rb +3 -0
  28. data/lib/stripe/resources/card.rb +3 -0
  29. data/lib/stripe/resources/cash_balance.rb +3 -0
  30. data/lib/stripe/resources/charge.rb +3 -0
  31. data/lib/stripe/resources/checkout/session.rb +3 -0
  32. data/lib/stripe/resources/climate/order.rb +3 -0
  33. data/lib/stripe/resources/climate/product.rb +3 -0
  34. data/lib/stripe/resources/climate/supplier.rb +3 -0
  35. data/lib/stripe/resources/country_spec.rb +3 -0
  36. data/lib/stripe/resources/coupon.rb +3 -0
  37. data/lib/stripe/resources/credit_note.rb +3 -0
  38. data/lib/stripe/resources/credit_note_line_item.rb +3 -0
  39. data/lib/stripe/resources/customer.rb +7 -13
  40. data/lib/stripe/resources/customer_balance_transaction.rb +3 -0
  41. data/lib/stripe/resources/customer_cash_balance_transaction.rb +3 -0
  42. data/lib/stripe/resources/customer_session.rb +3 -0
  43. data/lib/stripe/resources/discount.rb +3 -0
  44. data/lib/stripe/resources/dispute.rb +3 -0
  45. data/lib/stripe/resources/ephemeral_key.rb +3 -0
  46. data/lib/stripe/resources/event.rb +3 -0
  47. data/lib/stripe/resources/exchange_rate.rb +3 -0
  48. data/lib/stripe/resources/file.rb +6 -0
  49. data/lib/stripe/resources/file_link.rb +3 -0
  50. data/lib/stripe/resources/financial_connections/account.rb +3 -3
  51. data/lib/stripe/resources/financial_connections/account_owner.rb +3 -0
  52. data/lib/stripe/resources/financial_connections/account_ownership.rb +3 -0
  53. data/lib/stripe/resources/financial_connections/session.rb +3 -0
  54. data/lib/stripe/resources/financial_connections/transaction.rb +3 -0
  55. data/lib/stripe/resources/funding_instructions.rb +3 -0
  56. data/lib/stripe/resources/identity/verification_report.rb +3 -0
  57. data/lib/stripe/resources/identity/verification_session.rb +3 -0
  58. data/lib/stripe/resources/invoice.rb +2 -52
  59. data/lib/stripe/resources/invoice_item.rb +3 -0
  60. data/lib/stripe/resources/invoice_line_item.rb +3 -0
  61. data/lib/stripe/resources/issuing/authorization.rb +6 -0
  62. data/lib/stripe/resources/issuing/card.rb +6 -0
  63. data/lib/stripe/resources/issuing/cardholder.rb +3 -0
  64. data/lib/stripe/resources/issuing/dispute.rb +3 -0
  65. data/lib/stripe/resources/issuing/token.rb +3 -0
  66. data/lib/stripe/resources/issuing/transaction.rb +6 -0
  67. data/lib/stripe/resources/line_item.rb +3 -0
  68. data/lib/stripe/resources/login_link.rb +3 -0
  69. data/lib/stripe/resources/mandate.rb +3 -0
  70. data/lib/stripe/resources/payment_intent.rb +5 -4
  71. data/lib/stripe/resources/payment_link.rb +3 -0
  72. data/lib/stripe/resources/payment_method.rb +3 -0
  73. data/lib/stripe/resources/payment_method_configuration.rb +3 -0
  74. data/lib/stripe/resources/payment_method_domain.rb +3 -0
  75. data/lib/stripe/resources/payout.rb +3 -0
  76. data/lib/stripe/resources/person.rb +3 -0
  77. data/lib/stripe/resources/plan.rb +3 -0
  78. data/lib/stripe/resources/price.rb +3 -0
  79. data/lib/stripe/resources/product.rb +3 -0
  80. data/lib/stripe/resources/promotion_code.rb +3 -0
  81. data/lib/stripe/resources/quote.rb +3 -104
  82. data/lib/stripe/resources/radar/early_fraud_warning.rb +3 -0
  83. data/lib/stripe/resources/radar/value_list.rb +3 -0
  84. data/lib/stripe/resources/radar/value_list_item.rb +3 -0
  85. data/lib/stripe/resources/refund.rb +6 -0
  86. data/lib/stripe/resources/reporting/report_run.rb +3 -0
  87. data/lib/stripe/resources/reporting/report_type.rb +3 -0
  88. data/lib/stripe/resources/reversal.rb +3 -0
  89. data/lib/stripe/resources/review.rb +3 -0
  90. data/lib/stripe/resources/setup_attempt.rb +3 -0
  91. data/lib/stripe/resources/setup_intent.rb +3 -0
  92. data/lib/stripe/resources/shipping_rate.rb +3 -0
  93. data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -0
  94. data/lib/stripe/resources/source.rb +3 -0
  95. data/lib/stripe/resources/source_transaction.rb +3 -0
  96. data/lib/stripe/resources/subscription.rb +3 -0
  97. data/lib/stripe/resources/subscription_item.rb +3 -0
  98. data/lib/stripe/resources/subscription_schedule.rb +2 -19
  99. data/lib/stripe/resources/tax/calculation.rb +3 -0
  100. data/lib/stripe/resources/tax/calculation_line_item.rb +3 -0
  101. data/lib/stripe/resources/tax/registration.rb +3 -0
  102. data/lib/stripe/resources/tax/settings.rb +3 -0
  103. data/lib/stripe/resources/tax/transaction.rb +3 -0
  104. data/lib/stripe/resources/tax/transaction_line_item.rb +3 -0
  105. data/lib/stripe/resources/tax_code.rb +3 -0
  106. data/lib/stripe/resources/tax_id.rb +5 -4
  107. data/lib/stripe/resources/tax_rate.rb +3 -0
  108. data/lib/stripe/resources/terminal/configuration.rb +3 -0
  109. data/lib/stripe/resources/terminal/connection_token.rb +3 -0
  110. data/lib/stripe/resources/terminal/location.rb +3 -0
  111. data/lib/stripe/resources/terminal/reader.rb +6 -60
  112. data/lib/stripe/resources/test_helpers/test_clock.rb +3 -0
  113. data/lib/stripe/resources/token.rb +3 -0
  114. data/lib/stripe/resources/topup.rb +3 -0
  115. data/lib/stripe/resources/transfer.rb +3 -0
  116. data/lib/stripe/resources/treasury/credit_reversal.rb +3 -0
  117. data/lib/stripe/resources/treasury/debit_reversal.rb +3 -0
  118. data/lib/stripe/resources/treasury/financial_account.rb +3 -0
  119. data/lib/stripe/resources/treasury/financial_account_features.rb +3 -0
  120. data/lib/stripe/resources/treasury/inbound_transfer.rb +6 -0
  121. data/lib/stripe/resources/treasury/outbound_payment.rb +6 -0
  122. data/lib/stripe/resources/treasury/outbound_transfer.rb +6 -0
  123. data/lib/stripe/resources/treasury/received_credit.rb +6 -0
  124. data/lib/stripe/resources/treasury/received_debit.rb +6 -0
  125. data/lib/stripe/resources/treasury/transaction.rb +3 -0
  126. data/lib/stripe/resources/treasury/transaction_entry.rb +3 -0
  127. data/lib/stripe/resources/usage_record.rb +3 -0
  128. data/lib/stripe/resources/usage_record_summary.rb +3 -0
  129. data/lib/stripe/resources/webhook_endpoint.rb +3 -0
  130. data/lib/stripe/resources.rb +0 -22
  131. data/lib/stripe/search_result_object.rb +3 -0
  132. data/lib/stripe/singleton_api_resource.rb +1 -1
  133. data/lib/stripe/stripe_client.rb +28 -62
  134. data/lib/stripe/stripe_configuration.rb +1 -2
  135. data/lib/stripe/util.rb +1 -8
  136. data/lib/stripe/version.rb +1 -1
  137. data/lib/stripe.rb +0 -46
  138. data/sorbet/config +4 -0
  139. data/sorbet/rbi/annotations/.gitattributes +1 -0
  140. data/sorbet/rbi/annotations/coveralls_reborn.rbi +3 -0
  141. data/sorbet/rbi/gems/.gitattributes +1 -0
  142. data/sorbet/rbi/gems/addressable@2.8.6.rbi +1993 -0
  143. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  144. data/sorbet/rbi/gems/byebug@11.1.3.rbi +3606 -0
  145. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3437 -0
  146. data/sorbet/rbi/gems/coveralls_reborn@0.25.0.rbi +8 -0
  147. data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
  148. data/sorbet/rbi/gems/docile@1.4.0.rbi +8 -0
  149. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  150. data/sorbet/rbi/gems/hashdiff@1.1.0.rbi +352 -0
  151. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +19 -0
  152. data/sorbet/rbi/gems/json@2.7.1.rbi +1561 -0
  153. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  154. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  155. data/sorbet/rbi/gems/mocha@1.16.1.rbi +11 -0
  156. data/sorbet/rbi/gems/netrc@0.11.0.rbi +161 -0
  157. data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
  158. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +9454 -0
  159. data/sorbet/rbi/gems/power_assert@2.0.3.rbi +414 -0
  160. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  161. data/sorbet/rbi/gems/prism@0.19.0.rbi +29883 -0
  162. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1150 -0
  163. data/sorbet/rbi/gems/pry@0.14.2.rbi +10085 -0
  164. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +931 -0
  165. data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
  166. data/sorbet/rbi/gems/rack@3.0.8.rbi +5193 -0
  167. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  168. data/sorbet/rbi/gems/rake@13.1.0.rbi +2884 -0
  169. data/sorbet/rbi/gems/rbi@0.1.6.rbi +2922 -0
  170. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3766 -0
  171. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4887 -0
  172. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7004 -0
  173. data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56919 -0
  174. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  175. data/sorbet/rbi/gems/shoulda-context@2.0.0.rbi +555 -0
  176. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +8 -0
  177. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +8 -0
  178. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  179. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  180. data/sorbet/rbi/gems/sync@0.5.0.rbi +8 -0
  181. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
  182. data/sorbet/rbi/gems/tapioca@0.11.17.rbi +3503 -0
  183. data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +8 -0
  184. data/sorbet/rbi/gems/test-unit@3.6.1.rbi +4403 -0
  185. data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
  186. data/sorbet/rbi/gems/tins@1.32.1.rbi +8 -0
  187. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
  188. data/sorbet/rbi/gems/webmock@3.19.1.rbi +1740 -0
  189. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  190. data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
  191. data/sorbet/tapioca/config.yml +13 -0
  192. data/sorbet/tapioca/require.rb +4 -0
  193. metadata +61 -27
  194. data/lib/stripe/request_signing_authenticator.rb +0 -79
  195. data/lib/stripe/resources/account_notice.rb +0 -29
  196. data/lib/stripe/resources/capital/financing_offer.rb +0 -46
  197. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  198. data/lib/stripe/resources/capital/financing_transaction.rb +0 -24
  199. data/lib/stripe/resources/confirmation_token.rb +0 -13
  200. data/lib/stripe/resources/customer_entitlement.rb +0 -9
  201. data/lib/stripe/resources/customer_entitlement_summary.rb +0 -9
  202. data/lib/stripe/resources/entitlements/event.rb +0 -23
  203. data/lib/stripe/resources/entitlements/feature.rb +0 -35
  204. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -11
  205. data/lib/stripe/resources/gift_cards/card.rb +0 -56
  206. data/lib/stripe/resources/gift_cards/transaction.rb +0 -90
  207. data/lib/stripe/resources/invoice_payment.rb +0 -9
  208. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -85
  209. data/lib/stripe/resources/issuing/personalization_design.rb +0 -113
  210. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -23
  211. data/lib/stripe/resources/margin.rb +0 -34
  212. data/lib/stripe/resources/order.rb +0 -117
  213. data/lib/stripe/resources/quote_phase.rb +0 -36
  214. data/lib/stripe/resources/quote_preview_invoice.rb +0 -40
  215. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -8
  216. data/lib/stripe/resources/tax/form.rb +0 -46
@@ -0,0 +1,272 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `method_source` gem.
5
+ # Please instead update this file by running `bin/tapioca gem method_source`.
6
+
7
+ # source://method_source//lib/method_source.rb#127
8
+ class Method
9
+ include ::MethodSource::SourceLocation::MethodExtensions
10
+ include ::MethodSource::MethodExtensions
11
+ end
12
+
13
+ # source://method_source//lib/method_source/version.rb#1
14
+ module MethodSource
15
+ extend ::MethodSource::CodeHelpers
16
+
17
+ class << self
18
+ # Helper method responsible for opening source file and buffering up
19
+ # the comments for a specified method. Defined here to avoid polluting
20
+ # `Method` class.
21
+ #
22
+ # @param source_location [Array] The array returned by Method#source_location
23
+ # @param method_name [String]
24
+ # @raise [SourceNotFoundError]
25
+ # @return [String] The comments up to the point of the method.
26
+ #
27
+ # source://method_source//lib/method_source.rb#38
28
+ def comment_helper(source_location, name = T.unsafe(nil)); end
29
+
30
+ # @deprecated — use MethodSource::CodeHelpers#expression_at
31
+ #
32
+ # source://method_source//lib/method_source.rb#66
33
+ def extract_code(source_location); end
34
+
35
+ # Load a memoized copy of the lines in a file.
36
+ #
37
+ # @param file_name [String]
38
+ # @param method_name [String]
39
+ # @raise [SourceNotFoundError]
40
+ # @return [Array<String>] the contents of the file
41
+ #
42
+ # source://method_source//lib/method_source.rb#51
43
+ def lines_for(file_name, name = T.unsafe(nil)); end
44
+
45
+ # Helper method responsible for extracting method body.
46
+ # Defined here to avoid polluting `Method` class.
47
+ #
48
+ # @param source_location [Array] The array returned by Method#source_location
49
+ # @param method_name [String]
50
+ # @return [String] The method body
51
+ #
52
+ # source://method_source//lib/method_source.rb#23
53
+ def source_helper(source_location, name = T.unsafe(nil)); end
54
+
55
+ # @deprecated — use MethodSource::CodeHelpers#complete_expression?
56
+ # @return [Boolean]
57
+ #
58
+ # source://method_source//lib/method_source.rb#59
59
+ def valid_expression?(str); end
60
+ end
61
+ end
62
+
63
+ # source://method_source//lib/method_source/code_helpers.rb#3
64
+ module MethodSource::CodeHelpers
65
+ # Retrieve the comment describing the expression on the given line of the given file.
66
+ #
67
+ # This is useful to get module or method documentation.
68
+ #
69
+ # @param file [Array<String>, File, String] The file to parse, either as a File or as
70
+ # a String or an Array of lines.
71
+ # @param line_number [Integer] The line number at which to look.
72
+ # NOTE: The first line in a file is line 1!
73
+ # @return [String] The comment
74
+ #
75
+ # source://method_source//lib/method_source/code_helpers.rb#52
76
+ def comment_describing(file, line_number); end
77
+
78
+ # Determine if a string of code is a complete Ruby expression.
79
+ #
80
+ # @example
81
+ # complete_expression?("class Hello") #=> false
82
+ # complete_expression?("class Hello; end") #=> true
83
+ # complete_expression?("class 123") #=> SyntaxError: unexpected tINTEGER
84
+ # @param code [String] The code to validate.
85
+ # @raise [SyntaxError] Any SyntaxError that does not represent incompleteness.
86
+ # @return [Boolean] Whether or not the code is a complete Ruby expression.
87
+ #
88
+ # source://method_source//lib/method_source/code_helpers.rb#66
89
+ def complete_expression?(str); end
90
+
91
+ # Retrieve the first expression starting on the given line of the given file.
92
+ #
93
+ # This is useful to get module or method source code.
94
+ #
95
+ # line 1!
96
+ #
97
+ # @option options
98
+ # @option options
99
+ # @param file [Array<String>, File, String] The file to parse, either as a File or as
100
+ # @param line_number [Integer] The line number at which to look.
101
+ # NOTE: The first line in a file is
102
+ # @param options [Hash] The optional configuration parameters.
103
+ # @raise [SyntaxError] If the first complete expression can't be identified
104
+ # @return [String] The first complete expression
105
+ #
106
+ # source://method_source//lib/method_source/code_helpers.rb#20
107
+ def expression_at(file, line_number, options = T.unsafe(nil)); end
108
+
109
+ private
110
+
111
+ # Get the first expression from the input.
112
+ #
113
+ # @param lines [Array<String>]
114
+ # @param consume [Integer] A number of lines to automatically
115
+ # consume (add to the expression buffer) without checking for validity.
116
+ # @raise [SyntaxError]
117
+ # @return [String] a valid ruby expression
118
+ # @yield a clean-up function to run before checking for complete_expression
119
+ #
120
+ # source://method_source//lib/method_source/code_helpers.rb#92
121
+ def extract_first_expression(lines, consume = T.unsafe(nil), &block); end
122
+
123
+ # Get the last comment from the input.
124
+ #
125
+ # @param lines [Array<String>]
126
+ # @return [String]
127
+ #
128
+ # source://method_source//lib/method_source/code_helpers.rb#106
129
+ def extract_last_comment(lines); end
130
+ end
131
+
132
+ # An exception matcher that matches only subsets of SyntaxErrors that can be
133
+ # fixed by adding more input to the buffer.
134
+ #
135
+ # source://method_source//lib/method_source/code_helpers.rb#124
136
+ module MethodSource::CodeHelpers::IncompleteExpression
137
+ class << self
138
+ # source://method_source//lib/method_source/code_helpers.rb#137
139
+ def ===(ex); end
140
+
141
+ # @return [Boolean]
142
+ #
143
+ # source://method_source//lib/method_source/code_helpers.rb#149
144
+ def rbx?; end
145
+ end
146
+ end
147
+
148
+ # source://method_source//lib/method_source/code_helpers.rb#125
149
+ MethodSource::CodeHelpers::IncompleteExpression::GENERIC_REGEXPS = T.let(T.unsafe(nil), Array)
150
+
151
+ # source://method_source//lib/method_source/code_helpers.rb#133
152
+ MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsafe(nil), Array)
153
+
154
+ # This module is to be included by `Method` and `UnboundMethod` and
155
+ # provides the `#source` functionality
156
+ #
157
+ # source://method_source//lib/method_source.rb#72
158
+ module MethodSource::MethodExtensions
159
+ # Return the comments associated with the method as a string.
160
+ #
161
+ # @example
162
+ # Set.instance_method(:clear).comment.display
163
+ # =>
164
+ # # Removes all elements and returns self.
165
+ # @raise SourceNotFoundException
166
+ # @return [String] The method's comments as a string
167
+ #
168
+ # source://method_source//lib/method_source.rb#121
169
+ def comment; end
170
+
171
+ # Return the sourcecode for the method as a string
172
+ #
173
+ # @example
174
+ # Set.instance_method(:clear).source.display
175
+ # =>
176
+ # def clear
177
+ # @hash.clear
178
+ # self
179
+ # end
180
+ # @raise SourceNotFoundException
181
+ # @return [String] The method sourcecode as a string
182
+ #
183
+ # source://method_source//lib/method_source.rb#109
184
+ def source; end
185
+
186
+ class << self
187
+ # We use the included hook to patch Method#source on rubinius.
188
+ # We need to use the included hook as Rubinius defines a `source`
189
+ # on Method so including a module will have no effect (as it's
190
+ # higher up the MRO).
191
+ #
192
+ # @param klass [Class] The class that includes the module.
193
+ #
194
+ # source://method_source//lib/method_source.rb#79
195
+ def included(klass); end
196
+ end
197
+ end
198
+
199
+ # source://method_source//lib/method_source/source_location.rb#2
200
+ module MethodSource::ReeSourceLocation
201
+ # Ruby enterprise edition provides all the information that's
202
+ # needed, in a slightly different way.
203
+ #
204
+ # source://method_source//lib/method_source/source_location.rb#5
205
+ def source_location; end
206
+ end
207
+
208
+ # source://method_source//lib/method_source/source_location.rb#10
209
+ module MethodSource::SourceLocation; end
210
+
211
+ # source://method_source//lib/method_source/source_location.rb#11
212
+ module MethodSource::SourceLocation::MethodExtensions
213
+ # Return the source location of a method for Ruby 1.8.
214
+ #
215
+ # @return [Array] A two element array. First element is the
216
+ # file, second element is the line in the file where the
217
+ # method definition is found.
218
+ #
219
+ # source://method_source//lib/method_source/source_location.rb#40
220
+ def source_location; end
221
+
222
+ private
223
+
224
+ # source://method_source//lib/method_source/source_location.rb#26
225
+ def trace_func(event, file, line, id, binding, classname); end
226
+ end
227
+
228
+ # source://method_source//lib/method_source/source_location.rb#54
229
+ module MethodSource::SourceLocation::ProcExtensions
230
+ # Return the source location for a Proc (in implementations
231
+ # without Proc#source_location)
232
+ #
233
+ # @return [Array] A two element array. First element is the
234
+ # file, second element is the line in the file where the
235
+ # proc definition is found.
236
+ #
237
+ # source://method_source//lib/method_source/source_location.rb#74
238
+ def source_location; end
239
+ end
240
+
241
+ # source://method_source//lib/method_source/source_location.rb#81
242
+ module MethodSource::SourceLocation::UnboundMethodExtensions
243
+ # Return the source location of an instance method for Ruby 1.8.
244
+ #
245
+ # @return [Array] A two element array. First element is the
246
+ # file, second element is the line in the file where the
247
+ # method definition is found.
248
+ #
249
+ # source://method_source//lib/method_source/source_location.rb#101
250
+ def source_location; end
251
+ end
252
+
253
+ # An Exception to mark errors that were raised trying to find the source from
254
+ # a given source_location.
255
+ #
256
+ # source://method_source//lib/method_source.rb#16
257
+ class MethodSource::SourceNotFoundError < ::StandardError; end
258
+
259
+ # source://method_source//lib/method_source/version.rb#2
260
+ MethodSource::VERSION = T.let(T.unsafe(nil), String)
261
+
262
+ # source://method_source//lib/method_source.rb#137
263
+ class Proc
264
+ include ::MethodSource::SourceLocation::ProcExtensions
265
+ include ::MethodSource::MethodExtensions
266
+ end
267
+
268
+ # source://method_source//lib/method_source.rb#132
269
+ class UnboundMethod
270
+ include ::MethodSource::SourceLocation::UnboundMethodExtensions
271
+ include ::MethodSource::MethodExtensions
272
+ end
@@ -0,0 +1,11 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `mocha` gem.
5
+ # Please instead update this file by running `bin/tapioca gem mocha`.
6
+
7
+ # source://mocha//lib/mocha/version.rb#1
8
+ module Mocha; end
9
+
10
+ # source://mocha//lib/mocha/version.rb#2
11
+ Mocha::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,161 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `netrc` gem.
5
+ # Please instead update this file by running `bin/tapioca gem netrc`.
6
+
7
+ # source://netrc//lib/netrc.rb#3
8
+ class Netrc
9
+ # @return [Netrc] a new instance of Netrc
10
+ #
11
+ # source://netrc//lib/netrc.rb#166
12
+ def initialize(path, data); end
13
+
14
+ # source://netrc//lib/netrc.rb#180
15
+ def [](k); end
16
+
17
+ # source://netrc//lib/netrc.rb#188
18
+ def []=(k, info); end
19
+
20
+ # source://netrc//lib/netrc.rb#200
21
+ def delete(key); end
22
+
23
+ # source://netrc//lib/netrc.rb#211
24
+ def each(&block); end
25
+
26
+ # source://netrc//lib/netrc.rb#196
27
+ def length; end
28
+
29
+ # source://netrc//lib/netrc.rb#215
30
+ def new_item(m, l, p); end
31
+
32
+ # Returns the value of attribute new_item_prefix.
33
+ #
34
+ # source://netrc//lib/netrc.rb#178
35
+ def new_item_prefix; end
36
+
37
+ # Sets the attribute new_item_prefix
38
+ #
39
+ # @param value the value to set the attribute new_item_prefix to.
40
+ #
41
+ # source://netrc//lib/netrc.rb#178
42
+ def new_item_prefix=(_arg0); end
43
+
44
+ # source://netrc//lib/netrc.rb#219
45
+ def save; end
46
+
47
+ # source://netrc//lib/netrc.rb#233
48
+ def unparse; end
49
+
50
+ class << self
51
+ # source://netrc//lib/netrc.rb#42
52
+ def check_permissions(path); end
53
+
54
+ # source://netrc//lib/netrc.rb#33
55
+ def config; end
56
+
57
+ # @yield [self.config]
58
+ #
59
+ # source://netrc//lib/netrc.rb#37
60
+ def configure; end
61
+
62
+ # source://netrc//lib/netrc.rb#10
63
+ def default_path; end
64
+
65
+ # source://netrc//lib/netrc.rb#14
66
+ def home_path; end
67
+
68
+ # source://netrc//lib/netrc.rb#85
69
+ def lex(lines); end
70
+
71
+ # source://netrc//lib/netrc.rb#29
72
+ def netrc_filename; end
73
+
74
+ # Returns two values, a header and a list of items.
75
+ # Each item is a tuple, containing some or all of:
76
+ # - machine keyword (including trailing whitespace+comments)
77
+ # - machine name
78
+ # - login keyword (including surrounding whitespace+comments)
79
+ # - login
80
+ # - password keyword (including surrounding whitespace+comments)
81
+ # - password
82
+ # - trailing chars
83
+ # This lets us change individual fields, then write out the file
84
+ # with all its original formatting.
85
+ #
86
+ # source://netrc//lib/netrc.rb#129
87
+ def parse(ts); end
88
+
89
+ # Reads path and parses it as a .netrc file. If path doesn't
90
+ # exist, returns an empty object. Decrypt paths ending in .gpg.
91
+ #
92
+ # source://netrc//lib/netrc.rb#51
93
+ def read(path = T.unsafe(nil)); end
94
+
95
+ # @return [Boolean]
96
+ #
97
+ # source://netrc//lib/netrc.rb#112
98
+ def skip?(s); end
99
+ end
100
+ end
101
+
102
+ # source://netrc//lib/netrc.rb#8
103
+ Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
104
+
105
+ # source://netrc//lib/netrc.rb#244
106
+ class Netrc::Entry < ::Struct
107
+ # Returns the value of attribute login
108
+ #
109
+ # @return [Object] the current value of login
110
+ def login; end
111
+
112
+ # Sets the attribute login
113
+ #
114
+ # @param value [Object] the value to set the attribute login to.
115
+ # @return [Object] the newly set value
116
+ #
117
+ # source://netrc//lib/netrc.rb#244
118
+ def login=(_); end
119
+
120
+ # Returns the value of attribute password
121
+ #
122
+ # @return [Object] the current value of password
123
+ def password; end
124
+
125
+ # Sets the attribute password
126
+ #
127
+ # @param value [Object] the value to set the attribute password to.
128
+ # @return [Object] the newly set value
129
+ #
130
+ # source://netrc//lib/netrc.rb#244
131
+ def password=(_); end
132
+
133
+ def to_ary; end
134
+
135
+ class << self
136
+ def [](*_arg0); end
137
+ def inspect; end
138
+ def members; end
139
+ def new(*_arg0); end
140
+ end
141
+ end
142
+
143
+ # source://netrc//lib/netrc.rb#250
144
+ class Netrc::Error < ::StandardError; end
145
+
146
+ # source://netrc//lib/netrc.rb#68
147
+ class Netrc::TokenArray < ::Array
148
+ # source://netrc//lib/netrc.rb#76
149
+ def readto; end
150
+
151
+ # source://netrc//lib/netrc.rb#69
152
+ def take; end
153
+ end
154
+
155
+ # source://netrc//lib/netrc.rb#4
156
+ Netrc::VERSION = T.let(T.unsafe(nil), String)
157
+
158
+ # see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
159
+ #
160
+ # source://netrc//lib/netrc.rb#7
161
+ Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)