packwerk 3.2.0 → 3.2.2
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.
- checksums.yaml +4 -4
- data/lib/packwerk/association_inspector.rb +17 -4
- data/lib/packwerk/checker.rb +3 -3
- data/lib/packwerk/configuration.rb +4 -0
- data/lib/packwerk/const_node_inspector.rb +2 -2
- data/lib/packwerk/constant_name_inspector.rb +2 -2
- data/lib/packwerk/offenses_formatter.rb +3 -3
- data/lib/packwerk/package.rb +1 -1
- data/lib/packwerk/package_todo.rb +1 -4
- data/lib/packwerk/parsers/factory.rb +3 -3
- data/lib/packwerk/parsers/ruby.rb +7 -0
- data/lib/packwerk/reference_extractor.rb +29 -1
- data/lib/packwerk/reference_offense.rb +1 -1
- data/lib/packwerk/run_context.rb +15 -4
- data/lib/packwerk/validator.rb +3 -3
- data/lib/packwerk/version.rb +1 -1
- data/lib/packwerk.rb +1 -0
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +3280 -3450
- data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +2322 -1782
- data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +2654 -3268
- data/sorbet/rbi/gems/ast@2.4.2.rbi +535 -6
- data/sorbet/rbi/gems/better_html@2.0.1.rbi +529 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +4 -4
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +32 -4
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +1750 -1840
- data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +15 -15
- data/sorbet/rbi/gems/crass@1.0.6.rbi +489 -5
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +24 -21
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +395 -395
- data/sorbet/rbi/gems/json@2.6.2.rbi +70 -77
- data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +1 -1
- data/sorbet/rbi/gems/loofah@2.18.0.rbi +134 -134
- data/sorbet/rbi/gems/m@1.6.0.rbi +60 -60
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +303 -0
- data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +22 -28
- data/sorbet/rbi/gems/minitest@5.16.2.rbi +384 -396
- data/sorbet/rbi/gems/mocha@1.14.0.rbi +589 -589
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +37 -32
- data/sorbet/rbi/gems/nokogiri@1.15.3.rbi +962 -946
- data/sorbet/rbi/gems/{parallel@1.22.1.rbi → parallel@1.24.0.rbi} +85 -82
- data/sorbet/rbi/gems/{parser@3.2.2.0.rbi → parser@3.3.1.0.rbi} +1679 -1609
- data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +1 -1
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.27.0.rbi} +13473 -6472
- data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.7.1.rbi} +42 -33
- data/sorbet/rbi/gems/rack-test@2.0.2.rbi +148 -338
- data/sorbet/rbi/gems/rack@2.2.4.rbi +1079 -1130
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +354 -22
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +113 -259
- data/sorbet/rbi/gems/railties@7.0.3.1.rbi +642 -638
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +109 -99
- data/sorbet/rbi/gems/rake@13.0.6.rbi +714 -599
- data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.12.rbi} +865 -801
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +853 -870
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +480 -477
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +1621 -1622
- data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +507 -526
- data/sorbet/rbi/gems/rubocop-shopify@2.9.0.rbi +1 -1
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +186 -203
- data/sorbet/rbi/gems/rubocop@1.34.1.rbi +8126 -8367
- data/sorbet/rbi/gems/{ruby-lsp@0.2.1.rbi → ruby-lsp@0.2.3.rbi} +2 -2
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +90 -90
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +4420 -0
- data/sorbet/rbi/gems/spring@4.0.0.rbi +104 -104
- data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +1 -1
- data/sorbet/rbi/gems/{tapioca@0.9.2.rbi → tapioca@0.13.3.rbi} +1596 -1253
- data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.3.1.rbi} +1047 -652
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +531 -513
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +13 -13
- data/sorbet/rbi/gems/{yard-sorbet@0.6.1.rbi → yard-sorbet@0.8.1.rbi} +132 -92
- data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.36.rbi} +3158 -3067
- data/sorbet/rbi/gems/zeitwerk@2.6.4.rbi +149 -145
- metadata +22 -94
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -27
- data/.github/pull_request_template.md +0 -28
- data/.github/workflows/ci.yml +0 -93
- data/.github/workflows/cla.yml +0 -22
- data/.gitignore +0 -13
- data/.rubocop.yml +0 -75
- data/.ruby-version +0 -1
- data/CODEOWNERS +0 -1
- data/CODE_OF_CONDUCT.md +0 -76
- data/CONTRIBUTING.md +0 -17
- data/Gemfile +0 -27
- data/Gemfile.lock +0 -206
- data/RESOLVING_VIOLATIONS.md +0 -76
- data/Rakefile +0 -22
- data/TROUBLESHOOT.md +0 -44
- data/UPGRADING.md +0 -66
- data/USAGE.md +0 -364
- data/bin/console +0 -15
- data/bin/m +0 -29
- data/bin/rake +0 -29
- data/bin/rubocop +0 -29
- data/bin/setup +0 -8
- data/bin/srb +0 -29
- data/bin/tapioca +0 -29
- data/dev.yml +0 -32
- data/docs/cohesion.png +0 -0
- data/gemfiles/Gemfile-rails-6-0 +0 -22
- data/gemfiles/Gemfile-rails-6-1 +0 -22
- data/packwerk.gemspec +0 -59
- data/shipit.rubygems.yml +0 -5
- data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +0 -2754
- data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +0 -1496
- data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +0 -2362
- data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +0 -1569
- data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +0 -2553
- data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +0 -5999
- data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +0 -37832
- data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +0 -2321
- data/sorbet/rbi/gems/better_html@1.0.16.rbi +0 -317
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1079
- data/sorbet/rbi/gems/digest@3.1.0.rbi +0 -189
- data/sorbet/rbi/gems/globalid@1.0.0.rbi +0 -572
- data/sorbet/rbi/gems/mail@2.7.1.rbi +0 -2490
- data/sorbet/rbi/gems/marcel@1.0.2.rbi +0 -220
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -76
- data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +0 -170
- data/sorbet/rbi/gems/net-imap@0.2.3.rbi +0 -2147
- data/sorbet/rbi/gems/net-pop@0.1.1.rbi +0 -926
- data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +0 -11
- data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +0 -1108
- data/sorbet/rbi/gems/nio4r@2.5.8.rbi +0 -292
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/rails@7.0.3.1.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -2181
- data/sorbet/rbi/gems/strscan@3.0.4.rbi +0 -8
- data/sorbet/rbi/gems/timeout@0.3.0.rbi +0 -142
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2582
- data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +0 -993
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -71
|
@@ -4,315 +4,325 @@
|
|
|
4
4
|
# This is an autogenerated file for types exported from the `rainbow` gem.
|
|
5
5
|
# Please instead update this file by running `bin/tapioca gem rainbow`.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
class Object < ::BasicObject
|
|
8
|
+
include ::Kernel
|
|
9
|
+
include ::PP::ObjectMixin
|
|
10
|
+
|
|
11
|
+
private
|
|
12
|
+
|
|
13
|
+
# source://rainbow//lib/rainbow/global.rb#23
|
|
14
|
+
def Rainbow(string); end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# source://rainbow//lib/rainbow/string_utils.rb#3
|
|
8
18
|
module Rainbow
|
|
9
19
|
class << self
|
|
10
|
-
# source://rainbow
|
|
20
|
+
# source://rainbow//lib/rainbow/global.rb#10
|
|
11
21
|
def enabled; end
|
|
12
22
|
|
|
13
|
-
# source://rainbow
|
|
23
|
+
# source://rainbow//lib/rainbow/global.rb#14
|
|
14
24
|
def enabled=(value); end
|
|
15
25
|
|
|
16
|
-
# source://rainbow
|
|
26
|
+
# source://rainbow//lib/rainbow/global.rb#6
|
|
17
27
|
def global; end
|
|
18
28
|
|
|
19
|
-
# source://rainbow
|
|
29
|
+
# source://rainbow//lib/rainbow.rb#6
|
|
20
30
|
def new; end
|
|
21
31
|
|
|
22
|
-
# source://rainbow
|
|
32
|
+
# source://rainbow//lib/rainbow/global.rb#18
|
|
23
33
|
def uncolor(string); end
|
|
24
34
|
end
|
|
25
35
|
end
|
|
26
36
|
|
|
27
|
-
# source://rainbow
|
|
37
|
+
# source://rainbow//lib/rainbow/color.rb#4
|
|
28
38
|
class Rainbow::Color
|
|
29
39
|
# Returns the value of attribute ground.
|
|
30
40
|
#
|
|
31
|
-
# source://rainbow
|
|
41
|
+
# source://rainbow//lib/rainbow/color.rb#5
|
|
32
42
|
def ground; end
|
|
33
43
|
|
|
34
44
|
class << self
|
|
35
|
-
# source://rainbow
|
|
45
|
+
# source://rainbow//lib/rainbow/color.rb#7
|
|
36
46
|
def build(ground, values); end
|
|
37
47
|
|
|
38
|
-
# source://rainbow
|
|
48
|
+
# source://rainbow//lib/rainbow/color.rb#40
|
|
39
49
|
def parse_hex_color(hex); end
|
|
40
50
|
end
|
|
41
51
|
end
|
|
42
52
|
|
|
43
|
-
# source://rainbow
|
|
53
|
+
# source://rainbow//lib/rainbow/color.rb#54
|
|
44
54
|
class Rainbow::Color::Indexed < ::Rainbow::Color
|
|
45
55
|
# @return [Indexed] a new instance of Indexed
|
|
46
56
|
#
|
|
47
|
-
# source://rainbow
|
|
57
|
+
# source://rainbow//lib/rainbow/color.rb#57
|
|
48
58
|
def initialize(ground, num); end
|
|
49
59
|
|
|
50
|
-
# source://rainbow
|
|
60
|
+
# source://rainbow//lib/rainbow/color.rb#62
|
|
51
61
|
def codes; end
|
|
52
62
|
|
|
53
63
|
# Returns the value of attribute num.
|
|
54
64
|
#
|
|
55
|
-
# source://rainbow
|
|
65
|
+
# source://rainbow//lib/rainbow/color.rb#55
|
|
56
66
|
def num; end
|
|
57
67
|
end
|
|
58
68
|
|
|
59
|
-
# source://rainbow
|
|
69
|
+
# source://rainbow//lib/rainbow/color.rb#69
|
|
60
70
|
class Rainbow::Color::Named < ::Rainbow::Color::Indexed
|
|
61
71
|
# @return [Named] a new instance of Named
|
|
62
72
|
#
|
|
63
|
-
# source://rainbow
|
|
73
|
+
# source://rainbow//lib/rainbow/color.rb#90
|
|
64
74
|
def initialize(ground, name); end
|
|
65
75
|
|
|
66
76
|
class << self
|
|
67
|
-
# source://rainbow
|
|
77
|
+
# source://rainbow//lib/rainbow/color.rb#82
|
|
68
78
|
def color_names; end
|
|
69
79
|
|
|
70
|
-
# source://rainbow
|
|
80
|
+
# source://rainbow//lib/rainbow/color.rb#86
|
|
71
81
|
def valid_names; end
|
|
72
82
|
end
|
|
73
83
|
end
|
|
74
84
|
|
|
75
|
-
# source://rainbow
|
|
85
|
+
# source://rainbow//lib/rainbow/color.rb#70
|
|
76
86
|
Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
|
|
77
87
|
|
|
78
|
-
# source://rainbow
|
|
88
|
+
# source://rainbow//lib/rainbow/color.rb#100
|
|
79
89
|
class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
|
|
80
90
|
# @return [RGB] a new instance of RGB
|
|
81
91
|
#
|
|
82
|
-
# source://rainbow
|
|
92
|
+
# source://rainbow//lib/rainbow/color.rb#107
|
|
83
93
|
def initialize(ground, *values); end
|
|
84
94
|
|
|
85
95
|
# Returns the value of attribute b.
|
|
86
96
|
#
|
|
87
|
-
# source://rainbow
|
|
97
|
+
# source://rainbow//lib/rainbow/color.rb#101
|
|
88
98
|
def b; end
|
|
89
99
|
|
|
90
|
-
# source://rainbow
|
|
100
|
+
# source://rainbow//lib/rainbow/color.rb#116
|
|
91
101
|
def codes; end
|
|
92
102
|
|
|
93
103
|
# Returns the value of attribute g.
|
|
94
104
|
#
|
|
95
|
-
# source://rainbow
|
|
105
|
+
# source://rainbow//lib/rainbow/color.rb#101
|
|
96
106
|
def g; end
|
|
97
107
|
|
|
98
108
|
# Returns the value of attribute r.
|
|
99
109
|
#
|
|
100
|
-
# source://rainbow
|
|
110
|
+
# source://rainbow//lib/rainbow/color.rb#101
|
|
101
111
|
def r; end
|
|
102
112
|
|
|
103
113
|
private
|
|
104
114
|
|
|
105
|
-
# source://rainbow
|
|
115
|
+
# source://rainbow//lib/rainbow/color.rb#122
|
|
106
116
|
def code_from_rgb; end
|
|
107
117
|
|
|
108
118
|
class << self
|
|
109
|
-
# source://rainbow
|
|
119
|
+
# source://rainbow//lib/rainbow/color.rb#103
|
|
110
120
|
def to_ansi_domain(value); end
|
|
111
121
|
end
|
|
112
122
|
end
|
|
113
123
|
|
|
114
|
-
# source://rainbow
|
|
124
|
+
# source://rainbow//lib/rainbow/color.rb#129
|
|
115
125
|
class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
|
|
116
126
|
include ::Rainbow::X11ColorNames
|
|
117
127
|
|
|
118
128
|
# @return [X11Named] a new instance of X11Named
|
|
119
129
|
#
|
|
120
|
-
# source://rainbow
|
|
130
|
+
# source://rainbow//lib/rainbow/color.rb#140
|
|
121
131
|
def initialize(ground, name); end
|
|
122
132
|
|
|
123
133
|
class << self
|
|
124
|
-
# source://rainbow
|
|
134
|
+
# source://rainbow//lib/rainbow/color.rb#132
|
|
125
135
|
def color_names; end
|
|
126
136
|
|
|
127
|
-
# source://rainbow
|
|
137
|
+
# source://rainbow//lib/rainbow/color.rb#136
|
|
128
138
|
def valid_names; end
|
|
129
139
|
end
|
|
130
140
|
end
|
|
131
141
|
|
|
132
|
-
# source://rainbow
|
|
142
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#4
|
|
133
143
|
class Rainbow::NullPresenter < ::String
|
|
134
|
-
# source://rainbow
|
|
144
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#9
|
|
135
145
|
def background(*_values); end
|
|
136
146
|
|
|
137
|
-
# source://rainbow
|
|
147
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#9
|
|
138
148
|
def bg(*_values); end
|
|
139
149
|
|
|
140
|
-
# source://rainbow
|
|
150
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#49
|
|
141
151
|
def black; end
|
|
142
152
|
|
|
143
|
-
# source://rainbow
|
|
153
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#33
|
|
144
154
|
def blink; end
|
|
145
155
|
|
|
146
|
-
# source://rainbow
|
|
156
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#65
|
|
147
157
|
def blue; end
|
|
148
158
|
|
|
149
|
-
# source://rainbow
|
|
159
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#17
|
|
150
160
|
def bold; end
|
|
151
161
|
|
|
152
|
-
# source://rainbow
|
|
162
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#17
|
|
153
163
|
def bright; end
|
|
154
164
|
|
|
155
|
-
# source://rainbow
|
|
165
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#5
|
|
156
166
|
def color(*_values); end
|
|
157
167
|
|
|
158
|
-
# source://rainbow
|
|
168
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#45
|
|
159
169
|
def cross_out; end
|
|
160
170
|
|
|
161
|
-
# source://rainbow
|
|
171
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#73
|
|
162
172
|
def cyan; end
|
|
163
173
|
|
|
164
|
-
# source://rainbow
|
|
174
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#21
|
|
165
175
|
def dark; end
|
|
166
176
|
|
|
167
|
-
# source://rainbow
|
|
177
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#21
|
|
168
178
|
def faint; end
|
|
169
179
|
|
|
170
|
-
# source://rainbow
|
|
180
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#5
|
|
171
181
|
def fg(*_values); end
|
|
172
182
|
|
|
173
|
-
# source://rainbow
|
|
183
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#5
|
|
174
184
|
def foreground(*_values); end
|
|
175
185
|
|
|
176
|
-
# source://rainbow
|
|
186
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#57
|
|
177
187
|
def green; end
|
|
178
188
|
|
|
179
|
-
# source://rainbow
|
|
189
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#41
|
|
180
190
|
def hide; end
|
|
181
191
|
|
|
182
|
-
# source://rainbow
|
|
192
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#37
|
|
183
193
|
def inverse; end
|
|
184
194
|
|
|
185
|
-
# source://rainbow
|
|
195
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#25
|
|
186
196
|
def italic; end
|
|
187
197
|
|
|
188
|
-
# source://rainbow
|
|
198
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#69
|
|
189
199
|
def magenta; end
|
|
190
200
|
|
|
191
|
-
# source://rainbow
|
|
201
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#81
|
|
192
202
|
def method_missing(method_name, *args); end
|
|
193
203
|
|
|
194
|
-
# source://rainbow
|
|
204
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#53
|
|
195
205
|
def red; end
|
|
196
206
|
|
|
197
|
-
# source://rainbow
|
|
207
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#13
|
|
198
208
|
def reset; end
|
|
199
209
|
|
|
200
|
-
# source://rainbow
|
|
210
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#45
|
|
201
211
|
def strike; end
|
|
202
212
|
|
|
203
|
-
# source://rainbow
|
|
213
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#29
|
|
204
214
|
def underline; end
|
|
205
215
|
|
|
206
|
-
# source://rainbow
|
|
216
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#77
|
|
207
217
|
def white; end
|
|
208
218
|
|
|
209
|
-
# source://rainbow
|
|
219
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#61
|
|
210
220
|
def yellow; end
|
|
211
221
|
|
|
212
222
|
private
|
|
213
223
|
|
|
214
224
|
# @return [Boolean]
|
|
215
225
|
#
|
|
216
|
-
# source://rainbow
|
|
226
|
+
# source://rainbow//lib/rainbow/null_presenter.rb#89
|
|
217
227
|
def respond_to_missing?(method_name, *args); end
|
|
218
228
|
end
|
|
219
229
|
|
|
220
|
-
# source://rainbow
|
|
230
|
+
# source://rainbow//lib/rainbow/presenter.rb#8
|
|
221
231
|
class Rainbow::Presenter < ::String
|
|
222
232
|
# Sets background color of this text.
|
|
223
233
|
#
|
|
224
|
-
# source://rainbow
|
|
234
|
+
# source://rainbow//lib/rainbow/presenter.rb#30
|
|
225
235
|
def background(*values); end
|
|
226
236
|
|
|
227
237
|
# Sets background color of this text.
|
|
228
238
|
#
|
|
229
|
-
# source://rainbow
|
|
239
|
+
# source://rainbow//lib/rainbow/presenter.rb#30
|
|
230
240
|
def bg(*values); end
|
|
231
241
|
|
|
232
|
-
# source://rainbow
|
|
242
|
+
# source://rainbow//lib/rainbow/presenter.rb#92
|
|
233
243
|
def black; end
|
|
234
244
|
|
|
235
245
|
# Turns on blinking attribute for this text (not well supported by terminal
|
|
236
246
|
# emulators).
|
|
237
247
|
#
|
|
238
|
-
# source://rainbow
|
|
248
|
+
# source://rainbow//lib/rainbow/presenter.rb#72
|
|
239
249
|
def blink; end
|
|
240
250
|
|
|
241
|
-
# source://rainbow
|
|
251
|
+
# source://rainbow//lib/rainbow/presenter.rb#108
|
|
242
252
|
def blue; end
|
|
243
253
|
|
|
244
254
|
# Turns on bright/bold for this text.
|
|
245
255
|
#
|
|
246
|
-
# source://rainbow
|
|
256
|
+
# source://rainbow//lib/rainbow/presenter.rb#45
|
|
247
257
|
def bold; end
|
|
248
258
|
|
|
249
259
|
# Turns on bright/bold for this text.
|
|
250
260
|
#
|
|
251
|
-
# source://rainbow
|
|
261
|
+
# source://rainbow//lib/rainbow/presenter.rb#45
|
|
252
262
|
def bright; end
|
|
253
263
|
|
|
254
264
|
# Sets color of this text.
|
|
255
265
|
#
|
|
256
|
-
# source://rainbow
|
|
266
|
+
# source://rainbow//lib/rainbow/presenter.rb#22
|
|
257
267
|
def color(*values); end
|
|
258
268
|
|
|
259
|
-
# source://rainbow
|
|
269
|
+
# source://rainbow//lib/rainbow/presenter.rb#86
|
|
260
270
|
def cross_out; end
|
|
261
271
|
|
|
262
|
-
# source://rainbow
|
|
272
|
+
# source://rainbow//lib/rainbow/presenter.rb#116
|
|
263
273
|
def cyan; end
|
|
264
274
|
|
|
265
275
|
# Turns on faint/dark for this text (not well supported by terminal
|
|
266
276
|
# emulators).
|
|
267
277
|
#
|
|
268
|
-
# source://rainbow
|
|
278
|
+
# source://rainbow//lib/rainbow/presenter.rb#53
|
|
269
279
|
def dark; end
|
|
270
280
|
|
|
271
281
|
# Turns on faint/dark for this text (not well supported by terminal
|
|
272
282
|
# emulators).
|
|
273
283
|
#
|
|
274
|
-
# source://rainbow
|
|
284
|
+
# source://rainbow//lib/rainbow/presenter.rb#53
|
|
275
285
|
def faint; end
|
|
276
286
|
|
|
277
287
|
# Sets color of this text.
|
|
278
288
|
#
|
|
279
|
-
# source://rainbow
|
|
289
|
+
# source://rainbow//lib/rainbow/presenter.rb#22
|
|
280
290
|
def fg(*values); end
|
|
281
291
|
|
|
282
292
|
# Sets color of this text.
|
|
283
293
|
#
|
|
284
|
-
# source://rainbow
|
|
294
|
+
# source://rainbow//lib/rainbow/presenter.rb#22
|
|
285
295
|
def foreground(*values); end
|
|
286
296
|
|
|
287
|
-
# source://rainbow
|
|
297
|
+
# source://rainbow//lib/rainbow/presenter.rb#100
|
|
288
298
|
def green; end
|
|
289
299
|
|
|
290
300
|
# Hides this text (set its color to the same as background).
|
|
291
301
|
#
|
|
292
|
-
# source://rainbow
|
|
302
|
+
# source://rainbow//lib/rainbow/presenter.rb#82
|
|
293
303
|
def hide; end
|
|
294
304
|
|
|
295
305
|
# Inverses current foreground/background colors.
|
|
296
306
|
#
|
|
297
|
-
# source://rainbow
|
|
307
|
+
# source://rainbow//lib/rainbow/presenter.rb#77
|
|
298
308
|
def inverse; end
|
|
299
309
|
|
|
300
310
|
# Turns on italic style for this text (not well supported by terminal
|
|
301
311
|
# emulators).
|
|
302
312
|
#
|
|
303
|
-
# source://rainbow
|
|
313
|
+
# source://rainbow//lib/rainbow/presenter.rb#61
|
|
304
314
|
def italic; end
|
|
305
315
|
|
|
306
|
-
# source://rainbow
|
|
316
|
+
# source://rainbow//lib/rainbow/presenter.rb#112
|
|
307
317
|
def magenta; end
|
|
308
318
|
|
|
309
319
|
# We take care of X11 color method call here.
|
|
310
320
|
# Such as #aqua, #ghostwhite.
|
|
311
321
|
#
|
|
312
|
-
# source://rainbow
|
|
322
|
+
# source://rainbow//lib/rainbow/presenter.rb#126
|
|
313
323
|
def method_missing(method_name, *args); end
|
|
314
324
|
|
|
315
|
-
# source://rainbow
|
|
325
|
+
# source://rainbow//lib/rainbow/presenter.rb#96
|
|
316
326
|
def red; end
|
|
317
327
|
|
|
318
328
|
# Resets terminal to default colors/backgrounds.
|
|
@@ -320,73 +330,73 @@ class Rainbow::Presenter < ::String
|
|
|
320
330
|
# It shouldn't be needed to use this method because all methods
|
|
321
331
|
# append terminal reset code to end of string.
|
|
322
332
|
#
|
|
323
|
-
# source://rainbow
|
|
333
|
+
# source://rainbow//lib/rainbow/presenter.rb#40
|
|
324
334
|
def reset; end
|
|
325
335
|
|
|
326
|
-
# source://rainbow
|
|
336
|
+
# source://rainbow//lib/rainbow/presenter.rb#86
|
|
327
337
|
def strike; end
|
|
328
338
|
|
|
329
339
|
# Turns on underline decoration for this text.
|
|
330
340
|
#
|
|
331
|
-
# source://rainbow
|
|
341
|
+
# source://rainbow//lib/rainbow/presenter.rb#66
|
|
332
342
|
def underline; end
|
|
333
343
|
|
|
334
|
-
# source://rainbow
|
|
344
|
+
# source://rainbow//lib/rainbow/presenter.rb#120
|
|
335
345
|
def white; end
|
|
336
346
|
|
|
337
|
-
# source://rainbow
|
|
347
|
+
# source://rainbow//lib/rainbow/presenter.rb#104
|
|
338
348
|
def yellow; end
|
|
339
349
|
|
|
340
350
|
private
|
|
341
351
|
|
|
342
352
|
# @return [Boolean]
|
|
343
353
|
#
|
|
344
|
-
# source://rainbow
|
|
354
|
+
# source://rainbow//lib/rainbow/presenter.rb#134
|
|
345
355
|
def respond_to_missing?(method_name, *args); end
|
|
346
356
|
|
|
347
|
-
# source://rainbow
|
|
357
|
+
# source://rainbow//lib/rainbow/presenter.rb#140
|
|
348
358
|
def wrap_with_sgr(codes); end
|
|
349
359
|
end
|
|
350
360
|
|
|
351
|
-
# source://rainbow
|
|
361
|
+
# source://rainbow//lib/rainbow/presenter.rb#9
|
|
352
362
|
Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
|
|
353
363
|
|
|
354
|
-
# source://rainbow
|
|
364
|
+
# source://rainbow//lib/rainbow/string_utils.rb#4
|
|
355
365
|
class Rainbow::StringUtils
|
|
356
366
|
class << self
|
|
357
|
-
# source://rainbow
|
|
367
|
+
# source://rainbow//lib/rainbow/string_utils.rb#17
|
|
358
368
|
def uncolor(string); end
|
|
359
369
|
|
|
360
|
-
# source://rainbow
|
|
370
|
+
# source://rainbow//lib/rainbow/string_utils.rb#5
|
|
361
371
|
def wrap_with_sgr(string, codes); end
|
|
362
372
|
end
|
|
363
373
|
end
|
|
364
374
|
|
|
365
|
-
# source://rainbow
|
|
375
|
+
# source://rainbow//lib/rainbow/wrapper.rb#7
|
|
366
376
|
class Rainbow::Wrapper
|
|
367
377
|
# @return [Wrapper] a new instance of Wrapper
|
|
368
378
|
#
|
|
369
|
-
# source://rainbow
|
|
379
|
+
# source://rainbow//lib/rainbow/wrapper.rb#10
|
|
370
380
|
def initialize(enabled = T.unsafe(nil)); end
|
|
371
381
|
|
|
372
382
|
# Returns the value of attribute enabled.
|
|
373
383
|
#
|
|
374
|
-
# source://rainbow
|
|
384
|
+
# source://rainbow//lib/rainbow/wrapper.rb#8
|
|
375
385
|
def enabled; end
|
|
376
386
|
|
|
377
387
|
# Sets the attribute enabled
|
|
378
388
|
#
|
|
379
389
|
# @param value the value to set the attribute enabled to.
|
|
380
390
|
#
|
|
381
|
-
# source://rainbow
|
|
391
|
+
# source://rainbow//lib/rainbow/wrapper.rb#8
|
|
382
392
|
def enabled=(_arg0); end
|
|
383
393
|
|
|
384
|
-
# source://rainbow
|
|
394
|
+
# source://rainbow//lib/rainbow/wrapper.rb#14
|
|
385
395
|
def wrap(string); end
|
|
386
396
|
end
|
|
387
397
|
|
|
388
|
-
# source://rainbow
|
|
398
|
+
# source://rainbow//lib/rainbow/x11_color_names.rb#4
|
|
389
399
|
module Rainbow::X11ColorNames; end
|
|
390
400
|
|
|
391
|
-
# source://rainbow
|
|
401
|
+
# source://rainbow//lib/rainbow/x11_color_names.rb#5
|
|
392
402
|
Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)
|