gelauto 1.1.0 → 1.2.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 +4 -4
- data/README.md +2 -2
- data/bin/gelauto +10 -0
- data/lib/gelauto/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: 12cc9a0a73a5ed28daf5df44cc9b0ece74b51ce1e28114b55f9868e956816420
|
|
4
|
+
data.tar.gz: b77e3b82e0b89a84473dda0db7d20978926e879c25a3ee484d74af04d058edd4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '04583e3ed26dd8537ca43b5c0beb8202f2ecc64a91e49b8e88b38c916ecb0ac2253894527332dd156344cc6056d10239b83932b241e28f575ace51aa069d7f8e'
|
|
7
|
+
data.tar.gz: 8a60e3eb0ae8c43f9ba58625338bbeba9ff7bbba9e7569cedd218a332d976656c61306ac60c10ade2c09010d5e41d808493e0ca489633d21f424b8006376435a
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## gelauto [](https://travis-ci.com/camertron/gelauto)
|
|
2
2
|
|
|
3
3
|
Automatically annotate your code with Sorbet type definitions.
|
|
4
4
|
|
|
@@ -50,7 +50,7 @@ Like most RSpec test suites, let's assume ours is stored in the `spec/` director
|
|
|
50
50
|
gelauto run --annotate $(find . -name '*.rb') -- bundle exec rspec spec/
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
You can also choose to run Gelauto with the `--rbi` flag, which will cause Gelauto to print results to standard output in [RBI format](https://sorbet.org/docs/rbi).
|
|
54
54
|
|
|
55
55
|
### Gelauto in your Bundle
|
|
56
56
|
|
data/bin/gelauto
CHANGED
|
@@ -6,6 +6,11 @@ require 'gli'
|
|
|
6
6
|
|
|
7
7
|
module Gelauto
|
|
8
8
|
module CLI
|
|
9
|
+
def self.print_global_help
|
|
10
|
+
puts "\nExample Usage: gelauto [ --silent ] run [ --annotate ] [ --rbi ] $(find . -name '*.rb') -- bundle exec rspec spec/\n\n"
|
|
11
|
+
commands[:help].execute({}, {}, [])
|
|
12
|
+
end
|
|
13
|
+
|
|
9
14
|
extend GLI::App
|
|
10
15
|
|
|
11
16
|
program_desc 'Automatically annotate methods with Sorbet type signatures.'
|
|
@@ -72,4 +77,9 @@ module Gelauto
|
|
|
72
77
|
end
|
|
73
78
|
end
|
|
74
79
|
|
|
80
|
+
if ARGV.empty?
|
|
81
|
+
Gelauto::CLI.print_global_help
|
|
82
|
+
exit 1
|
|
83
|
+
end
|
|
84
|
+
|
|
75
85
|
exit Gelauto::CLI.run(ARGV)
|
data/lib/gelauto/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gelauto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cameron Dutro
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-07-
|
|
11
|
+
date: 2019-07-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parser
|