vas 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vas/vas_exception.rb +4 -4
- metadata +3 -3
data/lib/vas/vas_exception.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# vFabric Administration Server Ruby API
|
2
|
-
# Copyright (c) 2012 VMware, Inc. All Rights Reserved.
|
2
|
+
# Copyright (c) 2012, 2013 VMware, Inc. All Rights Reserved.
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
5
|
# you may not use this file except in compliance with the License.
|
@@ -17,7 +17,7 @@
|
|
17
17
|
# Raised to indicate a failure has occurred when communicating with the vFabric Administration Server
|
18
18
|
class VasException < RuntimeError
|
19
19
|
|
20
|
-
# @return [Integer] the HTTP error code returned by the server
|
20
|
+
# @return [Integer, nil] the HTTP error code, if any, returned by the server
|
21
21
|
attr_reader :code
|
22
22
|
|
23
23
|
# @return [String[]] the error messages, if any, returned by the server
|
@@ -25,8 +25,8 @@ class VasException < RuntimeError
|
|
25
25
|
|
26
26
|
# @private
|
27
27
|
def initialize(messages, code=nil)
|
28
|
-
@code = code
|
28
|
+
@code = code.to_i unless code.nil?
|
29
29
|
@messages = messages
|
30
30
|
end
|
31
|
-
|
31
|
+
|
32
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
247
|
rubyforge_project:
|
248
|
-
rubygems_version: 1.8.
|
248
|
+
rubygems_version: 1.8.23
|
249
249
|
signing_key:
|
250
250
|
specification_version: 3
|
251
251
|
summary: vFabric Administration Server Ruby API
|