danger-packwerk 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/lib/danger-packwerk/packwerk_wrapper.rb +2 -2
  3. data/lib/danger-packwerk/version.rb +1 -1
  4. data/sorbet/config +1 -0
  5. data/sorbet/rbi/gems/actionview@7.0.4.rbi +11543 -0
  6. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +12959 -0
  7. data/sorbet/rbi/gems/addressable@2.8.1.rbi +1505 -0
  8. data/sorbet/rbi/gems/ast@2.4.2.rbi +522 -0
  9. data/sorbet/rbi/gems/better_html@2.0.1.rbi +286 -0
  10. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  11. data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +791 -0
  12. data/sorbet/rbi/gems/claide@1.1.0.rbi +1132 -0
  13. data/sorbet/rbi/gems/coderay@1.1.3.rbi +2256 -0
  14. data/sorbet/rbi/gems/colored2@3.1.2.rbi +130 -0
  15. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +8695 -0
  16. data/sorbet/rbi/gems/cork@0.3.0.rbi +248 -0
  17. data/sorbet/rbi/gems/crass@1.0.6.rbi +436 -0
  18. data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +8 -0
  19. data/sorbet/rbi/gems/danger@9.0.0.rbi +4722 -0
  20. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +862 -0
  21. data/sorbet/rbi/gems/erubi@1.11.0.rbi +102 -0
  22. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +266 -0
  23. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +209 -0
  24. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +212 -0
  25. data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +805 -0
  26. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +221 -0
  27. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +266 -0
  28. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +216 -0
  29. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +206 -0
  30. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +212 -0
  31. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +225 -0
  32. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +222 -0
  33. data/sorbet/rbi/gems/faraday@1.10.2.rbi +1862 -0
  34. data/sorbet/rbi/gems/git@1.12.0.rbi +1936 -0
  35. data/sorbet/rbi/gems/i18n@1.12.0.rbi +1643 -0
  36. data/sorbet/rbi/gems/json@2.6.2.rbi +1418 -0
  37. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +8 -0
  38. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +2168 -0
  39. data/sorbet/rbi/gems/loofah@2.19.0.rbi +646 -0
  40. data/sorbet/rbi/gems/method_source@1.0.0.rbi +199 -0
  41. data/sorbet/rbi/gems/minitest@5.16.3.rbi +997 -0
  42. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +165 -0
  43. data/sorbet/rbi/gems/nap@1.1.0.rbi +351 -0
  44. data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +8 -0
  45. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +4916 -0
  46. data/sorbet/rbi/gems/octokit@5.6.1.rbi +8939 -0
  47. data/sorbet/rbi/gems/open4@1.3.4.rbi +8 -0
  48. data/sorbet/rbi/gems/{packwerk@2.1.1.rbi → packwerk@2.2.1.rbi} +602 -51
  49. data/sorbet/rbi/gems/parallel@1.22.1.rbi +163 -0
  50. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +5988 -0
  51. data/sorbet/rbi/gems/pry@0.14.1.rbi +6969 -0
  52. data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +779 -0
  53. data/sorbet/rbi/gems/racc@1.6.0.rbi +92 -0
  54. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +8 -0
  55. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +493 -0
  56. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +227 -0
  57. data/sorbet/rbi/gems/rake@13.0.6.rbi +1865 -0
  58. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2337 -0
  59. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +587 -0
  60. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +1851 -0
  61. data/sorbet/rbi/gems/rexml@3.2.5.rbi +3852 -0
  62. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +7725 -0
  63. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +6201 -0
  64. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +3625 -0
  65. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +1176 -0
  66. data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
  67. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +4193 -0
  68. data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +677 -0
  69. data/sorbet/rbi/gems/rubocop@1.36.0.rbi +37914 -0
  70. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +732 -0
  71. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  72. data/sorbet/rbi/gems/sawyer@0.9.2.rbi +513 -0
  73. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +326 -0
  74. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1600 -0
  75. data/sorbet/rbi/gems/tapioca@0.8.0.rbi +1959 -0
  76. data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +438 -0
  77. data/sorbet/rbi/gems/thor@1.2.1.rbi +2921 -0
  78. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +4879 -0
  79. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +27 -0
  80. data/sorbet/rbi/gems/unparser@0.6.5.rbi +2789 -0
  81. data/sorbet/rbi/gems/webrick@1.7.0.rbi +1802 -0
  82. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +288 -0
  83. data/sorbet/rbi/gems/yard@0.9.27.rbi +12668 -0
  84. data/sorbet/rbi/todo.rbi +122 -0
  85. metadata +84 -7
  86. data/sorbet/rbi/gems/danger@8.5.0.rbi +0 -122
@@ -0,0 +1,165 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `multipart-post` gem.
5
+ # Please instead update this file by running `bin/tapioca gem multipart-post`.
6
+
7
+ CompositeIO = Multipart::Post::CompositeReadIO
8
+ module Multipart; end
9
+ module Multipart::Post; end
10
+
11
+ # Concatenate together multiple IO objects into a single, composite IO object
12
+ # for purposes of reading as a single stream.
13
+ #
14
+ # @example
15
+ # crio = CompositeReadIO.new(StringIO.new('one'),
16
+ # StringIO.new('two'),
17
+ # StringIO.new('three'))
18
+ # puts crio.read # => "onetwothree"
19
+ class Multipart::Post::CompositeReadIO
20
+ # Create a new composite-read IO from the arguments, all of which should
21
+ # respond to #read in a manner consistent with IO.
22
+ #
23
+ # @return [CompositeReadIO] a new instance of CompositeReadIO
24
+ def initialize(*ios); end
25
+
26
+ # Read from IOs in order until `length` bytes have been received.
27
+ def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end
28
+
29
+ def rewind; end
30
+
31
+ private
32
+
33
+ def advance_io; end
34
+ def current_io; end
35
+ end
36
+
37
+ module Multipart::Post::Multipartable
38
+ def initialize(path, params, headers = T.unsafe(nil), boundary = T.unsafe(nil)); end
39
+
40
+ # Returns the value of attribute boundary.
41
+ def boundary; end
42
+
43
+ private
44
+
45
+ def symbolize_keys(hash); end
46
+
47
+ class << self
48
+ def secure_boundary; end
49
+ end
50
+ end
51
+
52
+ module Multipart::Post::Parts; end
53
+
54
+ # Represents the epilogue or closing boundary.
55
+ class Multipart::Post::Parts::EpiloguePart
56
+ include ::Multipart::Post::Parts::Part
57
+
58
+ # @return [EpiloguePart] a new instance of EpiloguePart
59
+ def initialize(boundary); end
60
+ end
61
+
62
+ # Represents a part to be filled from file IO.
63
+ class Multipart::Post::Parts::FilePart
64
+ include ::Multipart::Post::Parts::Part
65
+
66
+ # @param boundary [String]
67
+ # @param name [#to_s]
68
+ # @param io [IO]
69
+ # @param headers [Hash]
70
+ # @return [FilePart] a new instance of FilePart
71
+ def initialize(boundary, name, io, headers = T.unsafe(nil)); end
72
+
73
+ # @param boundary [String]
74
+ # @param name [#to_s]
75
+ # @param filename [String]
76
+ # @param type [String]
77
+ # @param content_len [Integer]
78
+ # @param opts [Hash]
79
+ def build_head(boundary, name, filename, type, content_len, opts = T.unsafe(nil)); end
80
+
81
+ # Returns the value of attribute length.
82
+ def length; end
83
+ end
84
+
85
+ # Represents a parametric part to be filled with given value.
86
+ class Multipart::Post::Parts::ParamPart
87
+ include ::Multipart::Post::Parts::Part
88
+
89
+ # @param boundary [String]
90
+ # @param name [#to_s]
91
+ # @param value [String]
92
+ # @param headers [Hash] Content-Type and Content-ID are used, if present.
93
+ # @return [ParamPart] a new instance of ParamPart
94
+ def initialize(boundary, name, value, headers = T.unsafe(nil)); end
95
+
96
+ # @param boundary [String]
97
+ # @param name [#to_s]
98
+ # @param value [String]
99
+ # @param headers [Hash] Content-Type is used, if present.
100
+ def build_part(boundary, name, value, headers = T.unsafe(nil)); end
101
+
102
+ def length; end
103
+ end
104
+
105
+ module Multipart::Post::Parts::Part
106
+ def length; end
107
+ def to_io; end
108
+
109
+ class << self
110
+ # @return [Boolean]
111
+ def file?(value); end
112
+
113
+ def new(boundary, name, value, headers = T.unsafe(nil)); end
114
+ end
115
+ end
116
+
117
+ # Convenience methods for dealing with files and IO that are to be uploaded.
118
+ class Multipart::Post::UploadIO
119
+ # Create an upload IO suitable for including in the params hash of a
120
+ # Net::HTTP::Post::Multipart.
121
+ #
122
+ # Can take two forms. The first accepts a filename and content type, and
123
+ # opens the file for reading (to be closed by finalizer).
124
+ #
125
+ # The second accepts an already-open IO, but also requires a third argument,
126
+ # the filename from which it was opened (particularly useful/recommended if
127
+ # uploading directly from a form in a framework, which often save the file to
128
+ # an arbitrarily named RackMultipart file in /tmp).
129
+ #
130
+ # @example
131
+ # UploadIO.new("file.txt", "text/plain")
132
+ # UploadIO.new(file_io, "text/plain", "file.txt")
133
+ # @return [UploadIO] a new instance of UploadIO
134
+ def initialize(filename_or_io, content_type, filename = T.unsafe(nil), opts = T.unsafe(nil)); end
135
+
136
+ # Returns the value of attribute content_type.
137
+ def content_type; end
138
+
139
+ # Returns the value of attribute io.
140
+ def io; end
141
+
142
+ # Returns the value of attribute local_path.
143
+ def local_path; end
144
+
145
+ def method_missing(*args); end
146
+
147
+ # Returns the value of attribute opts.
148
+ def opts; end
149
+
150
+ # Returns the value of attribute original_filename.
151
+ def original_filename; end
152
+
153
+ # @return [Boolean]
154
+ def respond_to?(meth, include_all = T.unsafe(nil)); end
155
+
156
+ class << self
157
+ # @raise [ArgumentError]
158
+ def convert!(io, content_type, original_filename, local_path); end
159
+ end
160
+ end
161
+
162
+ Multipart::Post::VERSION = T.let(T.unsafe(nil), String)
163
+ Multipartable = Multipart::Post::Multipartable
164
+ Parts = Multipart::Post::Parts
165
+ UploadIO = Multipart::Post::UploadIO
@@ -0,0 +1,351 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `nap` gem.
5
+ # Please instead update this file by running `bin/tapioca gem nap`.
6
+
7
+ # REST is basically a convenience wrapper around Net::HTTP. It defines a simple and consistant API
8
+ # for doing REST-style HTTP calls.
9
+ #
10
+ # In addition it provides wrappers for the many error classes that can be raised while making
11
+ # requests. See REST::Error for a complete discussion of options.
12
+ module REST
13
+ class << self
14
+ # Performs a DELETE on a resource. See REST::Request.new for a complete discussion of options.
15
+ #
16
+ # response = REST.delete('http://example.com/pigeons/12')
17
+ # if response.ok?
18
+ # puts "Your pigeon died ): )"
19
+ # elsif response.found?
20
+ # puts "Someone moved your pigeon!"
21
+ # else
22
+ # puts "Couldn't delete your pigeon (#{response.status_code})"
23
+ # end
24
+ def delete(uri, headers = T.unsafe(nil), options = T.unsafe(nil), &configure_block); end
25
+
26
+ # Performs a GET on a resource. See REST::Request.new for a complete discussion of options.
27
+ #
28
+ # response = REST.get('http://example.com/pigeons/12',
29
+ # {'Accept' => 'text/plain'},
30
+ # {:username => 'admin', :password => 'secret'}
31
+ # )
32
+ # if response.ok?
33
+ # puts response.body
34
+ # else
35
+ # puts "Couldn't fetch your pigeon (#{response.status_code})"
36
+ # end
37
+ def get(uri, headers = T.unsafe(nil), options = T.unsafe(nil), &configure_block); end
38
+
39
+ # Performs a HEAD on a resource. See REST::Request.new for a complete discussion of options.
40
+ #
41
+ # response = REST.head('http://example.com/pigeons/12')
42
+ # if response.ok?
43
+ # puts "Your pigeon exists!"
44
+ # elsif response.found?
45
+ # puts "Someone moved your pigeon!"
46
+ # else
47
+ # puts "Couldn't fetch your pigeon (#{response.status_code})"
48
+ # end
49
+ def head(uri, headers = T.unsafe(nil), options = T.unsafe(nil), &configure_block); end
50
+
51
+ # Performs a PATCH on a resource. See REST::Request.new for a complete discussion of options.
52
+ #
53
+ # response = REST.patch('http://example.com/pigeons/12',
54
+ # {'Name' => 'Homer'}.to_xml,
55
+ # {'Accept' => 'application/xml, */*', 'Content-Type' => 'application/xml'}
56
+ # )
57
+ # if response.ok?
58
+ # puts "Your pigeon was renamed to 'Homer'!"
59
+ # else
60
+ # puts "Couldn't rename your pigeon (#{response.status_code})"
61
+ # puts XML.parse(response.body).reason
62
+ # end
63
+ def patch(uri, body, headers = T.unsafe(nil), options = T.unsafe(nil), &configure_block); end
64
+
65
+ # Performs a POST on a resource. See REST::Request.new for a complete discussion of options.
66
+ #
67
+ # response = REST.post('http://example.com/pigeons',
68
+ # {'Name' => 'Bowser'}.to_xml,
69
+ # {'Accept' => 'application/xml, */*', 'Content-Type' => 'application/xml'}
70
+ # )
71
+ # if response.created?
72
+ # puts "Created a new pigeon called 'Bowser'"
73
+ # else
74
+ # puts "Couldn't create your pigeon (#{response.status_code})"
75
+ # puts XML.parse(response.body).reason
76
+ # end
77
+ def post(uri, body, headers = T.unsafe(nil), options = T.unsafe(nil), &configure_block); end
78
+
79
+ # Performs a PUT on a resource. See REST::Request.new for a complete discussion of options.
80
+ #
81
+ # response = REST.put('http://example.com/pigeons/12',
82
+ # {'Name' => 'Homer'}.to_xml,
83
+ # {'Accept' => 'application/xml, */*', 'Content-Type' => 'application/xml'}
84
+ # )
85
+ # if response.ok?
86
+ # puts "Your pigeon 'Bowser' was replaced by 'Homer'!"
87
+ # else
88
+ # puts "Couldn't replace your pigeon (#{response.status_code})"
89
+ # puts XML.parse(response.body).reason
90
+ # end
91
+ def put(uri, body, headers = T.unsafe(nil), options = T.unsafe(nil), &configure_block); end
92
+ end
93
+ end
94
+
95
+ # This constant can be used to rescue any of the known `Timeout`, `Connection`, and `Protocol`
96
+ # error classes.
97
+ #
98
+ # For instance, to rescue _any_ type of error that could be raise while making a request:
99
+ #
100
+ # begin
101
+ # REST.get('http://example.com/pigeons/12')
102
+ # rescue REST::Error => e
103
+ # p e # => Timeout::Error
104
+ # end
105
+ #
106
+ # If you want to rescue only `Timeout` related error classes, however, you can limit the scope:
107
+ #
108
+ # begin
109
+ # REST.get('http://example.com/pigeons/12')
110
+ # rescue REST::Error::Timeout => e
111
+ # p e # => Timeout::Error
112
+ # end
113
+ module REST::Error; end
114
+
115
+ # This constant can be used to rescue only the known `Connection` error classes.
116
+ module REST::Error::Connection
117
+ include ::REST::Error
118
+
119
+ class << self
120
+ def class_names; end
121
+ def classes; end
122
+ def extend_classes!; end
123
+ end
124
+ end
125
+
126
+ # This constant can be used to rescue only the known `Protocol` error classes.
127
+ module REST::Error::Protocol
128
+ include ::REST::Error
129
+
130
+ class << self
131
+ def class_names; end
132
+ def classes; end
133
+ def extend_classes!; end
134
+ end
135
+ end
136
+
137
+ # This constant can be used to rescue only the known `Timeout` error classes.
138
+ module REST::Error::Timeout
139
+ include ::REST::Error
140
+
141
+ class << self
142
+ def class_names; end
143
+ def classes; end
144
+ def extend_classes!; end
145
+ end
146
+ end
147
+
148
+ # Request holds a HTTP request
149
+ class REST::Request
150
+ # * <tt>verb</tt>: The verb to use in the request, either :get, :head, :patch, :put, or :post
151
+ # * <tt>url</tt>: The URL to send the request to, must be a URI instance
152
+ # * <tt>body</tt>: The body to use in the request
153
+ # * <tt>headers</tt>: A hash of headers to add to the request
154
+ # * <tt>options</tt>: A hash of additional options
155
+ # * <tt>username</tt>: Username to use for basic authentication
156
+ # * <tt>password</tt>: Password to use for basic authentication
157
+ # * <tt>tls_verify/verify_ssl</tt>: Verify the server certificate against known CA's
158
+ # * <tt>tls_ca_file</tt>: Use a specific file for CA certificates instead of the built-in one
159
+ # this only works when <tt>:tls_verify</tt> is also set.
160
+ # * <tt>tls_key_and_certificate_file</tt>: The client key and certificate file to use for this
161
+ # request
162
+ # * <tt>tls_certificate</tt>: The client certficate to use for this request
163
+ # * <tt>tls_key</tt>: The client private key to use for this request
164
+ # * <tt>configure_block</tt>: An optional block that yields the underlying <tt>Net::HTTP</tt>
165
+ # request object allowing for more fine-grained configuration
166
+ #
167
+ # == Examples
168
+ #
169
+ # request = REST::Request.new(:get, URI.parse('http://example.com/pigeons/1'))
170
+ #
171
+ # request = REST::Request.new(:head, URI.parse('http://example.com/pigeons/1'))
172
+ #
173
+ # request = REST::Request.new(:post,
174
+ # URI.parse('http://example.com/pigeons'),
175
+ # {'name' => 'Homr'}.to_json,
176
+ # {'Accept' => 'application/json, */*', 'Content-Type' => 'application/json; charset=utf-8'}
177
+ # )
178
+ #
179
+ # # Pass a block to configure the underlying +Net::HTTP+ request.
180
+ # request = REST::Request.new(:get, URI.parse('http://example.com/pigeons/largest')) do |http_request|
181
+ # http_request.open_timeout = 15 # seconds
182
+ # end
183
+ #
184
+ # == Authentication example
185
+ #
186
+ # request = REST::Request.new(:put,
187
+ # URI.parse('http://example.com/pigeons/1'),
188
+ # {'name' => 'Homer'}.to_json,
189
+ # {'Accept' => 'application/json, */*', 'Content-Type' => 'application/json; charset=utf-8'},
190
+ # {:username => 'Admin', :password => 'secret'}
191
+ # )
192
+ #
193
+ # == TLS / SSL examples
194
+ #
195
+ # # Use a client key and certificate
196
+ # request = REST::Request.new(:get, URI.parse('https://example.com/pigeons/1'), nil, {}, {
197
+ # :tls_key_and_certificate_file => '/home/alice/keys/example.pem'
198
+ # })
199
+ #
200
+ # # Use a client certificate and key from a specific location
201
+ # key_and_certificate = File.read('/home/alice/keys/example.pem')
202
+ # request = REST::Request.new(:get, URI.parse('https://example.com/pigeons/1'), nil, {}, {
203
+ # :tls_key => OpenSSL::PKey::RSA.new(key_and_certificate),
204
+ # :tls_certificate => OpenSSL::X509::Certificate.new(key_and_certificate)
205
+ # })
206
+ #
207
+ # # Verify the server certificate against a specific certificate
208
+ # request = REST::Request.new(:get, URI.parse('https://example.com/pigeons/1'), nil, {}, {
209
+ # :tls_verify => true,
210
+ # :tls_ca_file => '/home/alice/keys/example.pem'
211
+ # })
212
+ #
213
+ # @return [Request] a new instance of Request
214
+ def initialize(verb, url, body = T.unsafe(nil), headers = T.unsafe(nil), options = T.unsafe(nil), &configure_block); end
215
+
216
+ # Returns the value of attribute body.
217
+ def body; end
218
+
219
+ # Sets the attribute body
220
+ #
221
+ # @param value the value to set the attribute body to.
222
+ def body=(_arg0); end
223
+
224
+ # Returns the value of attribute headers.
225
+ def headers; end
226
+
227
+ # Sets the attribute headers
228
+ #
229
+ # @param value the value to set the attribute headers to.
230
+ def headers=(_arg0); end
231
+
232
+ def http_proxy; end
233
+
234
+ # Configures and returns a new <tt>Net::HTTP</tt> request object
235
+ def http_request; end
236
+
237
+ # Returns the value of attribute options.
238
+ def options; end
239
+
240
+ # Sets the attribute options
241
+ #
242
+ # @param value the value to set the attribute options to.
243
+ def options=(_arg0); end
244
+
245
+ # Returns the path (including the query) for the request
246
+ def path; end
247
+
248
+ # Performs the actual request and returns a REST::Response object with the response
249
+ def perform; end
250
+
251
+ def proxy_env; end
252
+ def proxy_settings; end
253
+
254
+ # Returns the value of attribute request.
255
+ def request; end
256
+
257
+ # Sets the attribute request
258
+ #
259
+ # @param value the value to set the attribute request to.
260
+ def request=(_arg0); end
261
+
262
+ def request_for_verb; end
263
+
264
+ # Returns the value of attribute url.
265
+ def url; end
266
+
267
+ # Sets the attribute url
268
+ #
269
+ # @param value the value to set the attribute url to.
270
+ def url=(_arg0); end
271
+
272
+ # Returns the value of attribute verb.
273
+ def verb; end
274
+
275
+ # Sets the attribute verb
276
+ #
277
+ # @param value the value to set the attribute verb to.
278
+ def verb=(_arg0); end
279
+
280
+ class << self
281
+ # Shortcut for REST::Request.new(*args).perform.
282
+ #
283
+ # See new for options.
284
+ def perform(*args, &configure_block); end
285
+ end
286
+ end
287
+
288
+ # Response holds a HTTP response
289
+ class REST::Response
290
+ # * <tt>status_code</tt>: The status code of the response (ie. 200 or '404')
291
+ # * <tt>headers</tt>: The headers of the response
292
+ # * <tt>body</tt>: The body of the response
293
+ #
294
+ # @return [Response] a new instance of Response
295
+ def initialize(status_code, headers = T.unsafe(nil), body = T.unsafe(nil)); end
296
+
297
+ def bad_request?; end
298
+
299
+ # Returns the value of attribute body.
300
+ def body; end
301
+
302
+ # Sets the attribute body
303
+ #
304
+ # @param value the value to set the attribute body to.
305
+ def body=(_arg0); end
306
+
307
+ def created?; end
308
+ def forbidden?; end
309
+ def found?; end
310
+
311
+ # Returns the value of attribute headers.
312
+ def headers; end
313
+
314
+ # Sets the attribute headers
315
+ #
316
+ # @param value the value to set the attribute headers to.
317
+ def headers=(_arg0); end
318
+
319
+ def internal_server_error?; end
320
+ def moved_permanently?; end
321
+ def not_found?; end
322
+ def ok?; end
323
+
324
+ # Returns the value of attribute status_code.
325
+ def status_code; end
326
+
327
+ # Sets the attribute status_code
328
+ #
329
+ # @param value the value to set the attribute status_code to.
330
+ def status_code=(_arg0); end
331
+
332
+ # Returns _true_ when the status code is in the 2XX range. Returns false otherwise.
333
+ #
334
+ # @return [Boolean]
335
+ def success?; end
336
+
337
+ def unauthorized?; end
338
+ def unprocessable_entity?; end
339
+ end
340
+
341
+ # These codes are used to define convenience boolean accessors on the response object.
342
+ #
343
+ # Examples
344
+ #
345
+ # REST::Response.new(200).ok? #=> true
346
+ # REST::Response.new(201).ok? #=> falses
347
+ # REST::Response.new(403).forbidden? #=> true
348
+ REST::Response::CODES = T.let(T.unsafe(nil), Array)
349
+
350
+ # Library version
351
+ REST::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `no_proxy_fix` gem.
5
+ # Please instead update this file by running `bin/tapioca gem no_proxy_fix`.
6
+
7
+ module NoProxyFix; end
8
+ NoProxyFix::VERSION = T.let(T.unsafe(nil), String)