haveapi-client 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +5 -0
- data/haveapi-client.gemspec +1 -1
- data/lib/haveapi/cli/cli.rb +3 -1
- data/lib/haveapi/cli/output_formatter.rb +7 -1
- data/lib/haveapi/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08bdcf2785c54715f2211c2d03a1a5945790d184
|
4
|
+
data.tar.gz: 1116b2282abb0e235acbdcd6d745c04231916f46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96d6bdd265b9ca4eb05efd8766d2e7c03850580c1131711aed97f12a6099db6a5b1369b087bcdc2080d6f53164893bef33538e4d9566c219be1ece484fef7035
|
7
|
+
data.tar.gz: 76265e2782888b83654ca568da8406617486493cb7a1fa5bfb7c0b4338138f8af9dd4fbdf1d668cff32e4b75facbe6900cd2229a58a9426fbba69227bac33ca1
|
data/CHANGELOG
CHANGED
data/haveapi-client.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'haveapi/client/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'haveapi-client'
|
8
8
|
spec.version = HaveAPI::Client::VERSION
|
9
|
-
spec.date = '2016-02-
|
9
|
+
spec.date = '2016-02-26'
|
10
10
|
spec.authors = ['Jakub Skokan']
|
11
11
|
spec.email = ['jakub.skokan@vpsfree.cz']
|
12
12
|
spec.summary =
|
data/lib/haveapi/cli/cli.rb
CHANGED
@@ -88,7 +88,9 @@ module HaveAPI::CLI
|
|
88
88
|
show_help(false)
|
89
89
|
end
|
90
90
|
|
91
|
-
|
91
|
+
if authenticate(action) && !action.unresolved_args?
|
92
|
+
action.update_description(@api.describe_action(action))
|
93
|
+
end
|
92
94
|
|
93
95
|
@selected_params = @opts[:output] ? @opts[:output].split(',').uniq
|
94
96
|
: nil
|
@@ -175,7 +175,13 @@ module HaveAPI::CLI
|
|
175
175
|
fail "unknown column '#{@sort}'" unless col_i
|
176
176
|
|
177
177
|
@str_objects.sort! do |a, b|
|
178
|
-
|
178
|
+
a_i = a[col_i]
|
179
|
+
b_i = b[col_i]
|
180
|
+
|
181
|
+
next 0 if a_i == @empty && b_i == @empty
|
182
|
+
next -1 if a_i == @empty && b_i != @empty
|
183
|
+
next 1 if a_i != @empty && b_i == @empty
|
184
|
+
a_i <=> b_i
|
179
185
|
end
|
180
186
|
end
|
181
187
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haveapi-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jakub Skokan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|