softlayer_api 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softlayer/VirtualServerUpgradeOrder.rb +7 -8
- data/lib/softlayer/base.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db7fb619e9abee8aa3716ef5cc5e88b29ee86232
|
4
|
+
data.tar.gz: a4544cc335c39b45149616d1e725b65bb1115484
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9919fb7d7cd6f2a4a7b071970212257d2364821be75d96cf3c56ab3806d65f0f28438b892ffd85503d41be10cd53e7c71f21bb38b08f2fbaa4c0a10df28c785
|
7
|
+
data.tar.gz: ad1fdd2a7317e8d87c6285a0a95a77906a70ed8f1382fd29862af9f27256613d30462ef8c5dff45ac601fd0faea8b78ee353327b6367bf2a7c9e865531ff9b82
|
@@ -51,10 +51,9 @@ module SoftLayer
|
|
51
51
|
#
|
52
52
|
def verify()
|
53
53
|
if has_order_items?
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
@virtual_server.softlayer_client[:Product_Order].verifyOrder(order_object)
|
54
|
+
order_template = order_object
|
55
|
+
order_template = yield order_object if block_given?
|
56
|
+
@virtual_server.softlayer_client[:Product_Order].verifyOrder(order_template)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
|
@@ -67,10 +66,10 @@ module SoftLayer
|
|
67
66
|
#
|
68
67
|
def place_order!()
|
69
68
|
if has_order_items?
|
70
|
-
|
71
|
-
|
69
|
+
order_template = order_object
|
70
|
+
order_template = yield order_object if block_given?
|
72
71
|
|
73
|
-
@virtual_server.softlayer_client[:Product_Order].placeOrder(
|
72
|
+
@virtual_server.softlayer_client[:Product_Order].placeOrder(order_template)
|
74
73
|
end
|
75
74
|
end
|
76
75
|
|
@@ -113,7 +112,7 @@ module SoftLayer
|
|
113
112
|
# and whose capacity matches the value given. Returns the item_price or nil
|
114
113
|
#
|
115
114
|
def _item_price_with_capacity(which_category, capacity)
|
116
|
-
|
115
|
+
_item_prices_in_category(which_category).find { |item_price| item_price['item']['capacity'].to_i == capacity}
|
117
116
|
end
|
118
117
|
|
119
118
|
##
|
data/lib/softlayer/base.rb
CHANGED
@@ -12,7 +12,7 @@ require 'rubygems'
|
|
12
12
|
module SoftLayer
|
13
13
|
# The version number (including major, minor, and bugfix numbers)
|
14
14
|
# This should change in accordance with the concept of Semantic Versioning
|
15
|
-
VERSION = "3.0.
|
15
|
+
VERSION = "3.0.2" # version history in the CHANGELOG.textile file at the root of the source
|
16
16
|
|
17
17
|
# The base URL of the SoftLayer API available to the public internet.
|
18
18
|
API_PUBLIC_ENDPOINT = 'https://api.softlayer.com/xmlrpc/v3/'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: softlayer_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SoftLayer Development Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: configparser
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
184
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.
|
185
|
+
rubygems_version: 2.2.2
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Library for accessing the SoftLayer API
|