rbovirt 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rbovirt might be problematic. Click here for more details.

data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.17
1
+ 0.0.18
data/lib/ovirt/network.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module OVIRT
2
2
  class Network < BaseObject
3
- attr_reader :description, :datacenter, :cluster, :stp
3
+ attr_reader :description, :datacenter, :cluster, :stp, :status
4
4
 
5
5
  def initialize(client, xml)
6
6
  super(client, xml[:id], xml[:href], (xml/'name').first.text)
@@ -15,7 +15,8 @@ module OVIRT
15
15
  @stp = ((xml/'stp').first.text rescue false)
16
16
  @datacenter = Link::new(@client, (xml/'data_center').first[:id], (xml/'data_center').first[:href]) unless (xml/'data_center').empty?
17
17
  @cluster = Link::new(@client, (xml/'cluster').first[:id], (xml/'cluster').first[:href]) unless (xml/'cluster').empty?
18
+ @status = ((xml/'status/state').first.text rescue nil)
18
19
  end
19
20
 
20
21
  end
21
- end
22
+ end
data/lib/ovirt/volume.rb CHANGED
@@ -35,7 +35,7 @@ module OVIRT
35
35
  @format = (xml/'format').first.text
36
36
  @sparse = (xml/'sparse').first.text
37
37
  @status = (xml/'status').first.text
38
- @vm = Link::new(@client, (xml/'vm').first[:id], (xml/'vm').first[:href])
38
+ @vm = Link::new(@client, (xml/'vm').first[:id], (xml/'vm').first[:href]) rescue nil
39
39
  end
40
40
 
41
41
  end
data/rbovirt.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rbovirt"
8
- s.version = "0.0.17"
8
+ s.version = "0.0.18"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Amos Benari"]
12
- s.date = "2012-11-11"
12
+ s.date = "2013-02-25"
13
13
  s.description = "A Ruby client for oVirt REST API"
14
14
  s.email = "abenari@redhat.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,136 +1,135 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rbovirt
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.17
3
+ version: !ruby/object:Gem::Version
4
+ hash: 59
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 18
10
+ version: 0.0.18
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Amos Benari
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-11-11 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2013-02-25 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ prerelease: false
15
22
  name: nokogiri
16
- requirement: !ruby/object:Gem::Requirement
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ requirement: *id001
22
33
  type: :runtime
34
+ - !ruby/object:Gem::Dependency
23
35
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
36
  name: rest-client
32
- requirement: !ruby/object:Gem::Requirement
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
33
38
  none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ requirement: *id002
38
47
  type: :runtime
48
+ - !ruby/object:Gem::Dependency
39
49
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
50
  name: shoulda
48
- requirement: !ruby/object:Gem::Requirement
51
+ version_requirements: &id003 !ruby/object:Gem::Requirement
49
52
  none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ requirement: *id003
54
61
  type: :development
62
+ - !ruby/object:Gem::Dependency
55
63
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- - !ruby/object:Gem::Dependency
63
64
  name: bundler
64
- requirement: !ruby/object:Gem::Requirement
65
+ version_requirements: &id004 !ruby/object:Gem::Requirement
65
66
  none: false
66
- requirements:
67
+ requirements:
67
68
  - - ~>
68
- - !ruby/object:Gem::Version
69
+ - !ruby/object:Gem::Version
70
+ hash: 23
71
+ segments:
72
+ - 1
73
+ - 0
74
+ - 0
69
75
  version: 1.0.0
76
+ requirement: *id004
70
77
  type: :development
78
+ - !ruby/object:Gem::Dependency
71
79
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 1.0.0
78
- - !ruby/object:Gem::Dependency
79
80
  name: jeweler
80
- requirement: !ruby/object:Gem::Requirement
81
+ version_requirements: &id005 !ruby/object:Gem::Requirement
81
82
  none: false
82
- requirements:
83
+ requirements:
83
84
  - - ~>
84
- - !ruby/object:Gem::Version
85
+ - !ruby/object:Gem::Version
86
+ hash: 7
87
+ segments:
88
+ - 1
89
+ - 6
90
+ - 4
85
91
  version: 1.6.4
92
+ requirement: *id005
86
93
  type: :development
94
+ - !ruby/object:Gem::Dependency
87
95
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: 1.6.4
94
- - !ruby/object:Gem::Dependency
95
96
  name: rcov
96
- requirement: !ruby/object:Gem::Requirement
97
+ version_requirements: &id006 !ruby/object:Gem::Requirement
97
98
  none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ hash: 3
103
+ segments:
104
+ - 0
105
+ version: "0"
106
+ requirement: *id006
102
107
  type: :development
108
+ - !ruby/object:Gem::Dependency
103
109
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
110
  name: rspec-rails
112
- requirement: !ruby/object:Gem::Requirement
111
+ version_requirements: &id007 !ruby/object:Gem::Requirement
113
112
  none: false
114
- requirements:
113
+ requirements:
115
114
  - - ~>
116
- - !ruby/object:Gem::Version
117
- version: '2.6'
115
+ - !ruby/object:Gem::Version
116
+ hash: 15
117
+ segments:
118
+ - 2
119
+ - 6
120
+ version: "2.6"
121
+ requirement: *id007
118
122
  type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ~>
124
- - !ruby/object:Gem::Version
125
- version: '2.6'
126
123
  description: A Ruby client for oVirt REST API
127
124
  email: abenari@redhat.com
128
125
  executables: []
126
+
129
127
  extensions: []
130
- extra_rdoc_files:
128
+
129
+ extra_rdoc_files:
131
130
  - LICENSE.txt
132
131
  - README.rdoc
133
- files:
132
+ files:
134
133
  - .document
135
134
  - Gemfile
136
135
  - LICENSE.txt
@@ -162,28 +161,37 @@ files:
162
161
  - spec/spec_helper.rb
163
162
  - spec/unit/vm_spec.rb
164
163
  homepage: http://github.com/abenari/rbovirt
165
- licenses:
164
+ licenses:
166
165
  - MIT
167
166
  post_install_message:
168
167
  rdoc_options: []
169
- require_paths:
168
+
169
+ require_paths:
170
170
  - lib
171
- required_ruby_version: !ruby/object:Gem::Requirement
171
+ required_ruby_version: !ruby/object:Gem::Requirement
172
172
  none: false
173
- requirements:
174
- - - ! '>='
175
- - !ruby/object:Gem::Version
176
- version: '0'
177
- required_rubygems_version: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ hash: 3
177
+ segments:
178
+ - 0
179
+ version: "0"
180
+ required_rubygems_version: !ruby/object:Gem::Requirement
178
181
  none: false
179
- requirements:
180
- - - ! '>='
181
- - !ruby/object:Gem::Version
182
- version: '0'
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ hash: 3
186
+ segments:
187
+ - 0
188
+ version: "0"
183
189
  requirements: []
190
+
184
191
  rubyforge_project:
185
192
  rubygems_version: 1.8.24
186
193
  signing_key:
187
194
  specification_version: 3
188
195
  summary: A Ruby client for oVirt REST API
189
196
  test_files: []
197
+