rbi 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbi/printer.rb +13 -6
- data/lib/rbi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 727196c54429957687b3624d4b5a895e526973b045689a7689edb9cd73c97ca9
|
4
|
+
data.tar.gz: 115a6efabd78950aa980d0b03e3b9910f474ad03cdf04f7a87b56ed38bdc30b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7357ca0bb3e8700a95d1ea6e285e710f3545a9016e36bc0a64fe0682da80328d5c645b4d6cd3d14bba14e7ccd6b9134c225944ce27625de6a26a995f5283d173
|
7
|
+
data.tar.gz: 71559ec6d855d46d3ac7bb074dbfd24fa024aaa6563dd241a7c286b66d138bf18f6c6e688ee33df99bdc240cbd6f683ebc068cb5c98b7e2b37dde6d4c9debca8
|
data/lib/rbi/printer.rb
CHANGED
@@ -117,16 +117,23 @@ module RBI
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
-
sig
|
121
|
-
|
122
|
-
|
120
|
+
sig do
|
121
|
+
params(
|
122
|
+
out: T.any(IO, StringIO),
|
123
|
+
indent: Integer,
|
124
|
+
print_locs: T::Boolean,
|
125
|
+
max_line_length: T.nilable(Integer)
|
126
|
+
).void
|
127
|
+
end
|
128
|
+
def print(out: $stdout, indent: 0, print_locs: false, max_line_length: nil)
|
129
|
+
p = Printer.new(out: out, indent: indent, print_locs: print_locs, max_line_length: max_line_length)
|
123
130
|
p.visit_file(self)
|
124
131
|
end
|
125
132
|
|
126
|
-
sig { params(indent: Integer, print_locs: T::Boolean).returns(String) }
|
127
|
-
def string(indent: 0, print_locs: false)
|
133
|
+
sig { params(indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).returns(String) }
|
134
|
+
def string(indent: 0, print_locs: false, max_line_length: nil)
|
128
135
|
out = StringIO.new
|
129
|
-
print(out: out, indent: indent, print_locs: print_locs)
|
136
|
+
print(out: out, indent: indent, print_locs: print_locs, max_line_length: max_line_length)
|
130
137
|
out.string
|
131
138
|
end
|
132
139
|
end
|
data/lib/rbi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Terrasa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ast
|