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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 840df0f77708fe4989863028214ef4d5c4fa9766
4
- data.tar.gz: e11a71e8dd445c300dd6d50eb8299e9807cfd5bf
3
+ metadata.gz: 08bdcf2785c54715f2211c2d03a1a5945790d184
4
+ data.tar.gz: 1116b2282abb0e235acbdcd6d745c04231916f46
5
5
  SHA512:
6
- metadata.gz: b844cbb73490a46e9998030520a73869e77cb0b1d7ae56ac34c913f47273eb262bc7d1ee94490879a9485463a62ab51f180412e6bcea427978e5307007e4bcc5
7
- data.tar.gz: 5ca4a116bee236baab8b678fe45832c89566071bf2f1d4d47df66911171def317eac980070191bd3177fc9c031e217b3d2f41e9f68d6ca823f785d16001f2c10
6
+ metadata.gz: 96d6bdd265b9ca4eb05efd8766d2e7c03850580c1131711aed97f12a6099db6a5b1369b087bcdc2080d6f53164893bef33538e4d9566c219be1ece484fef7035
7
+ data.tar.gz: 76265e2782888b83654ca568da8406617486493cb7a1fa5bfb7c0b4338138f8af9dd4fbdf1d668cff32e4b75facbe6900cd2229a58a9426fbba69227bac33ca1
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ * Fri Feb 26 2016 - version 0.5.1
2
+ - CLI
3
+ - Fix sorting of empty values
4
+ - Fetch action description only if it is fully resolved
5
+
1
6
  * Tue Feb 9 2016 - version 0.5.0
2
7
  - Fixed validation error reporting for Datetime parameters
3
8
  - Fixed resource object cloning
@@ -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-09'
9
+ spec.date = '2016-02-26'
10
10
  spec.authors = ['Jakub Skokan']
11
11
  spec.email = ['jakub.skokan@vpsfree.cz']
12
12
  spec.summary =
@@ -88,7 +88,9 @@ module HaveAPI::CLI
88
88
  show_help(false)
89
89
  end
90
90
 
91
- action.update_description(@api.describe_action(action)) if authenticate(action)
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
- a[col_i] <=> b[col_i]
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
 
@@ -1,6 +1,6 @@
1
1
  module HaveAPI
2
2
  module Client
3
3
  PROTOCOL_VERSION = '1.0'
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
6
6
  end
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.0
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-09 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler