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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 498eb5e1ea2559ee02a3d3f471515c5233c665ee
4
- data.tar.gz: 9957ced500d1790af7e1dcc312b2deec1cad2390
3
+ metadata.gz: db7fb619e9abee8aa3716ef5cc5e88b29ee86232
4
+ data.tar.gz: a4544cc335c39b45149616d1e725b65bb1115484
5
5
  SHA512:
6
- metadata.gz: 160b9c1883f81422a9d94fbd4a413a89d5d2c8173683d739223897323e2d72f68becd9f1121e8f9f2ae2cfda9447f4b7d22d9c7750f81643b5ff79c831e69ad9
7
- data.tar.gz: 5dc081303ba4b1e7abbf3177059b20547471bbf986a1afd1ebd2210fbf2f5b93b7dd78664c110c794060b1751b05b183e0827df6d7c4b832e83948c894df49ee
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
- order_object = self.order_object
55
- order_object = yield order_object if block_given?
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
- order_object = self.order_object
71
- order_object = yield order_object if block_given?
69
+ order_template = order_object
70
+ order_template = yield order_object if block_given?
72
71
 
73
- @virtual_server.softlayer_client[:Product_Order].placeOrder(order_object)
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
- self._item_prices_in_category(which_category).find { |item_price| item_price['item']['capacity'].to_i == capacity}
115
+ _item_prices_in_category(which_category).find { |item_price| item_price['item']['capacity'].to_i == capacity}
117
116
  end
118
117
 
119
118
  ##
@@ -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.1" # version history in the CHANGELOG.textile file at the root of the source
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.1
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-05 00:00:00.000000000 Z
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.4.5
185
+ rubygems_version: 2.2.2
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Library for accessing the SoftLayer API