workos 0.10.1 → 0.11.0

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 (101) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -1
  3. data/.ruby-version +1 -1
  4. data/.semaphore/semaphore.yml +8 -2
  5. data/Gemfile.lock +49 -36
  6. data/lib/workos/client.rb +3 -3
  7. data/lib/workos/connection.rb +8 -1
  8. data/lib/workos/directory.rb +53 -0
  9. data/lib/workos/directory_group.rb +44 -0
  10. data/lib/workos/directory_sync.rb +63 -7
  11. data/lib/workos/directory_user.rb +60 -0
  12. data/lib/workos/portal.rb +1 -1
  13. data/lib/workos/profile.rb +1 -2
  14. data/lib/workos/sso.rb +31 -6
  15. data/lib/workos/types/connection_struct.rb +2 -0
  16. data/lib/workos/types/directory_group_struct.rb +13 -0
  17. data/lib/workos/types/directory_struct.rb +16 -0
  18. data/lib/workos/types/directory_user_struct.rb +18 -0
  19. data/lib/workos/types/intent_enum.rb +1 -0
  20. data/lib/workos/types.rb +3 -0
  21. data/lib/workos/version.rb +1 -1
  22. data/lib/workos.rb +3 -0
  23. data/sorbet/rbi/gems/addressable.rbi +199 -0
  24. data/sorbet/rbi/gems/ast.rbi +49 -0
  25. data/sorbet/rbi/gems/codecov.rbi +37 -0
  26. data/sorbet/rbi/gems/crack.rbi +62 -0
  27. data/sorbet/rbi/gems/docile.rbi +36 -0
  28. data/sorbet/rbi/gems/hashdiff.rbi +66 -0
  29. data/sorbet/rbi/gems/parallel.rbi +83 -0
  30. data/sorbet/rbi/gems/parser.rbi +1429 -0
  31. data/sorbet/rbi/gems/public_suffix.rbi +104 -0
  32. data/sorbet/rbi/gems/rainbow.rbi +118 -0
  33. data/sorbet/rbi/gems/rake.rbi +644 -0
  34. data/sorbet/rbi/gems/regexp_parser.rbi +926 -0
  35. data/sorbet/rbi/gems/rexml.rbi +628 -0
  36. data/sorbet/rbi/gems/rspec-core.rbi +1898 -0
  37. data/sorbet/rbi/gems/rspec-expectations.rbi +1127 -0
  38. data/sorbet/rbi/gems/rspec-mocks.rbi +1099 -0
  39. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  40. data/sorbet/rbi/gems/rspec.rbi +15 -0
  41. data/sorbet/rbi/gems/rubocop-ast.rbi +1355 -0
  42. data/sorbet/rbi/gems/rubocop.rbi +7253 -0
  43. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  44. data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
  45. data/sorbet/rbi/gems/simplecov.rbi +406 -0
  46. data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
  47. data/sorbet/rbi/gems/vcr.rbi +572 -0
  48. data/sorbet/rbi/gems/webmock.rbi +556 -0
  49. data/sorbet/rbi/gems/yard.rbi +1165 -0
  50. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
  51. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +1891 -0
  52. data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +2072 -0
  53. data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +1214 -0
  54. data/sorbet/rbi/todo.rbi +1 -3
  55. data/spec/lib/workos/audit_trail_spec.rb +0 -8
  56. data/spec/lib/workos/directory_sync_spec.rb +347 -40
  57. data/spec/lib/workos/passwordless_spec.rb +0 -8
  58. data/spec/lib/workos/portal_spec.rb +18 -11
  59. data/spec/lib/workos/sso_spec.rb +141 -76
  60. data/spec/spec_helper.rb +2 -1
  61. data/spec/support/fixtures/vcr_cassettes/directory_sync/delete_directory.yml +72 -0
  62. data/spec/support/fixtures/vcr_cassettes/{sso/list_connections.yml → directory_sync/list_directories/with_after.yml} +7 -7
  63. data/spec/support/fixtures/vcr_cassettes/{sso/list_connections_with_limit_param.yml → directory_sync/list_directories/with_before.yml} +8 -8
  64. data/spec/support/fixtures/vcr_cassettes/{sso/list_connections_with_connection_type_param.yml → directory_sync/list_directories/with_domain.yml} +11 -10
  65. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_limit.yml +74 -0
  66. data/spec/support/fixtures/vcr_cassettes/directory_sync/{list_directories.yml → list_directories/with_no_options.yml} +1 -1
  67. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories/with_search.yml +73 -0
  68. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_after.yml +76 -0
  69. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_before.yml +74 -0
  70. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_directory.yml +78 -0
  71. data/spec/support/fixtures/vcr_cassettes/{sso/list_connections_with_before_param.yml → directory_sync/list_groups/with_limit.yml} +12 -11
  72. data/spec/support/fixtures/vcr_cassettes/directory_sync/{list_groups.yml → list_groups/with_no_options.yml} +16 -6
  73. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups/with_user.yml +72 -0
  74. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_after.yml +86 -0
  75. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_before.yml +75 -0
  76. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_directory.yml +93 -0
  77. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_group.yml +76 -0
  78. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users/with_limit.yml +75 -0
  79. data/spec/support/fixtures/vcr_cassettes/directory_sync/{list_users.yml → list_users/with_no_options.yml} +16 -6
  80. data/spec/support/fixtures/vcr_cassettes/portal/generate_link_dsync.yml +72 -0
  81. data/spec/support/fixtures/vcr_cassettes/portal/{generate_link.yml → generate_link_sso.yml} +1 -1
  82. data/spec/support/fixtures/vcr_cassettes/sso/create_connection_with_valid_source.yml +3 -3
  83. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_after.yml +73 -0
  84. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_before.yml +73 -0
  85. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_connection_type.yml +73 -0
  86. data/spec/support/fixtures/vcr_cassettes/sso/{list_connections_with_domain_param.yml → list_connections/with_domain.yml} +6 -6
  87. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_limit.yml +74 -0
  88. data/spec/support/fixtures/vcr_cassettes/sso/list_connections/with_no_options.yml +73 -0
  89. data/spec/support/fixtures/vcr_cassettes/sso/{list_connections_with_organization_id_param.yml → list_connections/with_organization_id.yml} +6 -6
  90. data/workos.gemspec +2 -0
  91. metadata +101 -42
  92. data/sorbet/rbi/hidden-definitions/errors.txt +0 -24896
  93. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -38411
  94. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8684
  95. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +0 -4222
  96. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
  97. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
  98. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_directories_with_domain_param.yml +0 -63
  99. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_groups_with_directory_param.yml +0 -62
  100. data/spec/support/fixtures/vcr_cassettes/directory_sync/list_users_with_directory_param.yml +0 -62
  101. data/spec/support/fixtures/vcr_cassettes/sso/list_connections_with_after_param.yml +0 -72
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ module WorkOS
5
+ module Types
6
+ # This DirectoryStruct acts as a typed interface
7
+ # for the Directory class
8
+ class DirectoryStruct < T::Struct
9
+ const :id, String
10
+ const :name, String
11
+ const :domain, String
12
+ const :type, String
13
+ const :state, String
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+ # typed: strict
3
+
4
+ module WorkOS
5
+ module Types
6
+ # The DirectoryUserStruct acts as a typed interface
7
+ # for the DirectoryUser class
8
+ class DirectoryUserStruct < T::Struct
9
+ const :id, String
10
+ const :emails, T::Array[T.untyped]
11
+ const :first_name, T.nilable(String)
12
+ const :last_name, T.nilable(String)
13
+ const :username, T.nilable(String)
14
+ const :state, T.nilable(String)
15
+ const :raw_attributes, T::Hash[Symbol, Object]
16
+ end
17
+ end
18
+ end
@@ -8,6 +8,7 @@ module WorkOS
8
8
  class Intent < T::Enum
9
9
  enums do
10
10
  SSO = new('sso')
11
+ DSYNC = new('dsync')
11
12
  end
12
13
  end
13
14
  end
data/lib/workos/types.rb CHANGED
@@ -6,11 +6,14 @@ module WorkOS
6
6
  # so we're using Sorbet throughout this Ruby gem.
7
7
  module Types
8
8
  require_relative 'types/connection_struct'
9
+ require_relative 'types/directory_struct'
10
+ require_relative 'types/directory_group_struct'
9
11
  require_relative 'types/intent_enum'
10
12
  require_relative 'types/list_struct'
11
13
  require_relative 'types/organization_struct'
12
14
  require_relative 'types/passwordless_session_struct'
13
15
  require_relative 'types/profile_struct'
14
16
  require_relative 'types/provider_enum'
17
+ require_relative 'types/directory_user_struct'
15
18
  end
16
19
  end
@@ -2,5 +2,5 @@
2
2
  # typed: strong
3
3
 
4
4
  module WorkOS
5
- VERSION = '0.10.1'
5
+ VERSION = '0.11.0'
6
6
  end
data/lib/workos.rb CHANGED
@@ -32,11 +32,14 @@ module WorkOS
32
32
  autoload :AuditTrail, 'workos/audit_trail'
33
33
  autoload :Connection, 'workos/connection'
34
34
  autoload :DirectorySync, 'workos/directory_sync'
35
+ autoload :Directory, 'workos/directory'
36
+ autoload :DirectoryGroup, 'workos/directory_group'
35
37
  autoload :Organization, 'workos/organization'
36
38
  autoload :Passwordless, 'workos/passwordless'
37
39
  autoload :Portal, 'workos/portal'
38
40
  autoload :Profile, 'workos/profile'
39
41
  autoload :SSO, 'workos/sso'
42
+ autoload :DirectoryUser, 'workos/directory_user'
40
43
 
41
44
  # Errors
42
45
  autoload :APIError, 'workos/errors'
@@ -0,0 +1,199 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/addressable/all/addressable.rbi
9
+ #
10
+ # addressable-2.7.0
11
+
12
+ module Addressable
13
+ end
14
+ module Addressable::VERSION
15
+ end
16
+ module Addressable::IDNA
17
+ def self.lookup_unicode_combining_class(codepoint); end
18
+ def self.lookup_unicode_compatibility(codepoint); end
19
+ def self.lookup_unicode_composition(unpacked); end
20
+ def self.lookup_unicode_lowercase(codepoint); end
21
+ def self.punycode_adapt(delta, numpoints, firsttime); end
22
+ def self.punycode_basic?(codepoint); end
23
+ def self.punycode_decode(punycode); end
24
+ def self.punycode_decode_digit(codepoint); end
25
+ def self.punycode_delimiter?(codepoint); end
26
+ def self.punycode_encode(unicode); end
27
+ def self.punycode_encode_digit(d); end
28
+ def self.to_ascii(input); end
29
+ def self.to_unicode(input); end
30
+ def self.unicode_compose(unpacked); end
31
+ def self.unicode_compose_pair(ch_one, ch_two); end
32
+ def self.unicode_decompose(unpacked); end
33
+ def self.unicode_decompose_hangul(codepoint); end
34
+ def self.unicode_downcase(input); end
35
+ def self.unicode_normalize_kc(input); end
36
+ def self.unicode_sort_canonical(unpacked); end
37
+ end
38
+ class Addressable::IDNA::PunycodeBadInput < StandardError
39
+ end
40
+ class Addressable::IDNA::PunycodeBigOutput < StandardError
41
+ end
42
+ class Addressable::IDNA::PunycodeOverflow < StandardError
43
+ end
44
+ class Addressable::URI
45
+ def +(uri); end
46
+ def ==(uri); end
47
+ def ===(uri); end
48
+ def absolute?; end
49
+ def authority; end
50
+ def authority=(new_authority); end
51
+ def basename; end
52
+ def default_port; end
53
+ def defer_validation; end
54
+ def display_uri; end
55
+ def domain; end
56
+ def dup; end
57
+ def empty?; end
58
+ def eql?(uri); end
59
+ def extname; end
60
+ def fragment; end
61
+ def fragment=(new_fragment); end
62
+ def freeze; end
63
+ def hash; end
64
+ def host; end
65
+ def host=(new_host); end
66
+ def hostname; end
67
+ def hostname=(new_hostname); end
68
+ def inferred_port; end
69
+ def initialize(options = nil); end
70
+ def inspect; end
71
+ def ip_based?; end
72
+ def join!(uri); end
73
+ def join(uri); end
74
+ def merge!(uri); end
75
+ def merge(hash); end
76
+ def normalize!; end
77
+ def normalize; end
78
+ def normalized_authority; end
79
+ def normalized_fragment; end
80
+ def normalized_host; end
81
+ def normalized_password; end
82
+ def normalized_path; end
83
+ def normalized_port; end
84
+ def normalized_query(*flags); end
85
+ def normalized_scheme; end
86
+ def normalized_site; end
87
+ def normalized_user; end
88
+ def normalized_userinfo; end
89
+ def omit!(*components); end
90
+ def omit(*components); end
91
+ def origin; end
92
+ def origin=(new_origin); end
93
+ def password; end
94
+ def password=(new_password); end
95
+ def path; end
96
+ def path=(new_path); end
97
+ def port; end
98
+ def port=(new_port); end
99
+ def query; end
100
+ def query=(new_query); end
101
+ def query_values(return_type = nil); end
102
+ def query_values=(new_query_values); end
103
+ def relative?; end
104
+ def remove_composite_values; end
105
+ def replace_self(uri); end
106
+ def request_uri; end
107
+ def request_uri=(new_request_uri); end
108
+ def route_from(uri); end
109
+ def route_to(uri); end
110
+ def scheme; end
111
+ def scheme=(new_scheme); end
112
+ def self.convert_path(path); end
113
+ def self.encode(uri, return_type = nil); end
114
+ def self.encode_component(component, character_class = nil, upcase_encoded = nil); end
115
+ def self.escape(uri, return_type = nil); end
116
+ def self.form_encode(form_values, sort = nil); end
117
+ def self.form_unencode(encoded_value); end
118
+ def self.heuristic_parse(uri, hints = nil); end
119
+ def self.ip_based_schemes; end
120
+ def self.join(*uris); end
121
+ def self.normalize_component(component, character_class = nil, leave_encoded = nil); end
122
+ def self.normalize_path(path); end
123
+ def self.normalized_encode(uri, return_type = nil); end
124
+ def self.parse(uri); end
125
+ def self.port_mapping; end
126
+ def self.unencode(uri, return_type = nil, leave_encoded = nil); end
127
+ def self.unencode_component(uri, return_type = nil, leave_encoded = nil); end
128
+ def self.unescape(uri, return_type = nil, leave_encoded = nil); end
129
+ def self.unescape_component(uri, return_type = nil, leave_encoded = nil); end
130
+ def site; end
131
+ def site=(new_site); end
132
+ def split_path(path); end
133
+ def tld; end
134
+ def tld=(new_tld); end
135
+ def to_hash; end
136
+ def to_s; end
137
+ def to_str; end
138
+ def user; end
139
+ def user=(new_user); end
140
+ def userinfo; end
141
+ def userinfo=(new_userinfo); end
142
+ def validate; end
143
+ end
144
+ class Addressable::URI::InvalidURIError < StandardError
145
+ end
146
+ module Addressable::URI::CharacterClasses
147
+ end
148
+ class Addressable::Template
149
+ def ==(template); end
150
+ def eql?(template); end
151
+ def expand(mapping, processor = nil, normalize_values = nil); end
152
+ def extract(uri, processor = nil); end
153
+ def freeze; end
154
+ def generate(params = nil, recall = nil, options = nil); end
155
+ def initialize(pattern); end
156
+ def inspect; end
157
+ def join_values(operator, return_value); end
158
+ def keys; end
159
+ def match(uri, processor = nil); end
160
+ def named_captures; end
161
+ def names; end
162
+ def normalize_keys(mapping); end
163
+ def normalize_value(value); end
164
+ def ordered_variable_defaults; end
165
+ def parse_template_pattern(pattern, processor = nil); end
166
+ def partial_expand(mapping, processor = nil, normalize_values = nil); end
167
+ def pattern; end
168
+ def source; end
169
+ def to_regexp; end
170
+ def transform_capture(mapping, capture, processor = nil, normalize_values = nil); end
171
+ def transform_partial_capture(mapping, capture, processor = nil, normalize_values = nil); end
172
+ def variable_defaults; end
173
+ def variables; end
174
+ end
175
+ class Addressable::Template::InvalidTemplateValueError < StandardError
176
+ end
177
+ class Addressable::Template::InvalidTemplateOperatorError < StandardError
178
+ end
179
+ class Addressable::Template::TemplateOperatorAbortedError < StandardError
180
+ end
181
+ class Addressable::Template::MatchData
182
+ def [](key, len = nil); end
183
+ def captures; end
184
+ def initialize(uri, template, mapping); end
185
+ def inspect; end
186
+ def keys; end
187
+ def mapping; end
188
+ def names; end
189
+ def post_match; end
190
+ def pre_match; end
191
+ def string; end
192
+ def template; end
193
+ def to_a; end
194
+ def to_s; end
195
+ def uri; end
196
+ def values; end
197
+ def values_at(*indexes); end
198
+ def variables; end
199
+ end
@@ -0,0 +1,49 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/ast/all/ast.rbi
9
+ #
10
+ # ast-2.4.2
11
+
12
+ module AST
13
+ end
14
+ class AST::Node
15
+ def +(array); end
16
+ def <<(element); end
17
+ def ==(other); end
18
+ def append(element); end
19
+ def assign_properties(properties); end
20
+ def children; end
21
+ def clone; end
22
+ def concat(array); end
23
+ def deconstruct; end
24
+ def dup; end
25
+ def eql?(other); end
26
+ def fancy_type; end
27
+ def hash; end
28
+ def initialize(type, children = nil, properties = nil); end
29
+ def inspect(indent = nil); end
30
+ def original_dup; end
31
+ def to_a; end
32
+ def to_ast; end
33
+ def to_s(indent = nil); end
34
+ def to_sexp(indent = nil); end
35
+ def to_sexp_array; end
36
+ def type; end
37
+ def updated(type = nil, children = nil, properties = nil); end
38
+ end
39
+ class AST::Processor
40
+ include AST::Processor::Mixin
41
+ end
42
+ module AST::Processor::Mixin
43
+ def handler_missing(node); end
44
+ def process(node); end
45
+ def process_all(nodes); end
46
+ end
47
+ module AST::Sexp
48
+ def s(type, *children); end
49
+ end
@@ -0,0 +1,37 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/codecov/all/codecov.rbi
9
+ #
10
+ # codecov-0.2.15
11
+
12
+ module Codecov
13
+ end
14
+ class SimpleCov::Formatter::Codecov
15
+ def black(str); end
16
+ def build_params(ci); end
17
+ def create_report(report); end
18
+ def detect_ci; end
19
+ def display_header; end
20
+ def file_network; end
21
+ def file_to_codecov(file); end
22
+ def format(result, disable_net_blockers = nil); end
23
+ def green(str); end
24
+ def gzip_report(report); end
25
+ def handle_report_response(report); end
26
+ def net_blockers(switch); end
27
+ def red(str); end
28
+ def result_to_codecov(result); end
29
+ def result_to_codecov_coverage(result); end
30
+ def result_to_codecov_messages(result); end
31
+ def result_to_codecov_report(result); end
32
+ def retry_request(req, https); end
33
+ def shortened_filename(file); end
34
+ def upload_to_codecov(ci, report); end
35
+ def upload_to_v2(url, report, query, query_without_token); end
36
+ def upload_to_v4(url, report, query, query_without_token); end
37
+ end
@@ -0,0 +1,62 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/crack/all/crack.rbi
9
+ #
10
+ # crack-0.4.5
11
+
12
+ module Crack
13
+ end
14
+ module Crack::Util
15
+ def snake_case(str); end
16
+ def to_xml_attributes(hash); end
17
+ extend Crack::Util
18
+ end
19
+ class Crack::JSON
20
+ def self.convert_json_to_yaml(json); end
21
+ def self.format_dates(output, date_starts, date_ends); end
22
+ def self.parse(json); end
23
+ def self.parser_exceptions; end
24
+ def self.unescape(str); end
25
+ end
26
+ class REXMLUtiliyNodeString < String
27
+ def attributes; end
28
+ def attributes=(arg0); end
29
+ end
30
+ class REXMLUtilityNode
31
+ def add_node(node); end
32
+ def attributes; end
33
+ def attributes=(arg0); end
34
+ def children; end
35
+ def children=(arg0); end
36
+ def initialize(name, normalized_attributes = nil); end
37
+ def inner_html; end
38
+ def name; end
39
+ def name=(arg0); end
40
+ def self.available_typecasts; end
41
+ def self.available_typecasts=(obj); end
42
+ def self.typecasts; end
43
+ def self.typecasts=(obj); end
44
+ def to_hash; end
45
+ def to_html; end
46
+ def to_s; end
47
+ def type; end
48
+ def type=(arg0); end
49
+ def typecast_value(value); end
50
+ def undasherize_keys(params); end
51
+ def unnormalize_xml_entities(value); end
52
+ end
53
+ class Crack::REXMLParser
54
+ def self.parse(xml); end
55
+ end
56
+ class Crack::XML
57
+ def self.parse(xml); end
58
+ def self.parser; end
59
+ def self.parser=(parser); end
60
+ end
61
+ class Crack::ParseError < StandardError
62
+ end
@@ -0,0 +1,36 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/docile/all/docile.rbi
9
+ #
10
+ # docile-1.3.5
11
+
12
+ module Docile
13
+ def dsl_eval(dsl, *args, &block); end
14
+ def dsl_eval_immutable(dsl, *args, &block); end
15
+ def dsl_eval_with_block_return(dsl, *args, &block); end
16
+ def self.dsl_eval(dsl, *args, &block); end
17
+ def self.dsl_eval_immutable(dsl, *args, &block); end
18
+ def self.dsl_eval_with_block_return(dsl, *args, &block); end
19
+ extend Docile::Execution
20
+ end
21
+ module Docile::Execution
22
+ def exec_in_proxy_context(dsl, proxy_type, *args, &block); end
23
+ def self.exec_in_proxy_context(dsl, proxy_type, *args, &block); end
24
+ end
25
+ class Docile::FallbackContextProxy
26
+ def initialize(receiver, fallback); end
27
+ def instance_variables; end
28
+ def method_missing(method, *args, &block); end
29
+ end
30
+ class Docile::ChainingFallbackContextProxy < Docile::FallbackContextProxy
31
+ def method_missing(method, *args, &block); end
32
+ end
33
+ module Docile::BacktraceFilter
34
+ def backtrace; end
35
+ def backtrace_locations; end
36
+ end
@@ -0,0 +1,66 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/hashdiff/all/hashdiff.rbi
9
+ #
10
+ # hashdiff-1.0.1
11
+
12
+ module Hashdiff
13
+ def self.any_hash_or_array?(obja, objb); end
14
+ def self.best_diff(obj1, obj2, options = nil, &block); end
15
+ def self.comparable?(obj1, obj2, strict = nil); end
16
+ def self.compare_values(obj1, obj2, options = nil); end
17
+ def self.count_diff(diffs); end
18
+ def self.count_nodes(obj); end
19
+ def self.custom_compare(method, key, obj1, obj2); end
20
+ def self.decode_property_path(path, delimiter = nil); end
21
+ def self.diff(obj1, obj2, options = nil, &block); end
22
+ def self.diff_array_lcs(arraya, arrayb, options = nil); end
23
+ def self.lcs(arraya, arrayb, options = nil); end
24
+ def self.node(hash, parts); end
25
+ def self.patch!(obj, changes, options = nil); end
26
+ def self.prefix_append_array_index(prefix, array_index, opts); end
27
+ def self.prefix_append_key(prefix, key, opts); end
28
+ def self.similar?(obja, objb, options = nil); end
29
+ def self.unpatch!(obj, changes, options = nil); end
30
+ end
31
+ class Hashdiff::CompareHashes
32
+ def self.call(obj1, obj2, opts = nil); end
33
+ end
34
+ class Hashdiff::LcsCompareArrays
35
+ def self.call(obj1, obj2, opts = nil); end
36
+ end
37
+ class Hashdiff::LinearCompareArray
38
+ def additions; end
39
+ def append_addition(item, index); end
40
+ def append_addititions_before_match(match_index); end
41
+ def append_deletion(item, index); end
42
+ def append_deletions_before_match(match_index); end
43
+ def append_differences(difference); end
44
+ def call; end
45
+ def changes; end
46
+ def compare_at_index; end
47
+ def deletions; end
48
+ def differences; end
49
+ def expected_additions; end
50
+ def expected_additions=(arg0); end
51
+ def extra_items_in_new_array?; end
52
+ def extra_items_in_old_array?; end
53
+ def index_of_match_after_additions; end
54
+ def index_of_match_after_deletions; end
55
+ def initialize(old_array, new_array, options); end
56
+ def item_difference(old_item, new_item, item_index); end
57
+ def iterated_through_both_arrays?; end
58
+ def new_array; end
59
+ def new_index; end
60
+ def new_index=(arg0); end
61
+ def old_array; end
62
+ def old_index; end
63
+ def old_index=(arg0); end
64
+ def options; end
65
+ def self.call(old_array, new_array, options = nil); end
66
+ end
@@ -0,0 +1,83 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/parallel/all/parallel.rbi
9
+ #
10
+ # parallel-1.20.1
11
+
12
+ module Parallel
13
+ def self.add_progress_bar!(job_factory, options); end
14
+ def self.all?(*args, &block); end
15
+ def self.any?(*args, &block); end
16
+ def self.call_with_index(item, index, options, &block); end
17
+ def self.create_workers(job_factory, options, &block); end
18
+ def self.each(array, options = nil, &block); end
19
+ def self.each_with_index(array, options = nil, &block); end
20
+ def self.extract_count_from_options(options); end
21
+ def self.flat_map(*args, &block); end
22
+ def self.in_processes(options = nil, &block); end
23
+ def self.in_threads(options = nil); end
24
+ def self.map(source, options = nil, &block); end
25
+ def self.map_with_index(array, options = nil, &block); end
26
+ def self.process_incoming_jobs(read, write, job_factory, options, &block); end
27
+ def self.replace_worker(job_factory, workers, i, options, blk); end
28
+ def self.with_instrumentation(item, index, options); end
29
+ def self.work_direct(job_factory, options, &block); end
30
+ def self.work_in_processes(job_factory, options, &blk); end
31
+ def self.work_in_threads(job_factory, options, &block); end
32
+ def self.worker(job_factory, options, &block); end
33
+ def self.worker_number; end
34
+ def self.worker_number=(worker_num); end
35
+ extend Parallel::ProcessorCount
36
+ end
37
+ module Parallel::ProcessorCount
38
+ def physical_processor_count; end
39
+ def processor_count; end
40
+ end
41
+ class Parallel::DeadWorker < StandardError
42
+ end
43
+ class Parallel::Break < StandardError
44
+ def initialize(value = nil); end
45
+ def value; end
46
+ end
47
+ class Parallel::Kill < Parallel::Break
48
+ end
49
+ class Parallel::UndumpableException < StandardError
50
+ def backtrace; end
51
+ def initialize(original); end
52
+ end
53
+ class Parallel::ExceptionWrapper
54
+ def exception; end
55
+ def initialize(exception); end
56
+ end
57
+ class Parallel::Worker
58
+ def close_pipes; end
59
+ def initialize(read, write, pid); end
60
+ def pid; end
61
+ def read; end
62
+ def stop; end
63
+ def thread; end
64
+ def thread=(arg0); end
65
+ def wait; end
66
+ def work(data); end
67
+ def write; end
68
+ end
69
+ class Parallel::JobFactory
70
+ def initialize(source, mutex); end
71
+ def next; end
72
+ def pack(item, index); end
73
+ def producer?; end
74
+ def queue_wrapper(array); end
75
+ def size; end
76
+ def unpack(data); end
77
+ end
78
+ class Parallel::UserInterruptHandler
79
+ def self.kill(thing); end
80
+ def self.kill_on_ctrl_c(pids, options); end
81
+ def self.restore_interrupt(old, signal); end
82
+ def self.trap_interrupt(signal); end
83
+ end