setsuzoku 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/.gitattributes +2 -0
  3. data/.gitignore +13 -0
  4. data/.rspec +3 -0
  5. data/.travis.yml +7 -0
  6. data/CODE_OF_CONDUCT.md +74 -0
  7. data/Gemfile +6 -0
  8. data/Gemfile.lock +82 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +93 -0
  11. data/Rakefile +6 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/lib/setsuzoku.rb +37 -0
  15. data/lib/setsuzoku/api_response.rb +11 -0
  16. data/lib/setsuzoku/api_strategy.rb +124 -0
  17. data/lib/setsuzoku/auth_strategy.rb +72 -0
  18. data/lib/setsuzoku/credential.rb +37 -0
  19. data/lib/setsuzoku/exception.rb +18 -0
  20. data/lib/setsuzoku/external_api_handler.rb +19 -0
  21. data/lib/setsuzoku/pluggable.rb +87 -0
  22. data/lib/setsuzoku/plugin.rb +128 -0
  23. data/lib/setsuzoku/rspec.rb +2 -0
  24. data/lib/setsuzoku/rspec/dynamic_spec_helper.rb +281 -0
  25. data/lib/setsuzoku/service.rb +70 -0
  26. data/lib/setsuzoku/service/web_service.rb +21 -0
  27. data/lib/setsuzoku/service/web_service/api_strategies/rest_api_request.rb +17 -0
  28. data/lib/setsuzoku/service/web_service/api_strategies/rest_strategy.rb +155 -0
  29. data/lib/setsuzoku/service/web_service/api_strategy.rb +169 -0
  30. data/lib/setsuzoku/service/web_service/auth_strategies/basic_auth_strategy.rb +50 -0
  31. data/lib/setsuzoku/service/web_service/auth_strategies/o_auth_strategy.rb +173 -0
  32. data/lib/setsuzoku/service/web_service/auth_strategy.rb +48 -0
  33. data/lib/setsuzoku/service/web_service/credentials/basic_auth_credential.rb +52 -0
  34. data/lib/setsuzoku/service/web_service/credentials/o_auth_credential.rb +83 -0
  35. data/lib/setsuzoku/service/web_service/service.rb +31 -0
  36. data/lib/setsuzoku/utilities.rb +7 -0
  37. data/lib/setsuzoku/version.rb +6 -0
  38. data/setsuzoku.gemspec +50 -0
  39. data/sorbet/config +2 -0
  40. data/sorbet/rbi/gems/activesupport.rbi +1125 -0
  41. data/sorbet/rbi/gems/addressable.rbi +199 -0
  42. data/sorbet/rbi/gems/concurrent-ruby.rbi +1586 -0
  43. data/sorbet/rbi/gems/crack.rbi +62 -0
  44. data/sorbet/rbi/gems/faraday.rbi +615 -0
  45. data/sorbet/rbi/gems/hashdiff.rbi +66 -0
  46. data/sorbet/rbi/gems/httparty.rbi +401 -0
  47. data/sorbet/rbi/gems/i18n.rbi +133 -0
  48. data/sorbet/rbi/gems/mime-types-data.rbi +17 -0
  49. data/sorbet/rbi/gems/mime-types.rbi +218 -0
  50. data/sorbet/rbi/gems/multi_xml.rbi +35 -0
  51. data/sorbet/rbi/gems/multipart-post.rbi +53 -0
  52. data/sorbet/rbi/gems/nokogiri.rbi +1011 -0
  53. data/sorbet/rbi/gems/public_suffix.rbi +104 -0
  54. data/sorbet/rbi/gems/rake.rbi +646 -0
  55. data/sorbet/rbi/gems/rspec-core.rbi +1893 -0
  56. data/sorbet/rbi/gems/rspec-expectations.rbi +1123 -0
  57. data/sorbet/rbi/gems/rspec-mocks.rbi +1090 -0
  58. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  59. data/sorbet/rbi/gems/rspec.rbi +15 -0
  60. data/sorbet/rbi/gems/safe_yaml.rbi +124 -0
  61. data/sorbet/rbi/gems/thread_safe.rbi +82 -0
  62. data/sorbet/rbi/gems/tzinfo.rbi +406 -0
  63. data/sorbet/rbi/gems/webmock.rbi +532 -0
  64. data/sorbet/rbi/hidden-definitions/hidden.rbi +13722 -0
  65. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +1431 -0
  66. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -0
  67. data/sorbet/rbi/sorbet-typed/lib/httparty/all/httparty.rbi +427 -0
  68. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +108 -0
  69. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
  70. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
  71. data/sorbet/rbi/todo.rbi +11 -0
  72. metadata +255 -0
@@ -0,0 +1,2 @@
1
+ --dir
2
+ .
@@ -0,0 +1,1125 @@
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/activesupport/all/activesupport.rbi
9
+ #
10
+ # activesupport-5.2.4.3
11
+
12
+ class Array
13
+ def as_json(options = nil); end
14
+ def blank?; end
15
+ def extract_options!; end
16
+ def to_default_s; end
17
+ def to_formatted_s(format = nil); end
18
+ def to_param; end
19
+ def to_query(key); end
20
+ def to_sentence(options = nil); end
21
+ def to_xml(options = nil); end
22
+ end
23
+ class Regexp
24
+ def as_json(options = nil); end
25
+ def multiline?; end
26
+ end
27
+ class Hash
28
+ def _deep_transform_keys_in_object!(object, &block); end
29
+ def _deep_transform_keys_in_object(object, &block); end
30
+ def as_json(options = nil); end
31
+ def assert_valid_keys(*valid_keys); end
32
+ def blank?; end
33
+ def deep_merge!(other_hash, &block); end
34
+ def deep_merge(other_hash, &block); end
35
+ def deep_stringify_keys!; end
36
+ def deep_stringify_keys; end
37
+ def deep_symbolize_keys!; end
38
+ def deep_symbolize_keys; end
39
+ def deep_transform_keys!(&block); end
40
+ def deep_transform_keys(&block); end
41
+ def except!(*keys); end
42
+ def except(*keys); end
43
+ def extract!(*keys); end
44
+ def extractable_options?; end
45
+ def nested_under_indifferent_access; end
46
+ def reverse_merge!(other_hash); end
47
+ def reverse_merge(other_hash); end
48
+ def reverse_update(other_hash); end
49
+ def slice!(*keys); end
50
+ def stringify_keys!; end
51
+ def stringify_keys; end
52
+ def symbolize_keys!; end
53
+ def symbolize_keys; end
54
+ def to_options!; end
55
+ def to_options; end
56
+ def to_param(namespace = nil); end
57
+ def to_query(namespace = nil); end
58
+ def with_defaults!(other_hash); end
59
+ def with_defaults(other_hash); end
60
+ def with_indifferent_access; end
61
+ end
62
+ module ActiveSupport
63
+ def parse_json_times; end
64
+ def parse_json_times=(obj); end
65
+ def self.eager_load!; end
66
+ def self.escape_html_entities_in_json(*args, &block); end
67
+ def self.escape_html_entities_in_json=(arg); end
68
+ def self.gem_version; end
69
+ def self.json_encoder(*args, &block); end
70
+ def self.json_encoder=(arg); end
71
+ def self.parse_json_times; end
72
+ def self.parse_json_times=(obj); end
73
+ def self.test_order; end
74
+ def self.test_order=(obj); end
75
+ def self.time_precision(*args, &block); end
76
+ def self.time_precision=(arg); end
77
+ def self.to_time_preserves_timezone; end
78
+ def self.to_time_preserves_timezone=(value); end
79
+ def self.use_standard_json_time_format(*args, &block); end
80
+ def self.use_standard_json_time_format=(arg); end
81
+ def self.version; end
82
+ def test_order; end
83
+ def test_order=(obj); end
84
+ extend ActiveSupport::Autoload
85
+ extend ActiveSupport::LazyLoadHooks
86
+ end
87
+ module ActiveSupport::LazyLoadHooks
88
+ def execute_hook(name, base, options, block); end
89
+ def on_load(name, options = nil, &block); end
90
+ def run_load_hooks(name, base = nil); end
91
+ def self.extended(base); end
92
+ def with_execution_control(name, block, once); end
93
+ end
94
+ module Kernel
95
+ def class_eval(*args, &block); end
96
+ def enable_warnings; end
97
+ def self.enable_warnings; end
98
+ def self.silence_warnings; end
99
+ def self.suppress(*exception_classes); end
100
+ def self.with_warnings(flag); end
101
+ def silence_warnings; end
102
+ def suppress(*exception_classes); end
103
+ def with_warnings(flag); end
104
+ end
105
+ class Module
106
+ def alias_attribute(new_name, old_name); end
107
+ def cattr_accessor(*syms, instance_reader: nil, instance_writer: nil, instance_accessor: nil, default: nil, &blk); end
108
+ def cattr_reader(*syms, instance_reader: nil, instance_accessor: nil, default: nil); end
109
+ def cattr_writer(*syms, instance_writer: nil, instance_accessor: nil, default: nil); end
110
+ def delegate(*methods, to: nil, prefix: nil, allow_nil: nil); end
111
+ def delegate_missing_to(target); end
112
+ def deprecate(*method_names); end
113
+ def mattr_accessor(*syms, instance_reader: nil, instance_writer: nil, instance_accessor: nil, default: nil, &blk); end
114
+ def mattr_reader(*syms, instance_reader: nil, instance_accessor: nil, default: nil); end
115
+ def mattr_writer(*syms, instance_writer: nil, instance_accessor: nil, default: nil); end
116
+ def method_visibility(method); end
117
+ def redefine_method(method, &block); end
118
+ def redefine_singleton_method(method, &block); end
119
+ def silence_redefinition_of_method(method); end
120
+ end
121
+ class Module::DelegationError < NoMethodError
122
+ end
123
+ class ActiveSupport::Deprecation
124
+ def self.behavior(*args, &block); end
125
+ def self.behavior=(arg); end
126
+ def self.debug(*args, &block); end
127
+ def self.debug=(arg); end
128
+ def self.deprecate_methods(*args, &block); end
129
+ def self.deprecation_horizon(*args, &block); end
130
+ def self.deprecation_horizon=(arg); end
131
+ def self.deprecation_warning(deprecated_method_name, message = nil, caller_backtrace = nil); end
132
+ def self.gem_name(*args, &block); end
133
+ def self.gem_name=(arg); end
134
+ def self.initialize(*args, &block); end
135
+ def self.instance; end
136
+ def self.silence(*args, &block); end
137
+ def self.silenced(*args, &block); end
138
+ def self.silenced=(arg); end
139
+ def self.warn(message = nil, callstack = nil); end
140
+ extend ActiveSupport::Deprecation::InstanceDelegator::ClassMethods
141
+ extend Singleton::SingletonClassMethods
142
+ include ActiveSupport::Deprecation::Behavior
143
+ include ActiveSupport::Deprecation::InstanceDelegator
144
+ include ActiveSupport::Deprecation::MethodWrapper
145
+ include ActiveSupport::Deprecation::Reporting
146
+ include Singleton
147
+ end
148
+ module ActiveSupport::Deprecation::InstanceDelegator
149
+ def self.included(base); end
150
+ end
151
+ module ActiveSupport::Deprecation::InstanceDelegator::ClassMethods
152
+ def include(included_module); end
153
+ def method_added(method_name); end
154
+ end
155
+ module ActiveSupport::Deprecation::InstanceDelegator::OverrideDelegators
156
+ def deprecation_warning(deprecated_method_name, message = nil, caller_backtrace = nil); end
157
+ def warn(message = nil, callstack = nil); end
158
+ end
159
+ module ActiveSupport::Notifications
160
+ def self.instrument(name, payload = nil); end
161
+ def self.instrumenter; end
162
+ def self.notifier; end
163
+ def self.notifier=(arg0); end
164
+ def self.publish(name, *args); end
165
+ def self.subscribe(*args, &block); end
166
+ def self.subscribed(callback, *args, &block); end
167
+ def self.unsubscribe(subscriber_or_name); end
168
+ end
169
+ class ActiveSupport::Notifications::Instrumenter
170
+ def finish(name, payload); end
171
+ def finish_with_state(listeners_state, name, payload); end
172
+ def id; end
173
+ def initialize(notifier); end
174
+ def instrument(name, payload = nil); end
175
+ def start(name, payload); end
176
+ def unique_id; end
177
+ end
178
+ class ActiveSupport::Notifications::Event
179
+ def <<(event); end
180
+ def children; end
181
+ def duration; end
182
+ def end; end
183
+ def end=(arg0); end
184
+ def initialize(name, start, ending, transaction_id, payload); end
185
+ def name; end
186
+ def parent_of?(event); end
187
+ def payload; end
188
+ def time; end
189
+ def transaction_id; end
190
+ end
191
+ class ActiveSupport::Notifications::Fanout
192
+ def finish(name, id, payload, listeners = nil); end
193
+ def initialize; end
194
+ def listeners_for(name); end
195
+ def listening?(name); end
196
+ def lock; end
197
+ def locked?; end
198
+ def publish(name, *args); end
199
+ def start(name, id, payload); end
200
+ def subscribe(pattern = nil, callable = nil, &block); end
201
+ def synchronize(&block); end
202
+ def try_lock; end
203
+ def unlock; end
204
+ def unsubscribe(subscriber_or_name); end
205
+ def wait; end
206
+ include Mutex_m
207
+ end
208
+ module ActiveSupport::Notifications::Fanout::Subscribers
209
+ def self.new(pattern, listener); end
210
+ end
211
+ class ActiveSupport::Notifications::Fanout::Subscribers::Evented
212
+ def finish(name, id, payload); end
213
+ def initialize(pattern, delegate); end
214
+ def matches?(name); end
215
+ def publish(name, *args); end
216
+ def start(name, id, payload); end
217
+ def subscribed_to?(name); end
218
+ end
219
+ class ActiveSupport::Notifications::Fanout::Subscribers::Timed < ActiveSupport::Notifications::Fanout::Subscribers::Evented
220
+ def finish(name, id, payload); end
221
+ def publish(name, *args); end
222
+ def start(name, id, payload); end
223
+ end
224
+ class ActiveSupport::Notifications::Fanout::Subscribers::AllMessages
225
+ def finish(name, id, payload); end
226
+ def initialize(delegate); end
227
+ def matches?(arg0); end
228
+ def publish(name, *args); end
229
+ def start(name, id, payload); end
230
+ def subscribed_to?(name); end
231
+ end
232
+ module ActiveSupport::PerThreadRegistry
233
+ def instance; end
234
+ def method_missing(name, *args, &block); end
235
+ def self.extended(object); end
236
+ end
237
+ class ActiveSupport::Notifications::InstrumentationRegistry
238
+ def initialize; end
239
+ def instrumenter_for(notifier); end
240
+ extend ActiveSupport::PerThreadRegistry
241
+ end
242
+ class ActiveSupport::DeprecationException < StandardError
243
+ end
244
+ module ActiveSupport::Deprecation::Behavior
245
+ def arity_coerce(behavior); end
246
+ def behavior; end
247
+ def behavior=(behavior); end
248
+ def debug; end
249
+ def debug=(arg0); end
250
+ end
251
+ module ActiveSupport::Deprecation::Reporting
252
+ def _extract_callstack(callstack); end
253
+ def deprecated_method_warning(method_name, message = nil); end
254
+ def deprecation_caller_message(callstack); end
255
+ def deprecation_message(callstack, message = nil); end
256
+ def deprecation_warning(deprecated_method_name, message = nil, caller_backtrace = nil); end
257
+ def extract_callstack(callstack); end
258
+ def gem_name; end
259
+ def gem_name=(arg0); end
260
+ def ignored_callstack(path); end
261
+ def silence; end
262
+ def silenced; end
263
+ def silenced=(arg0); end
264
+ def warn(message = nil, callstack = nil); end
265
+ end
266
+ module ActiveSupport::Deprecation::DeprecatedConstantAccessor
267
+ def self.included(base); end
268
+ end
269
+ module ActiveSupport::Deprecation::MethodWrapper
270
+ def deprecate_methods(target_module, *method_names); end
271
+ end
272
+ class ActiveSupport::Deprecation::DeprecationProxy
273
+ def inspect; end
274
+ def method_missing(called, *args, &block); end
275
+ def self.new(*args, &block); end
276
+ end
277
+ class ActiveSupport::Deprecation::DeprecatedObjectProxy < ActiveSupport::Deprecation::DeprecationProxy
278
+ def initialize(object, message, deprecator = nil); end
279
+ def target; end
280
+ def warn(callstack, called, args); end
281
+ end
282
+ class ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy < ActiveSupport::Deprecation::DeprecationProxy
283
+ def initialize(instance, method, var = nil, deprecator = nil); end
284
+ def target; end
285
+ def warn(callstack, called, args); end
286
+ end
287
+ class ActiveSupport::Deprecation::DeprecatedConstantProxy < ActiveSupport::Deprecation::DeprecationProxy
288
+ def class; end
289
+ def initialize(old_const, new_const, deprecator = nil, message: nil); end
290
+ def target; end
291
+ def warn(callstack, called, args); end
292
+ end
293
+ module ActiveSupport::Inflector
294
+ def apply_inflections(word, rules, locale = nil); end
295
+ def camelize(term, uppercase_first_letter = nil); end
296
+ def classify(table_name); end
297
+ def const_regexp(camel_cased_word); end
298
+ def constantize(camel_cased_word); end
299
+ def dasherize(underscored_word); end
300
+ def deconstantize(path); end
301
+ def demodulize(path); end
302
+ def foreign_key(class_name, separate_class_name_and_id_with_underscore = nil); end
303
+ def humanize(lower_case_and_underscored_word, capitalize: nil, keep_id_suffix: nil); end
304
+ def inflections(locale = nil); end
305
+ def ordinal(number); end
306
+ def ordinalize(number); end
307
+ def parameterize(string, separator: nil, preserve_case: nil); end
308
+ def pluralize(word, locale = nil); end
309
+ def safe_constantize(camel_cased_word); end
310
+ def singularize(word, locale = nil); end
311
+ def tableize(class_name); end
312
+ def titleize(word, keep_id_suffix: nil); end
313
+ def transliterate(string, replacement = nil); end
314
+ def underscore(camel_cased_word); end
315
+ def upcase_first(string); end
316
+ extend ActiveSupport::Inflector
317
+ extend ActiveSupport::Inflector
318
+ end
319
+ class ActiveSupport::Inflector::Inflections
320
+ def acronym(word); end
321
+ def acronym_regex(*args, &block); end
322
+ def acronym_regex_with_deprecation(*args, &block); end
323
+ def acronym_regex_without_deprecation; end
324
+ def acronyms; end
325
+ def acronyms_camelize_regex; end
326
+ def acronyms_underscore_regex; end
327
+ def clear(scope = nil); end
328
+ def define_acronym_regex_patterns; end
329
+ def human(rule, replacement); end
330
+ def humans; end
331
+ def initialize; end
332
+ def initialize_dup(orig); end
333
+ def irregular(singular, plural); end
334
+ def plural(rule, replacement); end
335
+ def plurals; end
336
+ def self.instance(locale = nil); end
337
+ def singular(rule, replacement); end
338
+ def singulars; end
339
+ def uncountable(*words); end
340
+ def uncountables; end
341
+ end
342
+ class ActiveSupport::Inflector::Inflections::Uncountables < Array
343
+ def <<(*word); end
344
+ def add(words); end
345
+ def delete(entry); end
346
+ def initialize; end
347
+ def to_regex(string); end
348
+ def uncountable?(str); end
349
+ end
350
+ module ActiveSupport::Autoload
351
+ def autoload(const_name, path = nil); end
352
+ def autoload_at(path); end
353
+ def autoload_under(path); end
354
+ def autoloads; end
355
+ def eager_autoload; end
356
+ def eager_load!; end
357
+ def self.extended(base); end
358
+ end
359
+ module ActiveSupport::VERSION
360
+ end
361
+ module ActiveSupport::Concern
362
+ def append_features(base); end
363
+ def class_methods(&class_methods_module_definition); end
364
+ def included(base = nil, &block); end
365
+ def self.extended(base); end
366
+ end
367
+ class ActiveSupport::Concern::MultipleIncludedBlocks < StandardError
368
+ def initialize; end
369
+ end
370
+ module LoggerSilence
371
+ def silence(temporary_level = nil); end
372
+ extend ActiveSupport::Concern
373
+ end
374
+ module ActiveSupport::LoggerThreadSafeLevel
375
+ def after_initialize; end
376
+ def level; end
377
+ def local_level; end
378
+ def local_level=(level); end
379
+ def local_log_id; end
380
+ extend ActiveSupport::Concern
381
+ end
382
+ class ActiveSupport::Logger < Logger
383
+ def add(severity, message = nil, progname = nil, &block); end
384
+ def debug?; end
385
+ def error?; end
386
+ def fatal?; end
387
+ def info?; end
388
+ def initialize(*args); end
389
+ def self.broadcast(logger); end
390
+ def self.logger_outputs_to?(logger, *sources); end
391
+ def self.silencer; end
392
+ def self.silencer=(obj); end
393
+ def silencer; end
394
+ def silencer=(obj); end
395
+ def unknown?; end
396
+ def warn?; end
397
+ include ActiveSupport::LoggerThreadSafeLevel
398
+ include LoggerSilence
399
+ end
400
+ class ActiveSupport::Logger::SimpleFormatter < Logger::Formatter
401
+ def call(severity, timestamp, progname, msg); end
402
+ end
403
+ module DateAndTime
404
+ end
405
+ module DateAndTime::Compatibility
406
+ def preserve_timezone; end
407
+ def self.preserve_timezone; end
408
+ def self.preserve_timezone=(obj); end
409
+ end
410
+ module ActiveSupport::JSON
411
+ def self.convert_dates_from(data); end
412
+ def self.decode(json); end
413
+ def self.encode(value, options = nil); end
414
+ def self.parse_error; end
415
+ end
416
+ module ActiveSupport::BigDecimalWithDefaultFormat
417
+ def to_s(format = nil); end
418
+ end
419
+ class Object < BasicObject
420
+ def acts_like?(duck); end
421
+ def as_json(options = nil); end
422
+ def blank?; end
423
+ def instance_values; end
424
+ def instance_variable_names; end
425
+ def presence; end
426
+ def present?; end
427
+ def to_param; end
428
+ def to_query(key); end
429
+ include ActiveSupport::Tryable
430
+ end
431
+ class NilClass
432
+ def as_json(options = nil); end
433
+ def blank?; end
434
+ def to_param; end
435
+ def try!(*args); end
436
+ def try(*args); end
437
+ end
438
+ class FalseClass
439
+ def as_json(options = nil); end
440
+ def blank?; end
441
+ def to_param; end
442
+ end
443
+ class TrueClass
444
+ def as_json(options = nil); end
445
+ def blank?; end
446
+ def to_param; end
447
+ end
448
+ class String
449
+ def as_json(options = nil); end
450
+ def at(position); end
451
+ def blank?; end
452
+ def camelcase(first_letter = nil); end
453
+ def camelize(first_letter = nil); end
454
+ def classify; end
455
+ def constantize; end
456
+ def dasherize; end
457
+ def deconstantize; end
458
+ def demodulize; end
459
+ def first(limit = nil); end
460
+ def foreign_key(separate_class_name_and_id_with_underscore = nil); end
461
+ def from(position); end
462
+ def humanize(capitalize: nil, keep_id_suffix: nil); end
463
+ def is_utf8?; end
464
+ def last(limit = nil); end
465
+ def mb_chars; end
466
+ def parameterize(separator: nil, preserve_case: nil); end
467
+ def pluralize(count = nil, locale = nil); end
468
+ def remove!(*patterns); end
469
+ def remove(*patterns); end
470
+ def safe_constantize; end
471
+ def singularize(locale = nil); end
472
+ def squish!; end
473
+ def squish; end
474
+ def tableize; end
475
+ def titlecase(keep_id_suffix: nil); end
476
+ def titleize(keep_id_suffix: nil); end
477
+ def to(position); end
478
+ def truncate(truncate_at, options = nil); end
479
+ def truncate_words(words_count, options = nil); end
480
+ def underscore; end
481
+ def upcase_first; end
482
+ end
483
+ class Numeric
484
+ def as_json(options = nil); end
485
+ def blank?; end
486
+ def day; end
487
+ def days; end
488
+ def fortnight; end
489
+ def fortnights; end
490
+ def hour; end
491
+ def hours; end
492
+ def in_milliseconds; end
493
+ def minute; end
494
+ def minutes; end
495
+ def second; end
496
+ def seconds; end
497
+ def week; end
498
+ def weeks; end
499
+ end
500
+ class Time
501
+ def acts_like_time?; end
502
+ def advance(options); end
503
+ def ago(seconds); end
504
+ def as_json(options = nil); end
505
+ def at_beginning_of_day; end
506
+ def at_beginning_of_hour; end
507
+ def at_beginning_of_minute; end
508
+ def at_end_of_day; end
509
+ def at_end_of_hour; end
510
+ def at_end_of_minute; end
511
+ def at_midday; end
512
+ def at_middle_of_day; end
513
+ def at_midnight; end
514
+ def at_noon; end
515
+ def beginning_of_day; end
516
+ def beginning_of_hour; end
517
+ def beginning_of_minute; end
518
+ def blank?; end
519
+ def change(options); end
520
+ def compare_with_coercion(other); end
521
+ def compare_without_coercion(arg0); end
522
+ def end_of_day; end
523
+ def end_of_hour; end
524
+ def end_of_minute; end
525
+ def eql_with_coercion(other); end
526
+ def eql_without_coercion(arg0); end
527
+ def formatted_offset(colon = nil, alternate_utc_string = nil); end
528
+ def in(seconds); end
529
+ def midday; end
530
+ def middle_of_day; end
531
+ def midnight; end
532
+ def minus_with_coercion(other); end
533
+ def minus_with_duration(other); end
534
+ def minus_without_coercion(other); end
535
+ def minus_without_duration(arg0); end
536
+ def noon; end
537
+ def plus_with_duration(other); end
538
+ def plus_without_duration(arg0); end
539
+ def rfc3339(fraction_digits = nil); end
540
+ def sec_fraction; end
541
+ def seconds_since_midnight; end
542
+ def seconds_until_end_of_day; end
543
+ def self.===(other); end
544
+ def self.at_with_coercion(*args); end
545
+ def self.at_without_coercion(*arg0); end
546
+ def self.current; end
547
+ def self.days_in_month(month, year = nil); end
548
+ def self.days_in_year(year = nil); end
549
+ def self.find_zone!(time_zone); end
550
+ def self.find_zone(time_zone); end
551
+ def self.rfc3339(str); end
552
+ def self.use_zone(time_zone); end
553
+ def self.zone; end
554
+ def self.zone=(time_zone); end
555
+ def self.zone_default; end
556
+ def self.zone_default=(arg0); end
557
+ def since(seconds); end
558
+ def to_default_s; end
559
+ def to_formatted_s(format = nil); end
560
+ include DateAndTime::Calculations
561
+ include DateAndTime::Zones
562
+ end
563
+ class ActiveSupport::TimeZone
564
+ def <=>(zone); end
565
+ def =~(re); end
566
+ def at(secs); end
567
+ def encode_with(coder); end
568
+ def formatted_offset(colon = nil, alternate_utc_string = nil); end
569
+ def init_with(coder); end
570
+ def initialize(name, utc_offset = nil, tzinfo = nil); end
571
+ def iso8601(str); end
572
+ def local(*args); end
573
+ def local_to_utc(time, dst = nil); end
574
+ def name; end
575
+ def now; end
576
+ def parse(str, now = nil); end
577
+ def parts_to_time(parts, now); end
578
+ def period_for_local(time, dst = nil); end
579
+ def period_for_utc(time); end
580
+ def periods_for_local(time); end
581
+ def rfc3339(str); end
582
+ def self.[](arg); end
583
+ def self.all; end
584
+ def self.clear; end
585
+ def self.country_zones(country_code); end
586
+ def self.create(*arg0); end
587
+ def self.find_tzinfo(name); end
588
+ def self.load_country_zones(code); end
589
+ def self.new(name); end
590
+ def self.seconds_to_utc_offset(seconds, colon = nil); end
591
+ def self.us_zones; end
592
+ def self.zones_map; end
593
+ def strptime(str, format, now = nil); end
594
+ def time_now; end
595
+ def to_s; end
596
+ def today; end
597
+ def tomorrow; end
598
+ def tzinfo; end
599
+ def utc_offset; end
600
+ def utc_to_local(time); end
601
+ def yesterday; end
602
+ include Comparable
603
+ end
604
+ class DateTime < Date
605
+ def <=>(other); end
606
+ def advance(options); end
607
+ def ago(seconds); end
608
+ def as_json(options = nil); end
609
+ def at_beginning_of_day; end
610
+ def at_beginning_of_hour; end
611
+ def at_beginning_of_minute; end
612
+ def at_end_of_day; end
613
+ def at_end_of_hour; end
614
+ def at_end_of_minute; end
615
+ def at_midday; end
616
+ def at_middle_of_day; end
617
+ def at_midnight; end
618
+ def at_noon; end
619
+ def beginning_of_day; end
620
+ def beginning_of_hour; end
621
+ def beginning_of_minute; end
622
+ def change(options); end
623
+ def default_inspect; end
624
+ def end_of_day; end
625
+ def end_of_hour; end
626
+ def end_of_minute; end
627
+ def formatted_offset(colon = nil, alternate_utc_string = nil); end
628
+ def getgm; end
629
+ def getlocal(utc_offset = nil); end
630
+ def getutc; end
631
+ def gmtime; end
632
+ def in(seconds); end
633
+ def inspect; end
634
+ def localtime(utc_offset = nil); end
635
+ def midday; end
636
+ def middle_of_day; end
637
+ def midnight; end
638
+ def noon; end
639
+ def nsec; end
640
+ def offset_in_seconds; end
641
+ def readable_inspect; end
642
+ def seconds_since_midnight; end
643
+ def seconds_since_unix_epoch; end
644
+ def seconds_until_end_of_day; end
645
+ def self.civil_from_format(utc_or_local, year, month = nil, day = nil, hour = nil, min = nil, sec = nil); end
646
+ def self.current; end
647
+ def since(seconds); end
648
+ def subsec; end
649
+ def to_default_s; end
650
+ def to_f; end
651
+ def to_formatted_s(format = nil); end
652
+ def to_i; end
653
+ def usec; end
654
+ def utc; end
655
+ def utc?; end
656
+ def utc_offset; end
657
+ end
658
+ module DateAndTime::Zones
659
+ def in_time_zone(zone = nil); end
660
+ def time_with_zone(time, zone); end
661
+ end
662
+ class Date
663
+ def acts_like_date?; end
664
+ def advance(options); end
665
+ def ago(seconds); end
666
+ def as_json(options = nil); end
667
+ def at_beginning_of_day; end
668
+ def at_end_of_day; end
669
+ def at_midday; end
670
+ def at_middle_of_day; end
671
+ def at_midnight; end
672
+ def at_noon; end
673
+ def beginning_of_day; end
674
+ def change(options); end
675
+ def compare_with_coercion(other); end
676
+ def compare_without_coercion(arg0); end
677
+ def default_inspect; end
678
+ def end_of_day; end
679
+ def in(seconds); end
680
+ def midday; end
681
+ def middle_of_day; end
682
+ def midnight; end
683
+ def minus_with_duration(other); end
684
+ def minus_without_duration(arg0); end
685
+ def noon; end
686
+ def plus_with_duration(other); end
687
+ def plus_without_duration(arg0); end
688
+ def readable_inspect; end
689
+ def self.beginning_of_week; end
690
+ def self.beginning_of_week=(week_start); end
691
+ def self.beginning_of_week_default; end
692
+ def self.beginning_of_week_default=(arg0); end
693
+ def self.current; end
694
+ def self.find_beginning_of_week!(week_start); end
695
+ def self.tomorrow; end
696
+ def self.yesterday; end
697
+ def since(seconds); end
698
+ def to_default_s; end
699
+ def to_formatted_s(format = nil); end
700
+ include DateAndTime::Calculations
701
+ include DateAndTime::Zones
702
+ end
703
+ module ActiveSupport::ToJsonWithActiveSupportEncoder
704
+ def to_json(options = nil); end
705
+ end
706
+ class Struct
707
+ def as_json(options = nil); end
708
+ end
709
+ class Symbol
710
+ def as_json(options = nil); end
711
+ end
712
+ class Float < Numeric
713
+ def as_json(options = nil); end
714
+ end
715
+ class BigDecimal < Numeric
716
+ def as_json(options = nil); end
717
+ end
718
+ module Enumerable
719
+ def as_json(options = nil); end
720
+ end
721
+ class IO
722
+ def as_json(options = nil); end
723
+ end
724
+ class Range
725
+ def as_json(options = nil); end
726
+ end
727
+ class URI::Generic
728
+ def as_json(options = nil); end
729
+ end
730
+ class Pathname
731
+ def as_json(options = nil); end
732
+ end
733
+ class Process::Status
734
+ def as_json(options = nil); end
735
+ end
736
+ class Exception
737
+ def as_json(options = nil); end
738
+ end
739
+ module ActiveSupport::JSON::Encoding
740
+ def self.escape_html_entities_in_json; end
741
+ def self.escape_html_entities_in_json=(arg0); end
742
+ def self.json_encoder; end
743
+ def self.json_encoder=(arg0); end
744
+ def self.time_precision; end
745
+ def self.time_precision=(arg0); end
746
+ def self.use_standard_json_time_format; end
747
+ def self.use_standard_json_time_format=(arg0); end
748
+ end
749
+ class ActiveSupport::JSON::Encoding::JSONGemEncoder
750
+ def encode(value); end
751
+ def initialize(options = nil); end
752
+ def jsonify(value); end
753
+ def options; end
754
+ def stringify(jsonified); end
755
+ end
756
+ class ActiveSupport::JSON::Encoding::JSONGemEncoder::EscapedString < String
757
+ def to_json(*arg0); end
758
+ def to_s; end
759
+ end
760
+ class ActiveSupport::HashWithIndifferentAccess < Hash
761
+ def [](key); end
762
+ def []=(key, value); end
763
+ def assoc(key); end
764
+ def compact; end
765
+ def convert_key(key); end
766
+ def convert_value(value, options = nil); end
767
+ def deep_stringify_keys!; end
768
+ def deep_stringify_keys; end
769
+ def deep_symbolize_keys; end
770
+ def default(*args); end
771
+ def delete(key); end
772
+ def dig(*args); end
773
+ def dup; end
774
+ def extractable_options?; end
775
+ def fetch(key, *extras); end
776
+ def fetch_values(*indices, &block); end
777
+ def has_key?(key); end
778
+ def include?(key); end
779
+ def initialize(constructor = nil); end
780
+ def key?(key); end
781
+ def member?(key); end
782
+ def merge!(other_hash); end
783
+ def merge(hash, &block); end
784
+ def nested_under_indifferent_access; end
785
+ def regular_update(*arg0); end
786
+ def regular_writer(arg0, arg1); end
787
+ def reject(*args, &block); end
788
+ def replace(other_hash); end
789
+ def reverse_merge!(other_hash); end
790
+ def reverse_merge(other_hash); end
791
+ def select(*args, &block); end
792
+ def self.[](*args); end
793
+ def set_defaults(target); end
794
+ def slice!(*keys); end
795
+ def slice(*keys); end
796
+ def store(key, value); end
797
+ def stringify_keys!; end
798
+ def stringify_keys; end
799
+ def symbolize_keys; end
800
+ def to_hash; end
801
+ def to_options!; end
802
+ def to_options; end
803
+ def transform_keys!; end
804
+ def transform_keys(*args, &block); end
805
+ def transform_values(*args, &block); end
806
+ def update(other_hash); end
807
+ def values_at(*indices); end
808
+ def with_defaults!(other_hash); end
809
+ def with_defaults(other_hash); end
810
+ def with_indifferent_access; end
811
+ end
812
+ module ActiveSupport::Multibyte
813
+ def self.proxy_class; end
814
+ def self.proxy_class=(klass); end
815
+ end
816
+ module ActiveSupport::XmlMini_REXML
817
+ def collapse(element, depth); end
818
+ def empty_content?(element); end
819
+ def get_attributes(element); end
820
+ def merge!(hash, key, value); end
821
+ def merge_element!(hash, element, depth); end
822
+ def merge_texts!(hash, element); end
823
+ def parse(data); end
824
+ extend ActiveSupport::XmlMini_REXML
825
+ end
826
+ module ActiveSupport::XmlMini
827
+ def _dasherize(key); end
828
+ def _parse_binary(bin, entity); end
829
+ def _parse_file(file, entity); end
830
+ def backend; end
831
+ def backend=(name); end
832
+ def cast_backend_name_to_module(name); end
833
+ def current_thread_backend; end
834
+ def current_thread_backend=(name); end
835
+ def depth; end
836
+ def depth=(arg0); end
837
+ def parse(*args, &block); end
838
+ def rename_key(key, options = nil); end
839
+ def to_tag(key, value, options); end
840
+ def with_backend(name); end
841
+ extend ActiveSupport::XmlMini
842
+ end
843
+ module ActiveSupport::XmlMini::FileLike
844
+ def content_type; end
845
+ def content_type=(arg0); end
846
+ def original_filename; end
847
+ def original_filename=(arg0); end
848
+ end
849
+ class ActiveSupport::Duration
850
+ def %(other); end
851
+ def *(other); end
852
+ def +(other); end
853
+ def -(other); end
854
+ def -@; end
855
+ def /(other); end
856
+ def <=>(other); end
857
+ def ==(other); end
858
+ def after(time = nil); end
859
+ def ago(time = nil); end
860
+ def as_json(options = nil); end
861
+ def before(time = nil); end
862
+ def coerce(other); end
863
+ def encode_with(coder); end
864
+ def eql?(other); end
865
+ def from_now(time = nil); end
866
+ def hash; end
867
+ def init_with(coder); end
868
+ def initialize(value, parts); end
869
+ def inspect; end
870
+ def instance_of?(klass); end
871
+ def is_a?(klass); end
872
+ def iso8601(precision: nil); end
873
+ def kind_of?(klass); end
874
+ def method_missing(method, *args, &block); end
875
+ def parts; end
876
+ def parts=(arg0); end
877
+ def raise_type_error(other); end
878
+ def respond_to_missing?(method, _); end
879
+ def self.===(other); end
880
+ def self.build(value); end
881
+ def self.calculate_total_seconds(parts); end
882
+ def self.days(value); end
883
+ def self.hours(value); end
884
+ def self.minutes(value); end
885
+ def self.months(value); end
886
+ def self.parse(iso8601duration); end
887
+ def self.seconds(value); end
888
+ def self.weeks(value); end
889
+ def self.years(value); end
890
+ def since(time = nil); end
891
+ def sum(sign, time = nil); end
892
+ def to_i; end
893
+ def to_s; end
894
+ def until(time = nil); end
895
+ def value; end
896
+ def value=(arg0); end
897
+ end
898
+ class ActiveSupport::Duration::Scalar < Numeric
899
+ def %(other); end
900
+ def *(other); end
901
+ def +(other); end
902
+ def -(other); end
903
+ def -@; end
904
+ def /(other); end
905
+ def <=>(other); end
906
+ def calculate(op, other); end
907
+ def coerce(other); end
908
+ def initialize(value); end
909
+ def raise_type_error(other); end
910
+ def to_f(*args, &block); end
911
+ def to_i(*args, &block); end
912
+ def to_s(*args, &block); end
913
+ def value; end
914
+ end
915
+ class ActiveSupport::TimeWithZone
916
+ def +(other); end
917
+ def -(other); end
918
+ def <=>(other); end
919
+ def acts_like_time?; end
920
+ def advance(options); end
921
+ def ago(other); end
922
+ def as_json(options = nil); end
923
+ def between?(min, max); end
924
+ def blank?; end
925
+ def change(options); end
926
+ def comparable_time; end
927
+ def day; end
928
+ def dst?; end
929
+ def duration_of_variable_length?(obj); end
930
+ def encode_with(coder); end
931
+ def eql?(other); end
932
+ def formatted_offset(colon = nil, alternate_utc_string = nil); end
933
+ def freeze; end
934
+ def future?; end
935
+ def get_period_and_ensure_valid_local_time(period); end
936
+ def getgm; end
937
+ def getlocal(utc_offset = nil); end
938
+ def getutc; end
939
+ def gmt?; end
940
+ def gmt_offset; end
941
+ def gmtime; end
942
+ def gmtoff; end
943
+ def hash; end
944
+ def hour; end
945
+ def httpdate; end
946
+ def in(other); end
947
+ def in_time_zone(new_zone = nil); end
948
+ def init_with(coder); end
949
+ def initialize(utc_time, time_zone, local_time = nil, period = nil); end
950
+ def inspect; end
951
+ def is_a?(klass); end
952
+ def isdst; end
953
+ def iso8601(fraction_digits = nil); end
954
+ def kind_of?(klass); end
955
+ def localtime(utc_offset = nil); end
956
+ def marshal_dump; end
957
+ def marshal_load(variables); end
958
+ def mday; end
959
+ def method_missing(sym, *args, &block); end
960
+ def min; end
961
+ def mon; end
962
+ def month; end
963
+ def nsec; end
964
+ def past?; end
965
+ def period; end
966
+ def respond_to?(sym, include_priv = nil); end
967
+ def respond_to_missing?(sym, include_priv); end
968
+ def rfc2822; end
969
+ def rfc3339(fraction_digits = nil); end
970
+ def rfc822; end
971
+ def sec; end
972
+ def self.name; end
973
+ def since(other); end
974
+ def strftime(format); end
975
+ def time; end
976
+ def time_zone; end
977
+ def to_a; end
978
+ def to_date; end
979
+ def to_datetime; end
980
+ def to_f; end
981
+ def to_formatted_s(format = nil); end
982
+ def to_i; end
983
+ def to_r; end
984
+ def to_s(format = nil); end
985
+ def to_time; end
986
+ def today?; end
987
+ def transfer_time_values_to_utc_constructor(time); end
988
+ def tv_sec; end
989
+ def usec; end
990
+ def utc; end
991
+ def utc?; end
992
+ def utc_offset; end
993
+ def wday; end
994
+ def wrap_with_time_zone(time); end
995
+ def xmlschema(fraction_digits = nil); end
996
+ def yday; end
997
+ def year; end
998
+ def zone; end
999
+ include Comparable
1000
+ end
1001
+ module ActiveSupport::Tryable
1002
+ def try!(*a, &b); end
1003
+ def try(*a, &b); end
1004
+ end
1005
+ class Delegator < BasicObject
1006
+ include ActiveSupport::Tryable
1007
+ end
1008
+ module DateAndTime::Calculations
1009
+ def all_day; end
1010
+ def all_month; end
1011
+ def all_quarter; end
1012
+ def all_week(start_day = nil); end
1013
+ def all_year; end
1014
+ def at_beginning_of_month; end
1015
+ def at_beginning_of_quarter; end
1016
+ def at_beginning_of_week(start_day = nil); end
1017
+ def at_beginning_of_year; end
1018
+ def at_end_of_month; end
1019
+ def at_end_of_quarter; end
1020
+ def at_end_of_week(start_day = nil); end
1021
+ def at_end_of_year; end
1022
+ def beginning_of_month; end
1023
+ def beginning_of_quarter; end
1024
+ def beginning_of_week(start_day = nil); end
1025
+ def beginning_of_year; end
1026
+ def copy_time_to(other); end
1027
+ def days_ago(days); end
1028
+ def days_since(days); end
1029
+ def days_span(day); end
1030
+ def days_to_week_start(start_day = nil); end
1031
+ def end_of_month; end
1032
+ def end_of_quarter; end
1033
+ def end_of_week(start_day = nil); end
1034
+ def end_of_year; end
1035
+ def first_hour(date_or_time); end
1036
+ def future?; end
1037
+ def last_hour(date_or_time); end
1038
+ def last_month; end
1039
+ def last_quarter; end
1040
+ def last_week(start_day = nil, same_time: nil); end
1041
+ def last_weekday; end
1042
+ def last_year; end
1043
+ def monday; end
1044
+ def months_ago(months); end
1045
+ def months_since(months); end
1046
+ def next_day(days = nil); end
1047
+ def next_month(months = nil); end
1048
+ def next_occurring(day_of_week); end
1049
+ def next_quarter; end
1050
+ def next_week(given_day_in_next_week = nil, same_time: nil); end
1051
+ def next_weekday; end
1052
+ def next_year(years = nil); end
1053
+ def on_weekday?; end
1054
+ def on_weekend?; end
1055
+ def past?; end
1056
+ def prev_day(days = nil); end
1057
+ def prev_month(months = nil); end
1058
+ def prev_occurring(day_of_week); end
1059
+ def prev_quarter; end
1060
+ def prev_week(start_day = nil, same_time: nil); end
1061
+ def prev_weekday; end
1062
+ def prev_year(years = nil); end
1063
+ def sunday; end
1064
+ def today?; end
1065
+ def tomorrow; end
1066
+ def weeks_ago(weeks); end
1067
+ def weeks_since(weeks); end
1068
+ def years_ago(years); end
1069
+ def years_since(years); end
1070
+ def yesterday; end
1071
+ end
1072
+ class Class < Module
1073
+ def class_attribute(*attrs); end
1074
+ def descendants; end
1075
+ def subclasses; end
1076
+ end
1077
+ module ActiveSupport::NumberHelper
1078
+ def number_to_currency(number, options = nil); end
1079
+ def number_to_delimited(number, options = nil); end
1080
+ def number_to_human(number, options = nil); end
1081
+ def number_to_human_size(number, options = nil); end
1082
+ def number_to_percentage(number, options = nil); end
1083
+ def number_to_phone(number, options = nil); end
1084
+ def number_to_rounded(number, options = nil); end
1085
+ extend ActiveSupport::Autoload
1086
+ extend ActiveSupport::NumberHelper
1087
+ end
1088
+ class ActiveSupport::NumberHelper::NumberConverter
1089
+ def default_format_options; end
1090
+ def default_value(key); end
1091
+ def execute; end
1092
+ def format_options; end
1093
+ def i18n_format_options; end
1094
+ def initialize(number, options); end
1095
+ def namespace; end
1096
+ def namespace=(val); end
1097
+ def namespace?; end
1098
+ def number; end
1099
+ def options; end
1100
+ def opts; end
1101
+ def self.convert(number, options); end
1102
+ def self.namespace; end
1103
+ def self.namespace=(val); end
1104
+ def self.namespace?; end
1105
+ def self.validate_float; end
1106
+ def self.validate_float=(val); end
1107
+ def self.validate_float?; end
1108
+ def translate_in_locale(key, i18n_options = nil); end
1109
+ def translate_number_value_with_default(key, i18n_options = nil); end
1110
+ def valid_float?; end
1111
+ def validate_float; end
1112
+ def validate_float=(val); end
1113
+ def validate_float?; end
1114
+ end
1115
+ class ActiveSupport::NumberHelper::NumberToPhoneConverter < ActiveSupport::NumberHelper::NumberConverter
1116
+ def convert; end
1117
+ def convert_to_phone_number(number); end
1118
+ def convert_with_area_code(number); end
1119
+ def convert_without_area_code(number); end
1120
+ def country_code(code); end
1121
+ def delimiter; end
1122
+ def phone_ext(ext); end
1123
+ def regexp_pattern(default_pattern); end
1124
+ def start_with_delimiter?(number); end
1125
+ end