gerrit-cli 0.0.1

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.
@@ -0,0 +1,5 @@
1
+ module Gerrit
2
+ module Cli
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require 'rspec'
data/spec/util_spec.rb ADDED
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ require 'gerrit/cli/util'
4
+
5
+ describe Gerrit::Cli::Util do
6
+ describe '.render_table' do
7
+ it 'should return an empty string if supplied with now rows' do
8
+ Gerrit::Cli::Util.render_table([]).should == ''
9
+ end
10
+
11
+ it 'should raise an error if column counts do not match' do
12
+ rows = [[1], [1, 2]]
13
+ expect do
14
+ Gerrit::Cli::Util.render_table(rows)
15
+ end.to raise_error(/column mismatch/i)
16
+ end
17
+
18
+ it 'should pad each column to the max. length element' do
19
+ rows = [["a", "bb", "ccc"],
20
+ ["aa", "bbb", "cccc"]]
21
+ table = Gerrit::Cli::Util.render_table(rows)
22
+ expected = "a bb ccc \n" \
23
+ + "aa bbb cccc"
24
+ table.should == expected
25
+ end
26
+ end
27
+ end
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gerrit-cli
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - VMware
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-04-09 00:00:00 -07:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rake
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ type: :development
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: "0"
36
+ type: :development
37
+ version_requirements: *id002
38
+ description: This provides a tool for easing common interactions with Gerrit. It is mostly orthogonal to the `repo' tool and tries not to interfere with your workflow.
39
+ email:
40
+ - support@vmware.com
41
+ executables:
42
+ - gerrit
43
+ extensions: []
44
+
45
+ extra_rdoc_files: []
46
+
47
+ files:
48
+ - bin/gerrit
49
+ - Gemfile
50
+ - gerrit-cli.gemspec
51
+ - lib/gerrit/cli/command/base.rb
52
+ - lib/gerrit/cli/command/clone.rb
53
+ - lib/gerrit/cli/command/help.rb
54
+ - lib/gerrit/cli/command/push.rb
55
+ - lib/gerrit/cli/constants.rb
56
+ - lib/gerrit/cli/dispatcher.rb
57
+ - lib/gerrit/cli/errors.rb
58
+ - lib/gerrit/cli/shell_runner.rb
59
+ - lib/gerrit/cli/util.rb
60
+ - lib/gerrit/cli/version.rb
61
+ - LICENSE
62
+ - Rakefile
63
+ - README.md
64
+ - spec/spec_helper.rb
65
+ - spec/util_spec.rb
66
+ has_rdoc: true
67
+ homepage: http://www.cloudfoundry.org
68
+ licenses: []
69
+
70
+ post_install_message:
71
+ rdoc_options: []
72
+
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: "0"
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: "0"
87
+ requirements: []
88
+
89
+ rubyforge_project:
90
+ rubygems_version: 1.6.2
91
+ signing_key:
92
+ specification_version: 3
93
+ summary: A simple cli for interacting with Gerrit.
94
+ test_files:
95
+ - spec/spec_helper.rb
96
+ - spec/util_spec.rb