xenapi 0.2.9 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/HISTORY +3 -0
  2. data/VERSION +1 -1
  3. data/lib/xenapi/client.rb +5 -1
  4. data/xenapi.gemspec +2 -2
  5. metadata +4 -4
data/HISTORY CHANGED
@@ -1,5 +1,8 @@
1
1
  = XenApi History
2
2
 
3
+ === 0.2.10 - 2011-05-23
4
+ * Include Xen XMLRPC API error name when raising a XenApi::Errors::GenericError
5
+
3
6
  === 0.2.9 - 2011-05-20
4
7
  * Yet another version bump due to jeweler fucking up and not releasing the right code
5
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.9
1
+ 0.2.10
@@ -251,7 +251,11 @@ module XenApi #:nodoc:
251
251
  else
252
252
  raise ResponseMissingErrorDescriptionField unless r.has_key?('ErrorDescription')
253
253
  raise SessionInvalid if r['ErrorDescription'][0] == 'SESSION_INVALID'
254
- raise Errors.exception_class_from_desc(r['ErrorDescription'].shift), r['ErrorDescription'].inspect
254
+
255
+ ed = r['ErrorDescription'].shift
256
+ ex = Errors.exception_class_from_desc(ed)
257
+ r['ErrorDescription'].unshift(ed) if ex.is_a? Errors::GenericError
258
+ raise ex, r['ErrorDescription'].inspect
255
259
  end
256
260
  end
257
261
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{xenapi}
8
- s.version = "0.2.9"
8
+ s.version = "0.2.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Geoff Garside"]
12
- s.date = %q{2011-05-20}
12
+ s.date = %q{2011-05-23}
13
13
  s.description = %q{Xen API XMLRPC Client library for working with XenServers}
14
14
  s.email = %q{geoff+xenapi@geoffgarside.co.uk}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xenapi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 9
10
- version: 0.2.9
9
+ - 10
10
+ version: 0.2.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Geoff Garside
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-20 00:00:00 Z
18
+ date: 2011-05-23 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: thoughtbot-shoulda