rubysky 0.1.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.
- checksums.yaml +7 -0
- data/.gem_rbs_collection/activesupport/7.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/activesupport/7.0/activesupport-7.0.rbs +140 -0
- data/.gem_rbs_collection/activesupport/7.0/activesupport-generated.rbs +11950 -0
- data/.gem_rbs_collection/activesupport/7.0/activesupport.rbs +583 -0
- data/.gem_rbs_collection/activesupport/7.0/manifest.yaml +16 -0
- data/.gem_rbs_collection/activesupport/7.0/patch.rbs +55 -0
- data/.gem_rbs_collection/ast/2.4/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/ast/2.4/ast.rbs +73 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/array.rbs +4 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/executor.rbs +26 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/hash.rbs +4 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/map.rbs +58 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/promises.rbs +249 -0
- data/.gem_rbs_collection/concurrent-ruby/1.1/utility/processor_counter.rbs +5 -0
- data/.gem_rbs_collection/connection_pool/2.4/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/connection_pool/2.4/connection_pool.rbs +34 -0
- data/.gem_rbs_collection/connection_pool/2.4/manifest.yaml +2 -0
- data/.gem_rbs_collection/diff-lcs/1.5/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/diff-lcs/1.5/diff-lcs.rbs +11 -0
- data/.gem_rbs_collection/i18n/1.10/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/i18n/1.10/backend.rbs +269 -0
- data/.gem_rbs_collection/i18n/1.10/i18n.rbs +117 -0
- data/.gem_rbs_collection/listen/3.9/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/listen/3.9/listen.rbs +25 -0
- data/.gem_rbs_collection/listen/3.9/listener.rbs +24 -0
- data/.gem_rbs_collection/parallel/1.20/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/parallel/1.20/parallel.rbs +86 -0
- data/.gem_rbs_collection/parser/3.2/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/parser/3.2/manifest.yaml +7 -0
- data/.gem_rbs_collection/parser/3.2/parser.rbs +104 -0
- data/.gem_rbs_collection/parser/3.2/polyfill.rbs +4 -0
- data/.gem_rbs_collection/rainbow/3.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/rainbow/3.0/global.rbs +7 -0
- data/.gem_rbs_collection/rainbow/3.0/presenter.rbs +209 -0
- data/.gem_rbs_collection/rainbow/3.0/rainbow.rbs +5 -0
- data/.gem_rbs_collection/rake/13.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/rake/13.0/manifest.yaml +2 -0
- data/.gem_rbs_collection/rake/13.0/rake.rbs +28 -0
- data/.gem_rbs_collection/regexp_parser/2.8/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/regexp_parser/2.8/regexp_parser.rbs +17 -0
- data/.gem_rbs_collection/rubocop/1.57/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/rubocop/1.57/rubocop.rbs +34 -0
- data/.gem_rbs_collection/rubocop-ast/1.30/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/rubocop-ast/1.30/rubocop-ast.rbs +15 -0
- data/.gem_rbs_collection/tzinfo/2.0/.rbs_meta.yaml +9 -0
- data/.gem_rbs_collection/tzinfo/2.0/manifest.yaml +7 -0
- data/.gem_rbs_collection/tzinfo/2.0/tzinfo.rbs +601 -0
- data/.rspec +3 -0
- data/.rubocop.yml +18 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +12 -0
- data/Steepfile +32 -0
- data/lib/rubysky/client.rb +40 -0
- data/lib/rubysky/post.rb +15 -0
- data/lib/rubysky/raw/client.rb +133 -0
- data/lib/rubysky/raw/did_doc.rb +15 -0
- data/lib/rubysky/raw/embed.rb +18 -0
- data/lib/rubysky/raw/post.rb +29 -0
- data/lib/rubysky/raw/session.rb +41 -0
- data/lib/rubysky/version.rb +5 -0
- data/lib/rubysky.rb +17 -0
- data/rbs_collection.lock.yaml +232 -0
- data/rbs_collection.yaml +18 -0
- data/sig/rubysky.rbs +101 -0
- metadata +129 -0
@@ -0,0 +1,209 @@
|
|
1
|
+
module Rainbow
|
2
|
+
class Presenter < String
|
3
|
+
# Sets color of this text.
|
4
|
+
def color: (*Symbol values) -> instance
|
5
|
+
|
6
|
+
alias foreground color
|
7
|
+
|
8
|
+
alias fg color
|
9
|
+
|
10
|
+
# Sets background color of this text.
|
11
|
+
def background: (*Symbol values) -> instance
|
12
|
+
|
13
|
+
alias bg background
|
14
|
+
|
15
|
+
# Resets terminal to default colors/backgrounds.
|
16
|
+
#
|
17
|
+
# It shouldn't be needed to use this method because all methods
|
18
|
+
# append terminal reset code to end of string.
|
19
|
+
def reset: () -> instance
|
20
|
+
|
21
|
+
# Turns on bright/bold for this text.
|
22
|
+
def bright: () -> instance
|
23
|
+
|
24
|
+
alias bold bright
|
25
|
+
|
26
|
+
# Turns on faint/dark for this text (not well supported by terminal
|
27
|
+
# emulators).
|
28
|
+
def faint: () -> instance
|
29
|
+
|
30
|
+
# Turns on italic style for this text (not well supported by terminal
|
31
|
+
# emulators).
|
32
|
+
def italic: () -> instance
|
33
|
+
|
34
|
+
# Turns on underline decoration for this text.
|
35
|
+
def underline: () -> instance
|
36
|
+
|
37
|
+
# Turns on blinking attribute for this text (not well supported by terminal
|
38
|
+
# emulators).
|
39
|
+
def blink: () -> instance
|
40
|
+
|
41
|
+
# Inverses current foreground/background colors.
|
42
|
+
def inverse: () -> instance
|
43
|
+
|
44
|
+
# Hides this text (set its color to the same as background).
|
45
|
+
def hide: () -> instance
|
46
|
+
|
47
|
+
def black: () -> instance
|
48
|
+
|
49
|
+
def red: () -> instance
|
50
|
+
|
51
|
+
def green: () -> instance
|
52
|
+
|
53
|
+
def yellow: () -> instance
|
54
|
+
|
55
|
+
def blue: () -> instance
|
56
|
+
|
57
|
+
def magenta: () -> instance
|
58
|
+
|
59
|
+
def cyan: () -> instance
|
60
|
+
|
61
|
+
def white: () -> instance
|
62
|
+
|
63
|
+
# We take care of X11 color method call here.
|
64
|
+
# Such as #aqua, #ghostwhite.
|
65
|
+
def method_missing: (untyped method_name, *untyped args) -> untyped
|
66
|
+
|
67
|
+
def respond_to_missing?: (untyped method_name, *untyped args) -> bool
|
68
|
+
|
69
|
+
def wrap_with_sgr: (untyped codes) -> instance
|
70
|
+
|
71
|
+
def aliceblue: () -> instance
|
72
|
+
def antiquewhite: () -> instance
|
73
|
+
def aqua: () -> instance
|
74
|
+
def aquamarine: () -> instance
|
75
|
+
def azure: () -> instance
|
76
|
+
def beige: () -> instance
|
77
|
+
def bisque: () -> instance
|
78
|
+
def blanchedalmond: () -> instance
|
79
|
+
def blueviolet: () -> instance
|
80
|
+
def brown: () -> instance
|
81
|
+
def burlywood: () -> instance
|
82
|
+
def cadetblue: () -> instance
|
83
|
+
def chartreuse: () -> instance
|
84
|
+
def chocolate: () -> instance
|
85
|
+
def coral: () -> instance
|
86
|
+
def cornflower: () -> instance
|
87
|
+
def cornsilk: () -> instance
|
88
|
+
def crimson: () -> instance
|
89
|
+
def darkblue: () -> instance
|
90
|
+
def darkcyan: () -> instance
|
91
|
+
def darkgoldenrod: () -> instance
|
92
|
+
def darkgray: () -> instance
|
93
|
+
def darkgreen: () -> instance
|
94
|
+
def darkkhaki: () -> instance
|
95
|
+
def darkmagenta: () -> instance
|
96
|
+
def darkolivegreen: () -> instance
|
97
|
+
def darkorange: () -> instance
|
98
|
+
def darkorchid: () -> instance
|
99
|
+
def darkred: () -> instance
|
100
|
+
def darksalmon: () -> instance
|
101
|
+
def darkseagreen: () -> instance
|
102
|
+
def darkslateblue: () -> instance
|
103
|
+
def darkslategray: () -> instance
|
104
|
+
def darkturquoise: () -> instance
|
105
|
+
def darkviolet: () -> instance
|
106
|
+
def deeppink: () -> instance
|
107
|
+
def deepskyblue: () -> instance
|
108
|
+
def dimgray: () -> instance
|
109
|
+
def dodgerblue: () -> instance
|
110
|
+
def firebrick: () -> instance
|
111
|
+
def floralwhite: () -> instance
|
112
|
+
def forestgreen: () -> instance
|
113
|
+
def fuchsia: () -> instance
|
114
|
+
def gainsboro: () -> instance
|
115
|
+
def ghostwhite: () -> instance
|
116
|
+
def gold: () -> instance
|
117
|
+
def goldenrod: () -> instance
|
118
|
+
def gray: () -> instance
|
119
|
+
def greenyellow: () -> instance
|
120
|
+
def honeydew: () -> instance
|
121
|
+
def hotpink: () -> instance
|
122
|
+
def indianred: () -> instance
|
123
|
+
def indigo: () -> instance
|
124
|
+
def ivory: () -> instance
|
125
|
+
def khaki: () -> instance
|
126
|
+
def lavender: () -> instance
|
127
|
+
def lavenderblush: () -> instance
|
128
|
+
def lawngreen: () -> instance
|
129
|
+
def lemonchiffon: () -> instance
|
130
|
+
def lightblue: () -> instance
|
131
|
+
def lightcoral: () -> instance
|
132
|
+
def lightcyan: () -> instance
|
133
|
+
def lightgoldenrod: () -> instance
|
134
|
+
def lightgray: () -> instance
|
135
|
+
def lightgreen: () -> instance
|
136
|
+
def lightpink: () -> instance
|
137
|
+
def lightsalmon: () -> instance
|
138
|
+
def lightseagreen: () -> instance
|
139
|
+
def lightskyblue: () -> instance
|
140
|
+
def lightslategray: () -> instance
|
141
|
+
def lightsteelblue: () -> instance
|
142
|
+
def lightyellow: () -> instance
|
143
|
+
def lime: () -> instance
|
144
|
+
def limegreen: () -> instance
|
145
|
+
def linen: () -> instance
|
146
|
+
def maroon: () -> instance
|
147
|
+
def mediumaquamarine: () -> instance
|
148
|
+
def mediumblue: () -> instance
|
149
|
+
def mediumorchid: () -> instance
|
150
|
+
def mediumpurple: () -> instance
|
151
|
+
def mediumseagreen: () -> instance
|
152
|
+
def mediumslateblue: () -> instance
|
153
|
+
def mediumspringgreen: () -> instance
|
154
|
+
def mediumturquoise: () -> instance
|
155
|
+
def mediumvioletred: () -> instance
|
156
|
+
def midnightblue: () -> instance
|
157
|
+
def mintcream: () -> instance
|
158
|
+
def mistyrose: () -> instance
|
159
|
+
def moccasin: () -> instance
|
160
|
+
def navajowhite: () -> instance
|
161
|
+
def navyblue: () -> instance
|
162
|
+
def oldlace: () -> instance
|
163
|
+
def olive: () -> instance
|
164
|
+
def olivedrab: () -> instance
|
165
|
+
def orange: () -> instance
|
166
|
+
def orangered: () -> instance
|
167
|
+
def orchid: () -> instance
|
168
|
+
def palegoldenrod: () -> instance
|
169
|
+
def palegreen: () -> instance
|
170
|
+
def paleturquoise: () -> instance
|
171
|
+
def palevioletred: () -> instance
|
172
|
+
def papayawhip: () -> instance
|
173
|
+
def peachpuff: () -> instance
|
174
|
+
def peru: () -> instance
|
175
|
+
def pink: () -> instance
|
176
|
+
def plum: () -> instance
|
177
|
+
def powderblue: () -> instance
|
178
|
+
def purple: () -> instance
|
179
|
+
def rebeccapurple: () -> instance
|
180
|
+
def rosybrown: () -> instance
|
181
|
+
def royalblue: () -> instance
|
182
|
+
def saddlebrown: () -> instance
|
183
|
+
def salmon: () -> instance
|
184
|
+
def sandybrown: () -> instance
|
185
|
+
def seagreen: () -> instance
|
186
|
+
def seashell: () -> instance
|
187
|
+
def sienna: () -> instance
|
188
|
+
def silver: () -> instance
|
189
|
+
def skyblue: () -> instance
|
190
|
+
def slateblue: () -> instance
|
191
|
+
def slategray: () -> instance
|
192
|
+
def snow: () -> instance
|
193
|
+
def springgreen: () -> instance
|
194
|
+
def steelblue: () -> instance
|
195
|
+
def tan: () -> instance
|
196
|
+
def teal: () -> instance
|
197
|
+
def thistle: () -> instance
|
198
|
+
def tomato: () -> instance
|
199
|
+
def turquoise: () -> instance
|
200
|
+
def violet: () -> instance
|
201
|
+
def webgray: () -> instance
|
202
|
+
def webgreen: () -> instance
|
203
|
+
def webmaroon: () -> instance
|
204
|
+
def webpurple: () -> instance
|
205
|
+
def wheat: () -> instance
|
206
|
+
def whitesmoke: () -> instance
|
207
|
+
def yellowgreen: () -> instance
|
208
|
+
end
|
209
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Rake
|
2
|
+
class TaskLib
|
3
|
+
include Rake::DSL
|
4
|
+
end
|
5
|
+
|
6
|
+
module DSL
|
7
|
+
private
|
8
|
+
|
9
|
+
include FileUtils
|
10
|
+
|
11
|
+
def desc: (String description) -> void
|
12
|
+
def directory: (*untyped args) ?{ () -> void } -> void
|
13
|
+
def file: (*untyped args) ?{ () -> void } -> void
|
14
|
+
def file_create: (*untyped args) ?{ () -> void } -> void
|
15
|
+
def import: (*String fns) -> void
|
16
|
+
def multitask: (*untyped args) ?{ () -> void } -> void
|
17
|
+
def namespace: (?untyped name) ?{ () -> void } -> void
|
18
|
+
def rule: (*untyped args) ?{ () -> void } -> void
|
19
|
+
def task: (*untyped args) ?{ () -> void } -> void
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
module FileUtils
|
24
|
+
def sh: (*String cmd, **untyped options) ?{ (bool, Process::Status) -> void } -> void
|
25
|
+
def ruby: (*String args, **untyped options) ?{ (bool, Process::Status) -> void } -> void
|
26
|
+
def safe_ln: (*untyped args, **untyped options) -> void
|
27
|
+
def split_all: (String path) -> Array[String]
|
28
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Regexp::Parser
|
2
|
+
def parse: [T] (Regexp | String input, ?String? syntax, ?options: Integer?) { (Regexp::Expression::Root) -> T } -> T
|
3
|
+
| (Regexp | String input, ?String? syntax, ?options: Integer?) -> Regexp::Expression::Root
|
4
|
+
def self.parse: [T] (Regexp | String input, ?String? syntax, ?options: Integer?) { (Regexp::Expression::Root) -> T } -> T
|
5
|
+
| (Regexp | String input, ?String? syntax, ?options: Integer?) -> Regexp::Expression::Root
|
6
|
+
end
|
7
|
+
|
8
|
+
module Regexp::Expression
|
9
|
+
class Root < Subexpression
|
10
|
+
end
|
11
|
+
|
12
|
+
class Subexpression < Base
|
13
|
+
end
|
14
|
+
|
15
|
+
class Base
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module RuboCop
|
2
|
+
class ConfigLoader
|
3
|
+
def self.debug?: () -> boolish
|
4
|
+
def self.merge_with_default: (Config, String) -> Config
|
5
|
+
end
|
6
|
+
|
7
|
+
class Config
|
8
|
+
def initialize: (Hash[untyped, untyped], String) -> void
|
9
|
+
end
|
10
|
+
|
11
|
+
module Cop
|
12
|
+
class Base
|
13
|
+
extend AST::NodePattern::Macros
|
14
|
+
|
15
|
+
def add_offense: (untyped node, ?message: String, ?severity: Symbol) -> void |
|
16
|
+
(untyped node, ?message: String, ?severity: Symbol) {(Corrector) -> void} -> void
|
17
|
+
def cop_config: () -> Hash[String, untyped]
|
18
|
+
def processed_source: () -> AST::ProcessedSource
|
19
|
+
end
|
20
|
+
|
21
|
+
class Corrector < Parser::Source::TreeRewriter
|
22
|
+
end
|
23
|
+
|
24
|
+
module RangeHelp
|
25
|
+
def source_range: (Parser::Source::Buffer source_buffer, Integer line_number, Integer column, ?Integer length) -> Parser::Source::Range
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class ProcessedSource = AST::ProcessedSource
|
30
|
+
|
31
|
+
module AutoCorrector
|
32
|
+
def support_autocorrect?: () -> true
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module RuboCop
|
2
|
+
module AST
|
3
|
+
class ProcessedSource
|
4
|
+
def raw_source: () -> String
|
5
|
+
def buffer: () -> Parser::Source::Buffer
|
6
|
+
def comments: () -> Array[Parser::Source::Comment]
|
7
|
+
end
|
8
|
+
|
9
|
+
module NodePattern
|
10
|
+
module Macros
|
11
|
+
def def_node_matcher: (Symbol, String) -> void
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# manifest.yaml describes dependencies which do not appear in the gemspec.
|
2
|
+
# If this gem includes such dependencies, comment-out the following lines and
|
3
|
+
# declare the dependencies.
|
4
|
+
# If all dependencies appear in the gemspec, you should remove this file.
|
5
|
+
#
|
6
|
+
dependencies:
|
7
|
+
- name: date
|