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,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `ruby2_keywords` gem.
5
+ # Please instead update this file by running `bin/tapioca gem ruby2_keywords`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires
@@ -0,0 +1,513 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `sawyer` gem.
5
+ # Please instead update this file by running `bin/tapioca gem sawyer`.
6
+
7
+ module Sawyer; end
8
+
9
+ class Sawyer::Agent
10
+ # Agents handle making the requests, and passing responses to
11
+ # Sawyer::Response.
12
+ #
13
+ # endpoint - String URI of the API entry point.
14
+ # options - Hash of options.
15
+ # :allow_undefined_methods - Allow relations to call all the HTTP verbs,
16
+ # not just the ones defined.
17
+ # :faraday - Optional Faraday::Connection to use.
18
+ # :links_parser - Optional parser to parse link relations
19
+ # Defaults: Sawyer::LinkParsers::Hal.new
20
+ # :serializer - Optional serializer Class. Defaults to
21
+ # self.serializer_class.
22
+ #
23
+ # Yields the Faraday::Connection if a block is given.
24
+ #
25
+ # @return [Agent] a new instance of Agent
26
+ # @yield [@conn]
27
+ def initialize(endpoint, options = T.unsafe(nil)); end
28
+
29
+ # Returns the value of attribute allow_undefined_methods.
30
+ def allow_undefined_methods; end
31
+
32
+ # Sets the attribute allow_undefined_methods
33
+ #
34
+ # @param value the value to set the attribute allow_undefined_methods to.
35
+ def allow_undefined_methods=(_arg0); end
36
+
37
+ # @return [Boolean]
38
+ def allow_undefined_methods?; end
39
+
40
+ # Makes a request through Faraday.
41
+ #
42
+ # method - The Symbol name of an HTTP method.
43
+ # url - The String URL to access. This can be relative to the Agent's
44
+ # endpoint.
45
+ # data - The Optional Hash or Resource body to be sent. :get or :head
46
+ # requests can have no body, so this can be the options Hash
47
+ # instead.
48
+ # options - Hash of option to configure the API request.
49
+ # :headers - Hash of API headers to set.
50
+ # :query - Hash of URL query params to set.
51
+ #
52
+ # Returns a Sawyer::Response.
53
+ def call(method, url, data = T.unsafe(nil), options = T.unsafe(nil)); end
54
+
55
+ # Public: Close the underlying connection.
56
+ def close; end
57
+
58
+ # Decodes a String response body to a resource.
59
+ #
60
+ # str - The String body from the response.
61
+ #
62
+ # Returns an Object resource (Hash by default).
63
+ def decode_body(str); end
64
+
65
+ # Encodes an object to a string for the API request.
66
+ #
67
+ # data - The Hash or Resource that is being sent.
68
+ #
69
+ # Returns a String.
70
+ def encode_body(data); end
71
+
72
+ def expand_url(url, options = T.unsafe(nil)); end
73
+ def inspect; end
74
+
75
+ # Returns the value of attribute links_parser.
76
+ def links_parser; end
77
+
78
+ # Sets the attribute links_parser
79
+ #
80
+ # @param value the value to set the attribute links_parser to.
81
+ def links_parser=(_arg0); end
82
+
83
+ def marshal_dump; end
84
+ def marshal_load(dumped); end
85
+ def parse_links(data); end
86
+
87
+ # Public: Retains a reference to the root relations of the API.
88
+ #
89
+ # Returns a Sawyer::Relation::Map.
90
+ def rels; end
91
+
92
+ # Public: Retains a reference to the root response of the API.
93
+ #
94
+ # Returns a Sawyer::Response.
95
+ def root; end
96
+
97
+ # Public: Hits the root of the API to get the initial actions.
98
+ #
99
+ # Returns a Sawyer::Response.
100
+ def start; end
101
+
102
+ # private
103
+ def to_yaml_properties; end
104
+
105
+ class << self
106
+ def decode(data); end
107
+ def encode(data); end
108
+ def serializer; end
109
+
110
+ # Sets the attribute serializer
111
+ #
112
+ # @param value the value to set the attribute serializer to.
113
+ def serializer=(_arg0); end
114
+ end
115
+ end
116
+
117
+ Sawyer::Agent::NO_BODY = T.let(T.unsafe(nil), Set)
118
+ class Sawyer::Error < ::StandardError; end
119
+ module Sawyer::LinkParsers; end
120
+
121
+ class Sawyer::LinkParsers::Hal
122
+ def parse(data); end
123
+ end
124
+
125
+ class Sawyer::LinkParsers::Simple
126
+ # Public: Parses simple *_url style links on resources
127
+ #
128
+ # data - Hash of resource data
129
+ #
130
+ # Returns a Hash of data with separate links Hash
131
+ def parse(data); end
132
+ end
133
+
134
+ Sawyer::LinkParsers::Simple::LINK_REGEX = T.let(T.unsafe(nil), Regexp)
135
+
136
+ class Sawyer::Relation
137
+ # A Relation represents an available next action for a resource.
138
+ #
139
+ # agent - The Sawyer::Agent that made the request.
140
+ # name - The Symbol name of the relation.
141
+ # href - The String URL of the location of the next action.
142
+ # method - The Symbol HTTP method. Default: :get
143
+ #
144
+ # @return [Relation] a new instance of Relation
145
+ def initialize(agent, name, href, method = T.unsafe(nil)); end
146
+
147
+ # Returns the value of attribute agent.
148
+ def agent; end
149
+
150
+ # Returns the value of attribute available_methods.
151
+ def available_methods; end
152
+
153
+ # Public: Makes an API request with the curent Relation.
154
+ #
155
+ # data - The Optional Hash or Resource body to be sent. :get or :head
156
+ # requests can have no body, so this can be the options Hash
157
+ # instead.
158
+ # options - Hash of option to configure the API request.
159
+ # :headers - Hash of API headers to set.
160
+ # :query - Hash of URL query params to set.
161
+ # :method - Symbol HTTP method.
162
+ #
163
+ # Raises ArgumentError if the :method value is not in @available_methods.
164
+ # Returns a Sawyer::Response.
165
+ def call(data = T.unsafe(nil), options = T.unsafe(nil)); end
166
+
167
+ # Public: Makes an API request with the curent Relation using DELETE.
168
+ #
169
+ # data - The Optional Hash or Resource body to be sent.
170
+ # options - Hash of option to configure the API request.
171
+ # :headers - Hash of API headers to set.
172
+ # :query - Hash of URL query params to set.
173
+ # :method - Symbol HTTP method.
174
+ #
175
+ # Returns a Sawyer::Response.
176
+ def delete(data = T.unsafe(nil), options = T.unsafe(nil)); end
177
+
178
+ # Public: Makes an API request with the curent Relation using GET.
179
+ #
180
+ # data - The Optional Hash or Resource body to be sent. :get or :head
181
+ # requests can have no body, so this can be the options Hash
182
+ # instead.
183
+ # options - Hash of option to configure the API request.
184
+ # :headers - Hash of API headers to set.
185
+ # :query - Hash of URL query params to set.
186
+ # :method - Symbol HTTP method.
187
+ #
188
+ # Returns a Sawyer::Response.
189
+ def get(options = T.unsafe(nil)); end
190
+
191
+ # Public: Makes an API request with the curent Relation using HEAD.
192
+ #
193
+ # data - The Optional Hash or Resource body to be sent. :get or :head
194
+ # requests can have no body, so this can be the options Hash
195
+ # instead.
196
+ # options - Hash of option to configure the API request.
197
+ # :headers - Hash of API headers to set.
198
+ # :query - Hash of URL query params to set.
199
+ # :method - Symbol HTTP method.
200
+ #
201
+ # Returns a Sawyer::Response.
202
+ def head(options = T.unsafe(nil)); end
203
+
204
+ def href(options = T.unsafe(nil)); end
205
+
206
+ # Returns the value of attribute href_template.
207
+ def href_template; end
208
+
209
+ def inspect; end
210
+
211
+ # Returns the value of attribute method.
212
+ def method; end
213
+
214
+ # Returns the value of attribute name.
215
+ def name; end
216
+
217
+ # Public: Makes an API request with the curent Relation using OPTIONS.
218
+ #
219
+ # data - The Optional Hash or Resource body to be sent.
220
+ # options - Hash of option to configure the API request.
221
+ # :headers - Hash of API headers to set.
222
+ # :query - Hash of URL query params to set.
223
+ # :method - Symbol HTTP method.
224
+ #
225
+ # Returns a Sawyer::Response.
226
+ def options(data = T.unsafe(nil), opt = T.unsafe(nil)); end
227
+
228
+ # Public: Makes an API request with the curent Relation using PATCH.
229
+ #
230
+ # data - The Optional Hash or Resource body to be sent.
231
+ # options - Hash of option to configure the API request.
232
+ # :headers - Hash of API headers to set.
233
+ # :query - Hash of URL query params to set.
234
+ # :method - Symbol HTTP method.
235
+ #
236
+ # Returns a Sawyer::Response.
237
+ def patch(data = T.unsafe(nil), options = T.unsafe(nil)); end
238
+
239
+ # Public: Makes an API request with the curent Relation using POST.
240
+ #
241
+ # data - The Optional Hash or Resource body to be sent.
242
+ # options - Hash of option to configure the API request.
243
+ # :headers - Hash of API headers to set.
244
+ # :query - Hash of URL query params to set.
245
+ # :method - Symbol HTTP method.
246
+ #
247
+ # Returns a Sawyer::Response.
248
+ def post(data = T.unsafe(nil), options = T.unsafe(nil)); end
249
+
250
+ # Public: Makes an API request with the curent Relation using PUT.
251
+ #
252
+ # data - The Optional Hash or Resource body to be sent.
253
+ # options - Hash of option to configure the API request.
254
+ # :headers - Hash of API headers to set.
255
+ # :query - Hash of URL query params to set.
256
+ # :method - Symbol HTTP method.
257
+ #
258
+ # Returns a Sawyer::Response.
259
+ def put(data = T.unsafe(nil), options = T.unsafe(nil)); end
260
+
261
+ class << self
262
+ # Public: Builds a single Relation from the given options. These are
263
+ # usually taken from a `_links` property in a resource.
264
+ #
265
+ # agent - The Sawyer::Agent that made the request.
266
+ # name - The Symbol name of the Relation.
267
+ # options - A Hash containing the other Relation properties.
268
+ # :href - The String URL of the next action's location.
269
+ # :method - The optional String HTTP method.
270
+ #
271
+ # Returns a Relation.
272
+ def from_link(agent, name, options); end
273
+
274
+ # Public: Builds an index of Relations from the value of a `_links`
275
+ # property in a resource. :get is the default method. Any links with
276
+ # multiple specified methods will get multiple relations created.
277
+ #
278
+ # index - The Hash mapping Relation names to the Hash Relation
279
+ # options.
280
+ # rels - A Relation::Map to store the Relations.
281
+ #
282
+ # Returns a Relation::Map
283
+ def from_links(agent, index, rels = T.unsafe(nil)); end
284
+ end
285
+ end
286
+
287
+ class Sawyer::Relation::Map
288
+ # Tracks the available next actions for a resource, and
289
+ # issues requests for them.
290
+ #
291
+ # @return [Map] a new instance of Map
292
+ def initialize; end
293
+
294
+ # Adds a Relation to the map.
295
+ #
296
+ # rel - A Relation.
297
+ #
298
+ # Returns nothing.
299
+ def <<(rel); end
300
+
301
+ # Gets the raw Relation by its name.
302
+ #
303
+ # key - The Symbol name of the Relation.
304
+ #
305
+ # Returns a Relation.
306
+ def [](key); end
307
+
308
+ def inspect; end
309
+
310
+ # Gets a list of the Relation names.
311
+ #
312
+ # Returns an Array of Symbols in no specific order.
313
+ def keys; end
314
+
315
+ # Gets the number of mapped Relations.
316
+ #
317
+ # Returns an Integer.
318
+ def size; end
319
+
320
+ def to_h; end
321
+ def to_hash; end
322
+ end
323
+
324
+ class Sawyer::Resource
325
+ include ::Enumerable
326
+ extend ::Forwardable
327
+
328
+ # Initializes a Resource with the given data.
329
+ #
330
+ # agent - The Sawyer::Agent that made the API request.
331
+ # data - Hash of key/value properties.
332
+ #
333
+ # @return [Resource] a new instance of Resource
334
+ def initialize(agent, data = T.unsafe(nil)); end
335
+
336
+ # Allow fields to be retrieved via Hash notation
337
+ #
338
+ # method - key name
339
+ #
340
+ # Returns the value from attrs if exists
341
+ def [](method); end
342
+
343
+ # Allow fields to be set via Hash notation
344
+ #
345
+ # method - key name
346
+ # value - value to set for the attr key
347
+ #
348
+ # Returns - value
349
+ def []=(method, value); end
350
+
351
+ # Returns the value of attribute _agent.
352
+ def _agent; end
353
+
354
+ # Returns the value of attribute _fields.
355
+ def _fields; end
356
+
357
+ # Returns the value of attribute _rels.
358
+ def _rels; end
359
+
360
+ # Returns the value of attribute attrs.
361
+ def attrs; end
362
+
363
+ def dig(*args, &block); end
364
+ def each(&block); end
365
+ def fetch(*args, &block); end
366
+ def inspect; end
367
+
368
+ # Checks to see if the given key is in this resource.
369
+ #
370
+ # key - A Symbol key.
371
+ #
372
+ # Returns true if the key exists, or false.
373
+ #
374
+ # @return [Boolean]
375
+ def key?(key); end
376
+
377
+ def marshal_dump; end
378
+ def marshal_load(dumped); end
379
+
380
+ # Provides access to a resource's attributes.
381
+ def method_missing(method, *args); end
382
+
383
+ # Processes an individual value of this resource. Hashes get exploded
384
+ # into another Resource, and Arrays get their values processed too.
385
+ #
386
+ # value - An Object value of a Resource's data.
387
+ #
388
+ # Returns an Object to set as the value of a Resource key.
389
+ def process_value(value); end
390
+
391
+ def to_attrs; end
392
+ def to_h; end
393
+ def to_hash; end
394
+
395
+ # private
396
+ def to_yaml_properties; end
397
+
398
+ class << self
399
+ # Wire up accessor methods to pull from attrs
400
+ def attr_accessor(*attrs); end
401
+ end
402
+ end
403
+
404
+ Sawyer::Resource::ATTR_PREDICATE = T.let(T.unsafe(nil), String)
405
+ Sawyer::Resource::ATTR_SETTER = T.let(T.unsafe(nil), String)
406
+ Sawyer::Resource::SPECIAL_METHODS = T.let(T.unsafe(nil), Set)
407
+
408
+ class Sawyer::Response
409
+ # Builds a Response after a completed request.
410
+ #
411
+ # agent - The Sawyer::Agent that is managing the API connection.
412
+ # res - A Faraday::Response.
413
+ #
414
+ # @return [Response] a new instance of Response
415
+ def initialize(agent, res, options = T.unsafe(nil)); end
416
+
417
+ # Returns the value of attribute agent.
418
+ def agent; end
419
+
420
+ # Returns the value of attribute body.
421
+ def body; end
422
+
423
+ def data; end
424
+
425
+ # Returns the value of attribute env.
426
+ def env; end
427
+
428
+ # Returns the value of attribute headers.
429
+ def headers; end
430
+
431
+ def inspect; end
432
+
433
+ # Turns parsed contents from an API response into a Resource or
434
+ # collection of Resources.
435
+ #
436
+ # data - Either an Array or Hash parsed from JSON.
437
+ #
438
+ # Returns either a Resource or Array of Resources.
439
+ def process_data(data); end
440
+
441
+ # Finds link relations from 'Link' response header
442
+ #
443
+ # Returns an array of Relations
444
+ def process_rels; end
445
+
446
+ # Returns the value of attribute rels.
447
+ def rels; end
448
+
449
+ # Returns the value of attribute status.
450
+ def status; end
451
+
452
+ def time; end
453
+ def timing; end
454
+ end
455
+
456
+ class Sawyer::Serializer
457
+ # Public: Wraps a serialization format for Sawyer. Nested objects are
458
+ # prepared for serialization (such as changing Times to ISO 8601 Strings).
459
+ # Any serialization format that responds to #dump and #load will work.
460
+ #
461
+ # @return [Serializer] a new instance of Serializer
462
+ def initialize(format, dump_method_name = T.unsafe(nil), load_method_name = T.unsafe(nil)); end
463
+
464
+ # Public: Decodes a String into an Object (usually a Hash or Array of
465
+ # Hashes).
466
+ #
467
+ # data - An encoded String.
468
+ #
469
+ # Returns a decoded Object.
470
+ def decode(data); end
471
+
472
+ def decode_hash(hash); end
473
+ def decode_hash_value(key, value); end
474
+ def decode_object(data); end
475
+
476
+ # Public: Encodes an Object (usually a Hash or Array of Hashes).
477
+ #
478
+ # data - Object to be encoded.
479
+ #
480
+ # Returns an encoded String.
481
+ def dump(data); end
482
+
483
+ # Public: Encodes an Object (usually a Hash or Array of Hashes).
484
+ #
485
+ # data - Object to be encoded.
486
+ #
487
+ # Returns an encoded String.
488
+ def encode(data); end
489
+
490
+ def encode_hash(hash); end
491
+ def encode_object(data); end
492
+
493
+ # Public: Decodes a String into an Object (usually a Hash or Array of
494
+ # Hashes).
495
+ #
496
+ # data - An encoded String.
497
+ #
498
+ # Returns a decoded Object.
499
+ def load(data); end
500
+
501
+ # @return [Boolean]
502
+ def time_field?(key, value); end
503
+
504
+ class << self
505
+ def any_json; end
506
+ def json; end
507
+ def message_pack; end
508
+ def multi_json; end
509
+ def yajl; end
510
+ end
511
+ end
512
+
513
+ Sawyer::VERSION = T.let(T.unsafe(nil), String)