vpsadmin-client 2.5.0 → 2.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: ba8192c7d8fd4f47bb344a6edfa0b27a30d850f0
4
- data.tar.gz: 0fec21ca7c50c3fba23e15a50c4ecf2618e04423
3
+ metadata.gz: 80237569ef6b4f8952ed94b3666be38a07902289
4
+ data.tar.gz: 7bbc453749e957ad79e4451691e0fef27d3dd6d3
5
5
  SHA512:
6
- metadata.gz: 743be4bedeccfb27de7355fea993dc1ee381e20f80cfbaa5bb1cebd43ff79c612bee0f505a073d71dc80965c51ba8dc0cdfaec2e9ddb2f3d7e7eda3a501aab1b
7
- data.tar.gz: 15ef4a6f1a62934f78c60d2a97c37c80e5332e268096c7186fe7aec19f89374eee396e0ceeb5bb2d93a14d807a54893349aea9226e1e12ffd10855b21d33d4a9
6
+ metadata.gz: dd0bf982714d8da2cce9864f5cf8ee00a0a6ad7d8846ff86985682b8f985998c2c4e9c5fdd80b860273bd7d01a447a929b5b2ff62963bc7fb24fd64e161fa75a
7
+ data.tar.gz: 35c50f4f2b352ed0d35d4269872aff258840ffd70ba43a8df675a339b191a636a928ba9d4d76138d702632852d704d596f886220b2c58e5374d0833cd3fca6c1
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ * Fri Nov 25 2016 - version 2.6.0
2
+ - Use haveapi-client v0.7
3
+ - Remove ruby-progressbar as a dependency
4
+ - Exit if there aren't any snapshots to choose from
5
+
6
+ * Mon Oct 24 2016 - version 2.5.0
1
7
  - New command ip_traffic top
2
8
 
3
9
  * Fri Jun 24 2016 - version 2.4.0
@@ -1,5 +1,11 @@
1
1
  module VpsAdmin::CLI::Commands
2
2
  class BaseDownload < HaveAPI::CLI::Command
3
+ def initialize(*)
4
+ super
5
+
6
+ @api.set_opts(block: false)
7
+ end
8
+
3
9
  protected
4
10
  def find_or_create_dl(opts, do_create = true)
5
11
  @api.snapshot_download.index(snapshot: opts[:snapshot]).each do |r|
@@ -200,6 +200,11 @@ module VpsAdmin::CLI::Commands
200
200
  end
201
201
  end
202
202
 
203
+ if snap_map.empty?
204
+ warn "There are no snapshots to choose from, create one first."
205
+ exit(false)
206
+ end
207
+
203
208
  loop do
204
209
  STDOUT.write('Pick a snapshot for download: ')
205
210
  STDOUT.flush
@@ -1,5 +1,5 @@
1
1
  module VpsAdmin
2
2
  module Client
3
- VERSION = '2.5.0'
3
+ VERSION = '2.6.0'
4
4
  end
5
5
  end
@@ -21,10 +21,9 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency 'bundler', '~> 1.6'
22
22
  spec.add_development_dependency 'rake'
23
23
 
24
- spec.add_runtime_dependency 'haveapi-client', '~> 0.6.0'
24
+ spec.add_runtime_dependency 'haveapi-client', '~> 0.7.1'
25
25
  spec.add_runtime_dependency 'eventmachine', '~> 1.0.3'
26
26
  spec.add_runtime_dependency 'em-http-request', '~> 1.1.3'
27
- spec.add_runtime_dependency 'json', '~> 1.8.3'
28
- spec.add_runtime_dependency 'ruby-progressbar', '~> 1.7.5'
27
+ spec.add_runtime_dependency 'json'
29
28
  spec.add_runtime_dependency 'curses'
30
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpsadmin-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
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-10-25 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 0.6.0
47
+ version: 0.7.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.6.0
54
+ version: 0.7.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: eventmachine
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -84,30 +84,16 @@ dependencies:
84
84
  name: json
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
88
- - !ruby/object:Gem::Version
89
- version: 1.8.3
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ~>
95
- - !ruby/object:Gem::Version
96
- version: 1.8.3
97
- - !ruby/object:Gem::Dependency
98
- name: ruby-progressbar
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ~>
87
+ - - '>='
102
88
  - !ruby/object:Gem::Version
103
- version: 1.7.5
89
+ version: '0'
104
90
  type: :runtime
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - ~>
94
+ - - '>='
109
95
  - !ruby/object:Gem::Version
110
- version: 1.7.5
96
+ version: '0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: curses
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -176,4 +162,3 @@ signing_key:
176
162
  specification_version: 4
177
163
  summary: Ruby API and CLI for vpsAdmin API
178
164
  test_files: []
179
- has_rdoc: