pronto-sorbet 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/pronto/sorbet.rb +6 -3
- data/lib/pronto/sorbet/version.rb +1 -1
- data/pronto-sorbet.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1573c72a0d15d10b361ccc956c4577e9d1a87edfebbbd1eca13edda5b0d4affa
|
4
|
+
data.tar.gz: 0bcc64e34e87968365c6a0f255990a57fdf57c0e5c510f43fa45da89051dc930
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b7753b5d5e3f443dc5ad316cc43e0f09ffee6d94ece72746fc41e53c37af4792921142a268eea0abf7c831b982706a1302b5600dc44696fe5f880c10fb2c9fb
|
7
|
+
data.tar.gz: 050c9c3b26fdcde0c96beb6bce85ae1352eb565d189b061b29f3a8452570708114ce9404e8e7db489153e2f5409713dbd42aa0eb811598d0c6f2027d1128cac4
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
# Pronto runner for
|
1
|
+
# Pronto runner for Sorbet
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/pronto-sorbet.png)](https://badge.fury.io/rb/pronto-sorbet)
|
2
4
|
|
3
5
|
Pronto runner for [Sorbet](https://sorbet.org/), a static type checker for [Ruby](https://www.ruby-lang.org/). [What is Pronto?](https://github.com/prontolabs/pronto)
|
4
6
|
|
data/lib/pronto/sorbet.rb
CHANGED
@@ -18,11 +18,14 @@ module Pronto
|
|
18
18
|
Dir.chdir(repo_path) do
|
19
19
|
output, _ = Open3.capture2e(sorbet_executable, 'tc')
|
20
20
|
|
21
|
-
output.split("\n")[0..-2].
|
22
|
-
|
21
|
+
output.split("\n")[0..-2].slice_before do |line|
|
22
|
+
![nil, ' '].include?(line[0])
|
23
|
+
end.map do |lines|
|
24
|
+
filename, line, message = lines.first&.split(':', 3)
|
25
|
+
next if line.nil? || message.nil?
|
23
26
|
{ filename: filename, line: line.to_i, message: message.lstrip,
|
24
27
|
details: lines[1..-1].join("\n").rstrip }
|
25
|
-
end
|
28
|
+
end.compact
|
26
29
|
end
|
27
30
|
rescue SystemCallError
|
28
31
|
[]
|
data/pronto-sorbet.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pronto-sorbet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashish Kulkarni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pronto
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 12.3.3
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 12.3.3
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- opensource@simplepay.cloud
|