gelauto 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f30fb13511510689896025318cf0e8ab0683858b6de8dc842ed4a208e25b707
4
- data.tar.gz: 84a29515b428bdef7ea874bb50ab965dcaf82ad57b7b1f69cfd6925e727f70ce
3
+ metadata.gz: 12cc9a0a73a5ed28daf5df44cc9b0ece74b51ce1e28114b55f9868e956816420
4
+ data.tar.gz: b77e3b82e0b89a84473dda0db7d20978926e879c25a3ee484d74af04d058edd4
5
5
  SHA512:
6
- metadata.gz: 2396eeba2dc4c3249df90c1b6e5f9f7532573dd9eaaffb13e16f2e3422a6f92f4b01bfbef6c536f6130331fb35ce4853754700340c0a021253cd81bbe8c4c9e7
7
- data.tar.gz: 8dcf58d657ddf118d8f21f0b041490168dd7df11e99e25eafc9a28d9fac6990fb5768fdfed4625c6bf9378aee4c90801c2222b458756c45de59737e887e78331
6
+ metadata.gz: '04583e3ed26dd8537ca43b5c0beb8202f2ecc64a91e49b8e88b38c916ecb0ac2253894527332dd156344cc6056d10239b83932b241e28f575ace51aa069d7f8e'
7
+ data.tar.gz: 8a60e3eb0ae8c43f9ba58625338bbeba9ff7bbba9e7569cedd218a332d976656c61306ac60c10ade2c09010d5e41d808493e0ca489633d21f424b8006376435a
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## gelauto [![Build Status](https://secure.travis-ci.org/camertron/gelauto.png?branch=master)](http://travis-ci.org/camertron/gelauto)
1
+ ## gelauto [![Build Status](https://travis-ci.com/camertron/gelauto.svg?branch=master)](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
- If you choose to run Gelauto without the `--annotate` flag, Gelauto will print results to standard output in [RBI format](https://sorbet.org/docs/rbi) and not modify any of your Ruby files.
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)
@@ -1,3 +1,3 @@
1
1
  module Gelauto
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
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.1.0
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-08 00:00:00.000000000 Z
11
+ date: 2019-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser