gerrit 0.5.0 → 0.6.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
  SHA1:
3
- metadata.gz: b3eefb2813d2ee8ef4a5483b89e24452b8be748e
4
- data.tar.gz: 4931198fab15caed1fed6611833a054c3090a3ff
3
+ metadata.gz: cb7ead216089038833b2f01c867ee91f4944ecc5
4
+ data.tar.gz: 56a2cae1c26f94e4e4178b0ca16418694e6df85c
5
5
  SHA512:
6
- metadata.gz: 6c11d9e7fdb707dc9008c2b1391a16afc7f4c02c64159b34a7dd718b7b3b9f00cfce99a953c9a34a65d16c4ed5c1acbdae983b2a7ed22579649670edbd59a916
7
- data.tar.gz: 964136850e519b217c5e4f25c240832b24e123b1edea216f824d73569de591653b9a4e0ab64400c4145eb0c32fb8142319682f89fb36af418bf5ea8404aa8049
6
+ metadata.gz: 53a9a642a993190be6fbbf0288407183323f08f39d2172d1dbc102716c1c226fad210be6cf2191ae5b801ed3544714c953da726a450b45b9d952f77e4fcd1853
7
+ data.tar.gz: f2d479ce1dee58760cab7966bf9ecfe3df91f0c513b0bdac5a80696bb4717c4c2d34f5473baacda0071d283f905866097c709c620d65bf16d0e7d59c5b7cc47e
@@ -3,6 +3,20 @@ module Gerrit::Command
3
3
  class Help < Base
4
4
  def execute
5
5
  ui.print 'Usage: gerrit [command]'
6
+ ui.newline
7
+
8
+ ui.info 'Commands:'
9
+
10
+ commands.each do |command|
11
+ ui.print command
12
+ end
13
+ end
14
+
15
+ private
16
+
17
+ def commands
18
+ Dir[File.join(File.dirname(__FILE__), '*.rb')]
19
+ .map { |path| File.basename(path, '.rb') } - ['base']
6
20
  end
7
21
  end
8
22
  end
@@ -158,7 +158,7 @@ module Gerrit::Command
158
158
  .modify(:downcase)
159
159
  .read_string
160
160
 
161
- draft == 'y' ? 'draft' : 'publish'
161
+ draft == 'y' ? 'drafts' : 'publish'
162
162
  end
163
163
 
164
164
  def ask_topic
@@ -1,4 +1,4 @@
1
1
  # Defines the gem version.
2
2
  module Gerrit
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gerrit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-22 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess