nexus-invision 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rubocop.yml +2 -0
- data/Gemfile +21 -0
- data/Gemfile.lock +110 -0
- data/README.md +55 -0
- data/Rakefile +4 -0
- data/lib/nexus/invision/client.rb +177 -0
- data/lib/nexus/invision/errors/bad_request.rb +24 -0
- data/lib/nexus/invision/errors/client_error.rb +23 -0
- data/lib/nexus/invision/errors/unexpected_response.rb +13 -0
- data/lib/nexus/invision/requests/add_member_to_secondary_group.rb +18 -0
- data/lib/nexus/invision/requests/create_forum_topic.rb +22 -0
- data/lib/nexus/invision/requests/create_member_warning.rb +22 -0
- data/lib/nexus/invision/requests/remove_member_from_secondary_group.rb +18 -0
- data/lib/nexus/invision/resources/login_link.rb +17 -0
- data/lib/nexus/invision/resources/topic.rb +17 -0
- data/lib/nexus/invision/resources/user.rb +17 -0
- data/lib/nexus/invision/resources/warning.rb +17 -0
- data/lib/nexus/invision/value_object.rb +28 -0
- data/lib/nexus/invision/version.rb +9 -0
- data/nexus-invision.gemspec +33 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/faraday.rbi +17 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/base64@0.1.1.rbi +172 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/faraday-net_http@3.0.2.rbi +146 -0
- data/sorbet/rbi/gems/faraday@2.7.11.rbi +2903 -0
- data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +5451 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/prism@0.15.1.rbi +23922 -0
- data/sorbet/rbi/gems/racc@1.7.1.rbi +161 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.1.0.rbi +3027 -0
- data/sorbet/rbi/gems/rbi@0.1.2.rbi +2922 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.2.rbi +3749 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
- data/sorbet/rbi/gems/rspec-core@3.12.2.rbi +10910 -0
- data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +8100 -0
- data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +5310 -0
- data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +1609 -0
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7003 -0
- data/sorbet/rbi/gems/rubocop-shopify@2.14.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56813 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
- data/sorbet/rbi/gems/tapioca@0.11.9.rbi +3496 -0
- data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/rbi/todo.rbi +5 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +106 -0
@@ -0,0 +1,145 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `erubi` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem erubi`.
|
6
|
+
|
7
|
+
# source://erubi//lib/erubi.rb#3
|
8
|
+
module Erubi
|
9
|
+
class << self
|
10
|
+
def h(_arg0); end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
# source://erubi//lib/erubi.rb#54
|
15
|
+
class Erubi::Engine
|
16
|
+
# Initialize a new Erubi::Engine. Options:
|
17
|
+
# +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
|
18
|
+
# +:bufvar+ :: The variable name to use for the buffer variable, as a string.
|
19
|
+
# +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
|
20
|
+
# performance, but can cause issues when the buffer variable is reassigned during
|
21
|
+
# template rendering (default +false+).
|
22
|
+
# +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
|
23
|
+
# +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
|
24
|
+
# +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
|
25
|
+
# +:escape_html+ :: Same as +:escape+, with lower priority.
|
26
|
+
# +:filename+ :: The filename for the template.
|
27
|
+
# the resulting source code. Note this may cause problems if you are wrapping the resulting
|
28
|
+
# source code in other code, because the magic comment only has an effect at the beginning of
|
29
|
+
# the file, and having the magic comment later in the file can trigger warnings.
|
30
|
+
# +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
|
31
|
+
# (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
|
32
|
+
# Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
|
33
|
+
# in order to improve performance.
|
34
|
+
# +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
|
35
|
+
# +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
|
36
|
+
# +:outvar+ :: Same as +:bufvar+, with lower priority.
|
37
|
+
# +:postamble+ :: The postamble for the template, by default returns the resulting source code.
|
38
|
+
# +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
|
39
|
+
# +:regexp+ :: The regexp to use for scanning.
|
40
|
+
# +:src+ :: The initial value to use for the source code, an empty string by default.
|
41
|
+
# +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
|
42
|
+
#
|
43
|
+
# @return [Engine] a new instance of Engine
|
44
|
+
#
|
45
|
+
# source://erubi//lib/erubi.rb#94
|
46
|
+
def initialize(input, properties = T.unsafe(nil)); end
|
47
|
+
|
48
|
+
# The variable name used for the buffer variable.
|
49
|
+
#
|
50
|
+
# source://erubi//lib/erubi.rb#65
|
51
|
+
def bufvar; end
|
52
|
+
|
53
|
+
# The filename of the template, if one was given.
|
54
|
+
#
|
55
|
+
# source://erubi//lib/erubi.rb#62
|
56
|
+
def filename; end
|
57
|
+
|
58
|
+
# The frozen ruby source code generated from the template, which can be evaled.
|
59
|
+
#
|
60
|
+
# source://erubi//lib/erubi.rb#59
|
61
|
+
def src; end
|
62
|
+
|
63
|
+
private
|
64
|
+
|
65
|
+
# Add ruby code to the template
|
66
|
+
#
|
67
|
+
# source://erubi//lib/erubi.rb#226
|
68
|
+
def add_code(code); end
|
69
|
+
|
70
|
+
# Add the given ruby expression result to the template,
|
71
|
+
# escaping it based on the indicator given and escape flag.
|
72
|
+
#
|
73
|
+
# source://erubi//lib/erubi.rb#235
|
74
|
+
def add_expression(indicator, code); end
|
75
|
+
|
76
|
+
# Add the result of Ruby expression to the template
|
77
|
+
#
|
78
|
+
# source://erubi//lib/erubi.rb#244
|
79
|
+
def add_expression_result(code); end
|
80
|
+
|
81
|
+
# Add the escaped result of Ruby expression to the template
|
82
|
+
#
|
83
|
+
# source://erubi//lib/erubi.rb#249
|
84
|
+
def add_expression_result_escaped(code); end
|
85
|
+
|
86
|
+
# Add the given postamble to the src. Can be overridden in subclasses
|
87
|
+
# to make additional changes to src that depend on the current state.
|
88
|
+
#
|
89
|
+
# source://erubi//lib/erubi.rb#255
|
90
|
+
def add_postamble(postamble); end
|
91
|
+
|
92
|
+
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
|
93
|
+
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
|
94
|
+
#
|
95
|
+
# source://erubi//lib/erubi.rb#213
|
96
|
+
def add_text(text); end
|
97
|
+
|
98
|
+
# Raise an exception, as the base engine class does not support handling other indicators.
|
99
|
+
#
|
100
|
+
# @raise [ArgumentError]
|
101
|
+
#
|
102
|
+
# source://erubi//lib/erubi.rb#261
|
103
|
+
def handle(indicator, code, tailch, rspace, lspace); end
|
104
|
+
|
105
|
+
# Make sure that any current expression has been terminated.
|
106
|
+
# The default is to terminate all expressions, but when
|
107
|
+
# the chain_appends option is used, expressions may not be
|
108
|
+
# terminated.
|
109
|
+
#
|
110
|
+
# source://erubi//lib/erubi.rb#289
|
111
|
+
def terminate_expression; end
|
112
|
+
|
113
|
+
# Make sure the buffer variable is the target of the next append
|
114
|
+
# before yielding to the block. Mark that the buffer is the target
|
115
|
+
# of the next append after the block executes.
|
116
|
+
#
|
117
|
+
# This method should only be called if the block will result in
|
118
|
+
# code where << will append to the bufvar.
|
119
|
+
#
|
120
|
+
# source://erubi//lib/erubi.rb#271
|
121
|
+
def with_buffer; end
|
122
|
+
end
|
123
|
+
|
124
|
+
# The default regular expression used for scanning.
|
125
|
+
#
|
126
|
+
# source://erubi//lib/erubi.rb#56
|
127
|
+
Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
128
|
+
|
129
|
+
# source://erubi//lib/erubi.rb#17
|
130
|
+
Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
|
131
|
+
|
132
|
+
# source://erubi//lib/erubi.rb#15
|
133
|
+
Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
|
134
|
+
|
135
|
+
# source://erubi//lib/erubi.rb#8
|
136
|
+
Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
|
137
|
+
|
138
|
+
# source://erubi//lib/erubi.rb#9
|
139
|
+
Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
|
140
|
+
|
141
|
+
# source://erubi//lib/erubi.rb#16
|
142
|
+
Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
|
143
|
+
|
144
|
+
# source://erubi//lib/erubi.rb#4
|
145
|
+
Erubi::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,146 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `faraday-net_http` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem faraday-net_http`.
|
6
|
+
|
7
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#12
|
8
|
+
module Faraday
|
9
|
+
class << self
|
10
|
+
# source://faraday/2.7.11/lib/faraday.rb#55
|
11
|
+
def default_adapter; end
|
12
|
+
|
13
|
+
# source://faraday/2.7.11/lib/faraday.rb#102
|
14
|
+
def default_adapter=(adapter); end
|
15
|
+
|
16
|
+
# source://faraday/2.7.11/lib/faraday.rb#59
|
17
|
+
def default_adapter_options; end
|
18
|
+
|
19
|
+
# source://faraday/2.7.11/lib/faraday.rb#59
|
20
|
+
def default_adapter_options=(_arg0); end
|
21
|
+
|
22
|
+
# source://faraday/2.7.11/lib/faraday.rb#120
|
23
|
+
def default_connection; end
|
24
|
+
|
25
|
+
# source://faraday/2.7.11/lib/faraday.rb#62
|
26
|
+
def default_connection=(_arg0); end
|
27
|
+
|
28
|
+
# source://faraday/2.7.11/lib/faraday.rb#127
|
29
|
+
def default_connection_options; end
|
30
|
+
|
31
|
+
# source://faraday/2.7.11/lib/faraday.rb#134
|
32
|
+
def default_connection_options=(options); end
|
33
|
+
|
34
|
+
# source://faraday/2.7.11/lib/faraday.rb#67
|
35
|
+
def ignore_env_proxy; end
|
36
|
+
|
37
|
+
# source://faraday/2.7.11/lib/faraday.rb#67
|
38
|
+
def ignore_env_proxy=(_arg0); end
|
39
|
+
|
40
|
+
# source://faraday/2.7.11/lib/faraday.rb#46
|
41
|
+
def lib_path; end
|
42
|
+
|
43
|
+
# source://faraday/2.7.11/lib/faraday.rb#46
|
44
|
+
def lib_path=(_arg0); end
|
45
|
+
|
46
|
+
# source://faraday/2.7.11/lib/faraday.rb#96
|
47
|
+
def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
48
|
+
|
49
|
+
# source://faraday/2.7.11/lib/faraday.rb#107
|
50
|
+
def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
|
51
|
+
|
52
|
+
# source://faraday/2.7.11/lib/faraday.rb#42
|
53
|
+
def root_path; end
|
54
|
+
|
55
|
+
# source://faraday/2.7.11/lib/faraday.rb#42
|
56
|
+
def root_path=(_arg0); end
|
57
|
+
|
58
|
+
private
|
59
|
+
|
60
|
+
# source://faraday/2.7.11/lib/faraday.rb#143
|
61
|
+
def method_missing(name, *args, &block); end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#13
|
66
|
+
class Faraday::Adapter
|
67
|
+
# source://faraday/2.7.11/lib/faraday/adapter.rb#28
|
68
|
+
def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
69
|
+
|
70
|
+
# source://faraday/2.7.11/lib/faraday/adapter.rb#55
|
71
|
+
def call(env); end
|
72
|
+
|
73
|
+
# source://faraday/2.7.11/lib/faraday/adapter.rb#50
|
74
|
+
def close; end
|
75
|
+
|
76
|
+
# source://faraday/2.7.11/lib/faraday/adapter.rb#41
|
77
|
+
def connection(env); end
|
78
|
+
|
79
|
+
private
|
80
|
+
|
81
|
+
# source://faraday/2.7.11/lib/faraday/adapter.rb#85
|
82
|
+
def request_timeout(type, options); end
|
83
|
+
|
84
|
+
# source://faraday/2.7.11/lib/faraday/adapter.rb#62
|
85
|
+
def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil), finished: T.unsafe(nil)); end
|
86
|
+
end
|
87
|
+
|
88
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#14
|
89
|
+
class Faraday::Adapter::NetHttp < ::Faraday::Adapter
|
90
|
+
# @return [NetHttp] a new instance of NetHttp
|
91
|
+
#
|
92
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#38
|
93
|
+
def initialize(app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
94
|
+
|
95
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#43
|
96
|
+
def build_connection(env); end
|
97
|
+
|
98
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#63
|
99
|
+
def call(env); end
|
100
|
+
|
101
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#51
|
102
|
+
def net_http_connection(env); end
|
103
|
+
|
104
|
+
private
|
105
|
+
|
106
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#152
|
107
|
+
def configure_request(http, req); end
|
108
|
+
|
109
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#135
|
110
|
+
def configure_ssl(http, ssl); end
|
111
|
+
|
112
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#79
|
113
|
+
def create_request(env); end
|
114
|
+
|
115
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#191
|
116
|
+
def encoded_body(http_response); end
|
117
|
+
|
118
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#95
|
119
|
+
def perform_request(http, env); end
|
120
|
+
|
121
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#109
|
122
|
+
def request_with_wrapped_block(http, env); end
|
123
|
+
|
124
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#125
|
125
|
+
def save_http_response(env, http_response); end
|
126
|
+
|
127
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#172
|
128
|
+
def ssl_cert_store(ssl); end
|
129
|
+
|
130
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#181
|
131
|
+
def ssl_verify_mode(ssl); end
|
132
|
+
|
133
|
+
# @return [Boolean]
|
134
|
+
#
|
135
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#203
|
136
|
+
def verify_hostname_enabled?(http, ssl); end
|
137
|
+
end
|
138
|
+
|
139
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#36
|
140
|
+
Faraday::Adapter::NetHttp::NET_HTTP_EXCEPTIONS = T.let(T.unsafe(nil), Array)
|
141
|
+
|
142
|
+
# source://faraday-net_http//lib/faraday/net_http/version.rb#4
|
143
|
+
module Faraday::NetHttp; end
|
144
|
+
|
145
|
+
# source://faraday-net_http//lib/faraday/net_http/version.rb#5
|
146
|
+
Faraday::NetHttp::VERSION = T.let(T.unsafe(nil), String)
|