cf-table 0.1.0 → 0.1.1

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: 02efc4388759dd1c58dcc1d5602b89675c26a542
4
- data.tar.gz: 08aea397cb7bf06e95334c015b6225adc8e51404
3
+ metadata.gz: ba6db1e5d9853949883efa340829ce9740832ff8
4
+ data.tar.gz: e5039eb126d8f5f46a56f32773bdf59e8e40311a
5
5
  SHA512:
6
- metadata.gz: 60cd7bf2adb5d74a227626a1ded351ad75b98d756d6d016b67a47cc52591c9bd9497fbf6df3cbdffde56d273eeeb43eb0951b650afa69a0a3315cecaffc98631
7
- data.tar.gz: ae0d63a432c641fbab5ffc8541b67c92210fbe6da8c2c8d15f199c1cf4fefcc4ebe9574d09bc43fede1825f46b67950b0aeba41d2d22f655574c0b8d2600af73
6
+ metadata.gz: e016d4de2b981717f7819692f5b6e5f4fd87441dbfb824614f071a69b36ada8feade3ddfc89b6172a9542474b8562f0b39c1dd535e7153e3449f7628ee7e7433
7
+ data.tar.gz: b9f989dce5103536e554e673277e0efe4609f6aa6b8c1788d8ed1158099bbcac03b59da0a2537c84fe4a373e5eaadc3f12c7b60bdcda338aaf8bcee70fb88f6b
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # CF Table
2
- Simple cli for show the results from `cf curl` in a table.
2
+ Simple cli to show the results from `cf curl` in a table.
3
3
 
4
4
  ## Installation
5
5
 
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Ruben Koster"]
10
10
  spec.email = ["rkoster@starkandwayne.com"]
11
11
 
12
- spec.summary = %q{Simple cli for show the results from `cf curl` in a table.}
13
- spec.description = %q{Simple cli for show the results from `cf curl` in a table.}
12
+ spec.summary = %q{Simple cli to show the results from `cf curl` in a table.}
13
+ spec.description = %q{Simple cli to show the results from `cf curl` in a table.}
14
14
  spec.homepage = "https://github.com/cloudfoundry-community/cf-table"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -5,8 +5,8 @@ require 'pp'
5
5
  module CF::Table
6
6
  class CLI
7
7
  def self.run
8
- if table.send(:columns_width) > term_cols
9
- puts "Table to wide, please select some columns:"
8
+ if ARGV.empty? && table.send(:columns_width) > term_cols
9
+ puts "Table too wide, please select some columns:"
10
10
  puts keys_table
11
11
  else
12
12
  puts table
@@ -24,7 +24,9 @@ module CF::Table
24
24
 
25
25
  def self.rows
26
26
  entities.map do |entry|
27
- columns.map { |column| entry[column] }
27
+ columns.map do |column|
28
+ entry[column]
29
+ end
28
30
  end
29
31
  end
30
32
 
@@ -1,5 +1,5 @@
1
1
  module CF
2
2
  module Table
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Koster
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-19 00:00:00.000000000 Z
11
+ date: 2015-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: terminal-table
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: Simple cli for show the results from `cf curl` in a table.
69
+ description: Simple cli to show the results from `cf curl` in a table.
70
70
  email:
71
71
  - rkoster@starkandwayne.com
72
72
  executables:
@@ -110,5 +110,5 @@ rubyforge_project:
110
110
  rubygems_version: 2.4.5.1
111
111
  signing_key:
112
112
  specification_version: 4
113
- summary: Simple cli for show the results from `cf curl` in a table.
113
+ summary: Simple cli to show the results from `cf curl` in a table.
114
114
  test_files: []