muina 0.2.8 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +25 -0
- data/README.md +0 -35
- data/lib/muina/maybe/none.rb +61 -0
- data/lib/muina/maybe/some.rb +62 -0
- data/lib/muina/maybe.rb +13 -0
- data/lib/muina/result/failure.rb +7 -18
- data/lib/muina/result/success.rb +7 -18
- data/lib/muina/result.rb +6 -8
- data/lib/muina/version.rb +1 -2
- data/lib/muina.rb +0 -32
- metadata +24 -225
- data/.github/workflows/main.yml +0 -16
- data/.gitignore +0 -5
- data/.mutant.yml +0 -38
- data/.rspec +0 -4
- data/.rubocop.yml +0 -181
- data/.ruby-version +0 -1
- data/.simplecov +0 -14
- data/CHANGELOG.md +0 -38
- data/Gemfile +0 -34
- data/Gemfile.lock +0 -265
- data/Guardfile +0 -24
- data/Rakefile +0 -13
- data/SECURITY.md +0 -14
- data/bin/bundle +0 -114
- data/bin/console +0 -15
- data/bin/flay +0 -29
- data/bin/flog +0 -29
- data/bin/guard +0 -29
- data/bin/irb +0 -29
- data/bin/lefthook +0 -29
- data/bin/mutant +0 -29
- data/bin/parlour +0 -29
- data/bin/rake +0 -29
- data/bin/rspec +0 -29
- data/bin/rubocop +0 -29
- data/bin/setup +0 -8
- data/bin/srb +0 -29
- data/bin/srb-rbi +0 -29
- data/bin/tapioca +0 -29
- data/exe/muina +0 -11
- data/lefthook.yml +0 -39
- data/lib/muina/action/params_factory.rb +0 -17
- data/lib/muina/action/step/command.rb +0 -33
- data/lib/muina/action/step/failure.rb +0 -18
- data/lib/muina/action/step/query.rb +0 -35
- data/lib/muina/action/step/result.rb +0 -56
- data/lib/muina/action/step.rb +0 -13
- data/lib/muina/action.rb +0 -73
- data/lib/muina/any.rb +0 -7
- data/lib/muina/classes.rb +0 -7
- data/lib/muina/deprecator.rb +0 -93
- data/lib/muina/entity.rb +0 -20
- data/lib/muina/module.rb +0 -6
- data/lib/muina/parameters.rb +0 -7
- data/lib/muina/params.rb +0 -19
- data/lib/muina/private_creation.rb +0 -12
- data/lib/muina/result/factory.rb +0 -37
- data/lib/muina/result/null.rb +0 -25
- data/lib/muina/service.rb +0 -25
- data/lib/muina/symbol_hash.rb +0 -7
- data/lib/muina/unit.rb +0 -10
- data/lib/muina/untyped_array.rb +0 -7
- data/lib/muina/untyped_hash.rb +0 -7
- data/lib/muina/value.rb +0 -24
- data/muina.gemspec +0 -35
- data/rbi/muina.rbi +0 -311
- data/sorbet/config +0 -2
- data/sorbet/rbi/gems/actionpack@6.1.4.rbi +0 -5045
- data/sorbet/rbi/gems/actionview@6.1.4.rbi +0 -2416
- data/sorbet/rbi/gems/activesupport@6.1.4.rbi +0 -3778
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
- data/sorbet/rbi/gems/awesome_print@1.9.2.rbi +0 -322
- data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -18
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -39
- data/sorbet/rbi/gems/commander@4.6.0.rbi +0 -8
- data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +0 -2403
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -123
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
- data/sorbet/rbi/gems/docile@1.4.0.rbi +0 -54
- data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -36
- data/sorbet/rbi/gems/erubis@2.7.0.rbi +0 -8
- data/sorbet/rbi/gems/faker@2.18.0.rbi +0 -2469
- data/sorbet/rbi/gems/ffi@1.15.3.rbi +0 -8
- data/sorbet/rbi/gems/flay@2.12.1.rbi +0 -178
- data/sorbet/rbi/gems/flog@4.6.4.rbi +0 -70
- data/sorbet/rbi/gems/formatador@0.3.0.rbi +0 -8
- data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +0 -49
- data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +0 -233
- data/sorbet/rbi/gems/guard-rubocop@1.4.0.rbi +0 -66
- data/sorbet/rbi/gems/guard-shell@0.7.2.rbi +0 -69
- data/sorbet/rbi/gems/guard@2.18.0.rbi +0 -617
- data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
- data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -616
- data/sorbet/rbi/gems/io-console@0.5.9.rbi +0 -8
- data/sorbet/rbi/gems/irb@1.3.6.rbi +0 -452
- data/sorbet/rbi/gems/lefthook@0.7.6.rbi +0 -8
- data/sorbet/rbi/gems/listen@3.6.0.rbi +0 -476
- data/sorbet/rbi/gems/loofah@2.10.0.rbi +0 -223
- data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +0 -431
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -344
- data/sorbet/rbi/gems/mutant-license@0.1.1.1.4043027289354708743625974235631451632228.0.rbi +0 -8
- data/sorbet/rbi/gems/mutant-rspec@0.10.32.rbi +0 -8
- data/sorbet/rbi/gems/mutant@0.10.32.rbi +0 -4154
- data/sorbet/rbi/gems/nenv@0.3.0.rbi +0 -88
- data/sorbet/rbi/gems/nokogiri@1.11.7.rbi +0 -1422
- data/sorbet/rbi/gems/notiffany@0.1.3.rbi +0 -331
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
- data/sorbet/rbi/gems/parlour@6.0.1.rbi +0 -1726
- data/sorbet/rbi/gems/parser@3.0.2.0.rbi +0 -1683
- data/sorbet/rbi/gems/path_expander@1.1.0.rbi +0 -24
- data/sorbet/rbi/gems/polyfill@1.9.0.rbi +0 -393
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -47
- data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -272
- data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1618
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -92
- data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -183
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -808
- data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +0 -8
- data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +0 -8
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1120
- data/sorbet/rbi/gems/reline@0.2.6.rbi +0 -662
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -672
- data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +0 -2509
- data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +0 -1574
- data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +0 -1462
- data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +0 -509
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -38
- data/sorbet/rbi/gems/rubocop-ast@1.8.0.rbi +0 -2194
- data/sorbet/rbi/gems/rubocop-performance@1.11.4.rbi +0 -899
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -118
- data/sorbet/rbi/gems/rubocop-rspec@2.4.0.rbi +0 -1805
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +0 -288
- data/sorbet/rbi/gems/rubocop@1.18.4.rbi +0 -13197
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
- data/sorbet/rbi/gems/ruby_parser@3.16.0.rbi +0 -4528
- data/sorbet/rbi/gems/safe_type@1.1.1.rbi +0 -157
- data/sorbet/rbi/gems/sexp_processor@4.15.3.rbi +0 -359
- data/sorbet/rbi/gems/shellany@0.0.1.rbi +0 -28
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +0 -8
- data/sorbet/rbi/gems/sorbet-coerce@0.5.0.rbi +0 -42
- data/sorbet/rbi/gems/sorbet-rails@0.7.4.rbi +0 -8
- data/sorbet/rbi/gems/sorbet-struct-comparable@1.1.0.rbi +0 -17
- data/sorbet/rbi/gems/spoom@1.1.1.rbi +0 -1193
- data/sorbet/rbi/gems/tapioca@0.4.23.rbi +0 -1826
- data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -838
- data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -856
- data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -26
- data/sorbet/rbi/gems/unparser@0.6.0.rbi +0 -2037
- data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -173
- data/sorbet/rbi/todo.rbi +0 -8
- data/sorbet/rbi/typed_params.rbi +0 -7
- data/sorbet/tapioca/require.rb +0 -16
@@ -1,92 +0,0 @@
|
|
1
|
-
# DO NOT EDIT MANUALLY
|
2
|
-
# This is an autogenerated file for types exported from the `rails-dom-testing` gem.
|
3
|
-
# Please instead update this file by running `bin/tapioca sync`.
|
4
|
-
|
5
|
-
# typed: true
|
6
|
-
|
7
|
-
class HTMLSelector
|
8
|
-
def initialize(values, previous_selection = T.unsafe(nil), &root_fallback); end
|
9
|
-
|
10
|
-
def context; end
|
11
|
-
def css_selector; end
|
12
|
-
def message; end
|
13
|
-
def select; end
|
14
|
-
def selecting_no_body?; end
|
15
|
-
def tests; end
|
16
|
-
|
17
|
-
private
|
18
|
-
|
19
|
-
def extract_equality_tests; end
|
20
|
-
def extract_root(previous_selection, root_fallback); end
|
21
|
-
def extract_selectors; end
|
22
|
-
def filter(matches); end
|
23
|
-
|
24
|
-
class << self
|
25
|
-
def context; end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
HTMLSelector::NO_STRIP = T.let(T.unsafe(nil), Array)
|
30
|
-
module Rails; end
|
31
|
-
module Rails::Dom; end
|
32
|
-
module Rails::Dom::Testing; end
|
33
|
-
|
34
|
-
module Rails::Dom::Testing::Assertions
|
35
|
-
include ::Rails::Dom::Testing::Assertions::DomAssertions
|
36
|
-
include ::Rails::Dom::Testing::Assertions::SelectorAssertions::CountDescribable
|
37
|
-
include ::Rails::Dom::Testing::Assertions::SelectorAssertions
|
38
|
-
extend ::ActiveSupport::Concern
|
39
|
-
end
|
40
|
-
|
41
|
-
module Rails::Dom::Testing::Assertions::DomAssertions
|
42
|
-
def assert_dom_equal(expected, actual, message = T.unsafe(nil)); end
|
43
|
-
def assert_dom_not_equal(expected, actual, message = T.unsafe(nil)); end
|
44
|
-
|
45
|
-
protected
|
46
|
-
|
47
|
-
def compare_doms(expected, actual); end
|
48
|
-
def equal_attribute?(attr, other_attr); end
|
49
|
-
def equal_attribute_nodes?(nodes, other_nodes); end
|
50
|
-
def equal_children?(child, other_child); end
|
51
|
-
|
52
|
-
private
|
53
|
-
|
54
|
-
def fragment(text); end
|
55
|
-
end
|
56
|
-
|
57
|
-
module Rails::Dom::Testing::Assertions::SelectorAssertions
|
58
|
-
include ::Rails::Dom::Testing::Assertions::SelectorAssertions::CountDescribable
|
59
|
-
|
60
|
-
def assert_select(*args, &block); end
|
61
|
-
def assert_select_email(&block); end
|
62
|
-
def assert_select_encoded(element = T.unsafe(nil), &block); end
|
63
|
-
def css_select(*args); end
|
64
|
-
|
65
|
-
private
|
66
|
-
|
67
|
-
def assert_size_match!(size, equals, css_selector, message = T.unsafe(nil)); end
|
68
|
-
def document_root_element; end
|
69
|
-
def nest_selection(selection); end
|
70
|
-
def nodeset(node); end
|
71
|
-
end
|
72
|
-
|
73
|
-
module Rails::Dom::Testing::Assertions::SelectorAssertions::CountDescribable
|
74
|
-
extend ::ActiveSupport::Concern
|
75
|
-
|
76
|
-
private
|
77
|
-
|
78
|
-
def count_description(min, max, count); end
|
79
|
-
def pluralize_element(quantity); end
|
80
|
-
end
|
81
|
-
|
82
|
-
class SubstitutionContext
|
83
|
-
def initialize; end
|
84
|
-
|
85
|
-
def match(matches, attribute, matcher); end
|
86
|
-
def substitute!(selector, values, format_for_presentation = T.unsafe(nil)); end
|
87
|
-
|
88
|
-
private
|
89
|
-
|
90
|
-
def matcher_for(value, format_for_presentation); end
|
91
|
-
def substitutable?(value); end
|
92
|
-
end
|
@@ -1,183 +0,0 @@
|
|
1
|
-
# DO NOT EDIT MANUALLY
|
2
|
-
# This is an autogenerated file for types exported from the `rails-html-sanitizer` gem.
|
3
|
-
# Please instead update this file by running `bin/tapioca sync`.
|
4
|
-
|
5
|
-
# typed: true
|
6
|
-
|
7
|
-
module ActionView
|
8
|
-
extend ::ActiveSupport::Autoload
|
9
|
-
|
10
|
-
class << self
|
11
|
-
def eager_load!; end
|
12
|
-
def gem_version; end
|
13
|
-
def version; end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
ActionView::ENCODING_FLAG = T.let(T.unsafe(nil), String)
|
18
|
-
|
19
|
-
module ActionView::Helpers
|
20
|
-
include ::ActionView::Helpers::TranslationHelper
|
21
|
-
include ::ActionView::Helpers::ActiveModelHelper
|
22
|
-
include ::ActionView::Helpers::AssetUrlHelper
|
23
|
-
include ::ActionView::Helpers::AtomFeedHelper
|
24
|
-
include ::ActionView::Helpers::CacheHelper
|
25
|
-
include ::ActionView::Helpers::SanitizeHelper
|
26
|
-
include ::ActionView::Helpers::CaptureHelper
|
27
|
-
include ::ActionView::Helpers::ControllerHelper
|
28
|
-
include ::ActionView::Helpers::CspHelper
|
29
|
-
include ::ActionView::Helpers::CsrfHelper
|
30
|
-
include ::ActionView::Helpers::DateHelper
|
31
|
-
include ::ActionView::Helpers::OutputSafetyHelper
|
32
|
-
include ::ActionView::Helpers::TagHelper
|
33
|
-
include ::ActionView::Helpers::DebugHelper
|
34
|
-
include ::ActionView::Helpers::TextHelper
|
35
|
-
include ::ActionView::Helpers::FormOptionsHelper
|
36
|
-
include ::ActionView::Helpers::JavaScriptHelper
|
37
|
-
include ::ActionView::Helpers::NumberHelper
|
38
|
-
include ::ActionView::Helpers::RenderingHelper
|
39
|
-
extend ::ActiveSupport::Autoload
|
40
|
-
extend ::ActiveSupport::Concern
|
41
|
-
include ::ActionView::Helpers::TagHelper
|
42
|
-
include ::ActionView::Helpers::AssetTagHelper
|
43
|
-
include ::ActionView::Helpers::UrlHelper
|
44
|
-
include ::ActionView::Helpers::SanitizeHelper
|
45
|
-
include ::ActionView::Helpers::TextHelper
|
46
|
-
include ::ActionView::Helpers::FormTagHelper
|
47
|
-
include ::ActionView::Helpers::FormHelper
|
48
|
-
include ::ActiveSupport::Benchmarkable
|
49
|
-
|
50
|
-
class << self
|
51
|
-
def eager_load!; end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|
55
|
-
module ActionView::Helpers::SanitizeHelper
|
56
|
-
extend ::ActiveSupport::Concern
|
57
|
-
|
58
|
-
mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods
|
59
|
-
|
60
|
-
def sanitize(html, options = T.unsafe(nil)); end
|
61
|
-
def sanitize_css(style); end
|
62
|
-
def strip_links(html); end
|
63
|
-
def strip_tags(html); end
|
64
|
-
end
|
65
|
-
|
66
|
-
module ActionView::Helpers::SanitizeHelper::ClassMethods
|
67
|
-
def full_sanitizer; end
|
68
|
-
def full_sanitizer=(_arg0); end
|
69
|
-
def link_sanitizer; end
|
70
|
-
def link_sanitizer=(_arg0); end
|
71
|
-
def safe_list_sanitizer; end
|
72
|
-
def safe_list_sanitizer=(_arg0); end
|
73
|
-
def sanitized_allowed_attributes; end
|
74
|
-
def sanitized_allowed_attributes=(attributes); end
|
75
|
-
def sanitized_allowed_css_keywords; end
|
76
|
-
def sanitized_allowed_css_keywords=(_); end
|
77
|
-
def sanitized_allowed_css_properties; end
|
78
|
-
def sanitized_allowed_css_properties=(_); end
|
79
|
-
def sanitized_allowed_protocols; end
|
80
|
-
def sanitized_allowed_protocols=(_); end
|
81
|
-
def sanitized_allowed_tags; end
|
82
|
-
def sanitized_allowed_tags=(tags); end
|
83
|
-
def sanitized_bad_tags; end
|
84
|
-
def sanitized_bad_tags=(_); end
|
85
|
-
def sanitized_protocol_separator; end
|
86
|
-
def sanitized_protocol_separator=(_); end
|
87
|
-
def sanitized_shorthand_css_properties; end
|
88
|
-
def sanitized_shorthand_css_properties=(_); end
|
89
|
-
def sanitized_uri_attributes; end
|
90
|
-
def sanitized_uri_attributes=(_); end
|
91
|
-
def sanitizer_vendor; end
|
92
|
-
|
93
|
-
private
|
94
|
-
|
95
|
-
def deprecate_option(name); end
|
96
|
-
end
|
97
|
-
|
98
|
-
ActionView::TemplateError = ActionView::Template::Error
|
99
|
-
module Rails; end
|
100
|
-
module Rails::Html; end
|
101
|
-
|
102
|
-
class Rails::Html::FullSanitizer < ::Rails::Html::Sanitizer
|
103
|
-
def sanitize(html, options = T.unsafe(nil)); end
|
104
|
-
end
|
105
|
-
|
106
|
-
class Rails::Html::LinkSanitizer < ::Rails::Html::Sanitizer
|
107
|
-
def initialize; end
|
108
|
-
|
109
|
-
def sanitize(html, options = T.unsafe(nil)); end
|
110
|
-
end
|
111
|
-
|
112
|
-
class Rails::Html::PermitScrubber < ::Loofah::Scrubber
|
113
|
-
def initialize; end
|
114
|
-
|
115
|
-
def attributes; end
|
116
|
-
def attributes=(attributes); end
|
117
|
-
def scrub(node); end
|
118
|
-
def tags; end
|
119
|
-
def tags=(tags); end
|
120
|
-
|
121
|
-
protected
|
122
|
-
|
123
|
-
def allowed_node?(node); end
|
124
|
-
def keep_node?(node); end
|
125
|
-
def scrub_attribute(node, attr_node); end
|
126
|
-
def scrub_attribute?(name); end
|
127
|
-
def scrub_attributes(node); end
|
128
|
-
def scrub_css_attribute(node); end
|
129
|
-
def scrub_node(node); end
|
130
|
-
def skip_node?(node); end
|
131
|
-
def validate!(var, name); end
|
132
|
-
end
|
133
|
-
|
134
|
-
class Rails::Html::SafeListSanitizer < ::Rails::Html::Sanitizer
|
135
|
-
def initialize; end
|
136
|
-
|
137
|
-
def sanitize(html, options = T.unsafe(nil)); end
|
138
|
-
def sanitize_css(style_string); end
|
139
|
-
|
140
|
-
private
|
141
|
-
|
142
|
-
def allowed_attributes(options); end
|
143
|
-
def allowed_tags(options); end
|
144
|
-
|
145
|
-
class << self
|
146
|
-
def allowed_attributes; end
|
147
|
-
def allowed_attributes=(_arg0); end
|
148
|
-
def allowed_tags; end
|
149
|
-
def allowed_tags=(_arg0); end
|
150
|
-
end
|
151
|
-
end
|
152
|
-
|
153
|
-
class Rails::Html::Sanitizer
|
154
|
-
def sanitize(html, options = T.unsafe(nil)); end
|
155
|
-
|
156
|
-
private
|
157
|
-
|
158
|
-
def properly_encode(fragment, options); end
|
159
|
-
def remove_xpaths(node, xpaths); end
|
160
|
-
|
161
|
-
class << self
|
162
|
-
def full_sanitizer; end
|
163
|
-
def link_sanitizer; end
|
164
|
-
def safe_list_sanitizer; end
|
165
|
-
def white_list_sanitizer; end
|
166
|
-
end
|
167
|
-
end
|
168
|
-
|
169
|
-
Rails::Html::Sanitizer::VERSION = T.let(T.unsafe(nil), String)
|
170
|
-
|
171
|
-
class Rails::Html::TargetScrubber < ::Rails::Html::PermitScrubber
|
172
|
-
def allowed_node?(node); end
|
173
|
-
def scrub_attribute?(name); end
|
174
|
-
end
|
175
|
-
|
176
|
-
class Rails::Html::TextOnlyScrubber < ::Loofah::Scrubber
|
177
|
-
def initialize; end
|
178
|
-
|
179
|
-
def scrub(node); end
|
180
|
-
end
|
181
|
-
|
182
|
-
Rails::Html::WhiteListSanitizer = Rails::Html::SafeListSanitizer
|
183
|
-
Rails::Html::XPATHS_TO_REMOVE = T.let(T.unsafe(nil), Array)
|
@@ -1,153 +0,0 @@
|
|
1
|
-
# DO NOT EDIT MANUALLY
|
2
|
-
# This is an autogenerated file for types exported from the `rainbow` gem.
|
3
|
-
# Please instead update this file by running `bin/tapioca sync`.
|
4
|
-
|
5
|
-
# typed: true
|
6
|
-
|
7
|
-
module Rainbow
|
8
|
-
class << self
|
9
|
-
def enabled; end
|
10
|
-
def enabled=(value); end
|
11
|
-
def global; end
|
12
|
-
def new; end
|
13
|
-
def uncolor(string); end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
class Rainbow::Color
|
18
|
-
def ground; end
|
19
|
-
|
20
|
-
class << self
|
21
|
-
def build(ground, values); end
|
22
|
-
def parse_hex_color(hex); end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
class Rainbow::Color::Indexed < ::Rainbow::Color
|
27
|
-
def initialize(ground, num); end
|
28
|
-
|
29
|
-
def codes; end
|
30
|
-
def num; end
|
31
|
-
end
|
32
|
-
|
33
|
-
class Rainbow::Color::Named < ::Rainbow::Color::Indexed
|
34
|
-
def initialize(ground, name); end
|
35
|
-
|
36
|
-
class << self
|
37
|
-
def color_names; end
|
38
|
-
def valid_names; end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
|
43
|
-
|
44
|
-
class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
|
45
|
-
def initialize(ground, *values); end
|
46
|
-
|
47
|
-
def b; end
|
48
|
-
def codes; end
|
49
|
-
def g; end
|
50
|
-
def r; end
|
51
|
-
|
52
|
-
private
|
53
|
-
|
54
|
-
def code_from_rgb; end
|
55
|
-
|
56
|
-
class << self
|
57
|
-
def to_ansi_domain(value); end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
|
62
|
-
include ::Rainbow::X11ColorNames
|
63
|
-
|
64
|
-
def initialize(ground, name); end
|
65
|
-
|
66
|
-
class << self
|
67
|
-
def color_names; end
|
68
|
-
def valid_names; end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
class Rainbow::NullPresenter < ::String
|
73
|
-
def background(*_values); end
|
74
|
-
def bg(*_values); end
|
75
|
-
def black; end
|
76
|
-
def blink; end
|
77
|
-
def blue; end
|
78
|
-
def bold; end
|
79
|
-
def bright; end
|
80
|
-
def color(*_values); end
|
81
|
-
def cyan; end
|
82
|
-
def dark; end
|
83
|
-
def faint; end
|
84
|
-
def fg(*_values); end
|
85
|
-
def foreground(*_values); end
|
86
|
-
def green; end
|
87
|
-
def hide; end
|
88
|
-
def inverse; end
|
89
|
-
def italic; end
|
90
|
-
def magenta; end
|
91
|
-
def method_missing(method_name, *args); end
|
92
|
-
def red; end
|
93
|
-
def reset; end
|
94
|
-
def underline; end
|
95
|
-
def white; end
|
96
|
-
def yellow; end
|
97
|
-
|
98
|
-
private
|
99
|
-
|
100
|
-
def respond_to_missing?(method_name, *args); end
|
101
|
-
end
|
102
|
-
|
103
|
-
class Rainbow::Presenter < ::String
|
104
|
-
def background(*values); end
|
105
|
-
def bg(*values); end
|
106
|
-
def black; end
|
107
|
-
def blink; end
|
108
|
-
def blue; end
|
109
|
-
def bold; end
|
110
|
-
def bright; end
|
111
|
-
def color(*values); end
|
112
|
-
def cyan; end
|
113
|
-
def dark; end
|
114
|
-
def faint; end
|
115
|
-
def fg(*values); end
|
116
|
-
def foreground(*values); end
|
117
|
-
def green; end
|
118
|
-
def hide; end
|
119
|
-
def inverse; end
|
120
|
-
def italic; end
|
121
|
-
def magenta; end
|
122
|
-
def method_missing(method_name, *args); end
|
123
|
-
def red; end
|
124
|
-
def reset; end
|
125
|
-
def underline; end
|
126
|
-
def white; end
|
127
|
-
def yellow; end
|
128
|
-
|
129
|
-
private
|
130
|
-
|
131
|
-
def respond_to_missing?(method_name, *args); end
|
132
|
-
def wrap_with_sgr(codes); end
|
133
|
-
end
|
134
|
-
|
135
|
-
Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
|
136
|
-
|
137
|
-
class Rainbow::StringUtils
|
138
|
-
class << self
|
139
|
-
def uncolor(string); end
|
140
|
-
def wrap_with_sgr(string, codes); end
|
141
|
-
end
|
142
|
-
end
|
143
|
-
|
144
|
-
class Rainbow::Wrapper
|
145
|
-
def initialize(enabled = T.unsafe(nil)); end
|
146
|
-
|
147
|
-
def enabled; end
|
148
|
-
def enabled=(_arg0); end
|
149
|
-
def wrap(string); end
|
150
|
-
end
|
151
|
-
|
152
|
-
module Rainbow::X11ColorNames; end
|
153
|
-
Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)
|