rbovirt 0.0.27 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzViNDE4M2QyMDFkNDA5NmU1ZmVmYjY4NWRiZjYyYmQyMDFjMmFhYw==
4
+ Y2UzMTk4OTk2ZmFlNWJjMGVkYzYzMjBkY2Q3YmIxMzNiNjkxMGJmOQ==
5
5
  data.tar.gz: !binary |-
6
- OTZmZmM3ZmY3ZDc0NGYzYTMwMGU3OTIwZjExNzE1ZjcyNzZkODVkZg==
6
+ NDEyYWE2ZjAyY2E3YjEwNjY0OGEzOGMxNDY5NTQwZGIwMWY2ZDY5NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzI0MTYxYTBkMjUwOWRiNmI3MjliOTc1YWYyZTNkZDcyMmIyMTg3NDZmYjQz
10
- YzJmZGM3MzA1ZTdjZGFkNWQ1ZDFjYjRkNDZjOWY2OTk4ZDE5NTVhNGVmNGI1
11
- MWRmNzEyM2M2NmE4MWIyZjViYzllZWQzOWM5MDFlNjQ2YjQxY2M=
9
+ NDllNmM3OGZkZjBkNGY3Yjk1NjhjM2I0YWJjZDcyODI3ZGZlNTcxMjdlNzA2
10
+ M2EzNDc4NWM4YzE1YWFkZjNjODU3NDZiYjI3ODg4YjM3NjcxZTkwNjVjOWUy
11
+ NTAwZGVkY2QzYmQ4ZTQ1ZDQyY2QyZDI4ZmEyNDA3NzM2MDVjZDI=
12
12
  data.tar.gz: !binary |-
13
- M2Q5YTNjZTgyZTlmN2E0MGU5MGNjOTZjOWRiNTk3NjkxOTE5YWE2MDQzYTFk
14
- ZDkxZTk4NWJlMzJlMmRmYWMxOWJhMDEyMjI1Njc2NTI0ODRiZWNjMDQxZTY2
15
- NWJhYzg2NzBiYjViNTk5N2YyMTYzMTNmNTFjZjYwNzYxZmI0MzY=
13
+ ZjMwMGZhZjQxZDcxZGI3MzRkODYyYmJiMWYzYWQ2MjVkMmM0YTg5MGZlN2Nj
14
+ YTYyMzI4MzNjZjc4YTQ0ZGUyZjU3NTFhZmY0NjMzNzE2MTZlNmE4NWUyYmUx
15
+ NTNiNDI2YTBhYjhhMWVkODRiNjU3MGM4YjVhZTc3ZDhiY2UyYjk=
data/lib/ovirt/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module OVIRT
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.28"
3
3
  end
data/lib/ovirt/volume.rb CHANGED
@@ -30,13 +30,13 @@ module OVIRT
30
30
  end
31
31
 
32
32
  def parse_xml_attributes!(xml)
33
- @storage_domain = (xml/'storage_domains/storage_domain').first[:id]
33
+ @storage_domain = ((xml/'storage_domains/storage_domain').first[:id] rescue nil)
34
34
  @size = (xml/'size').first.text
35
35
  @disk_type = ((xml/'type').first.text rescue nil)
36
36
  @bootable = (xml/'bootable').first.text
37
37
  @interface = (xml/'interface').first.text
38
- @format = (xml/'format').first.text
39
- @sparse = (xml/'sparse').first.text
38
+ @format = ((xml/'format').first.text rescue nil)
39
+ @sparse = ((xml/'sparse').first.text rescue nil)
40
40
  @status = ((xml/'status').first.text rescue nil)
41
41
  @status ||= ((xml/'status/state').first.text rescue nil)
42
42
  @vm = Link::new(@client, (xml/'vm').first[:id], (xml/'vm').first[:href]) rescue nil
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'rspec'
1
+ require 'rspec/core'
2
2
  require 'rspec/mocks'
3
3
  require 'rbovirt'
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbovirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amos Benari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-15 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri