ovirt 0.4.0 → 0.4.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: 06c3dc71f62f380fe6f34bd2a57ac7045cbc6501
4
- data.tar.gz: 5fb4c4175f5c0729050355ee261b33d8ded8ca04
3
+ metadata.gz: 8f3756a5c2e938f056ce812ddd0a635ea25e3a62
4
+ data.tar.gz: ee458f0014107b4f8c391904dd2d29c71a8502e1
5
5
  SHA512:
6
- metadata.gz: cfc2d50e1f7613163f7dfbf2d148f0f6fab804853d07eece7a28f13d4d6fe4f21a442faee757d0d5cc5bbe088b07dfc27f35e6191a2955cc0c388ac0f71cd9b5
7
- data.tar.gz: 1a0b881e2fcf033a2e7b9d515c7cb7487672163093dbda275a0dbc5633af0025d322b6e37e07fef0b4d39113232200a542423d80f4752df65fe8d4dd23af3f61
6
+ metadata.gz: c5c56b49179dc457fbd954dc71628db443c983ee19d19b2037be1e8cf3c2577772212e2b208e31606113fd99c7515a3dbee6d89d3eeaf286b700d3819cb7bf80
7
+ data.tar.gz: 05b6603770d2b44152960e2304b875d64aaa21cb7ab6a2147da1bb86b5f3a48abb3bd5fc78367da4f3278726087e2158e2fb4b7e26cc1a7ad746fba7aabfeb38
data/lib/ovirt/service.rb CHANGED
@@ -217,7 +217,7 @@ module Ovirt
217
217
  rescue RestClient::ResourceNotFound, Ovirt::Error
218
218
  raise
219
219
  rescue Exception => e
220
- msg = "#{log_header}: class = #{e.class.name}, message=#{e.message}, URI=#{resource.url}"
220
+ msg = "#{log_header}: class = #{e.class.name}, message=#{e.message}, URI=#{resource ? resource.url : path}"
221
221
  if $rhevm_log.nil?
222
222
  puts msg
223
223
  else
data/lib/ovirt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ovirt
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/spec/service_spec.rb CHANGED
@@ -28,6 +28,11 @@ EOX
28
28
  end
29
29
  end
30
30
 
31
+ it "#resource_get on exception" do
32
+ @service.stub(:create_resource).and_raise(Exception, "BLAH")
33
+ expect { @service.resource_get('api') }.to raise_error(Exception, "BLAH")
34
+ end
35
+
31
36
  context ".ovirt?" do
32
37
  it "false when ResourceNotFound" do
33
38
  described_class.any_instance.should_receive(:engine_ssh_public_key).and_raise(RestClient::ResourceNotFound)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Frey
@@ -10,10 +10,11 @@ authors:
10
10
  - Joe Rafaniello
11
11
  - Greg Blomquist
12
12
  - Martin Povolny
13
+ - Matthew Draper
13
14
  autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
- date: 2015-02-26 00:00:00.000000000 Z
17
+ date: 2015-04-01 00:00:00.000000000 Z
17
18
  dependencies:
18
19
  - !ruby/object:Gem::Dependency
19
20
  name: bundler
@@ -150,6 +151,7 @@ email:
150
151
  - jrafanie@redhat.com
151
152
  - gblomqui@redhat.com
152
153
  - mpovolny@redhat.com
154
+ - matthew@trebex.net
153
155
  executables: []
154
156
  extensions: []
155
157
  extra_rdoc_files: []
@@ -227,4 +229,3 @@ test_files:
227
229
  - spec/template_spec.rb
228
230
  - spec/vm_spec.rb
229
231
  - ".rspec"
230
- has_rdoc: