jamesn-softlayer-ruby 0.7.1.0 → 0.7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Changes +5 -1
  2. data/README +3 -3
  3. data/lib/softlayer/baseclass.rb +1 -1
  4. metadata +1 -1
data/Changes CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ Changes since 0.7.1
3
+
4
+ fix a syntax error in README
5
+ fix a bug that cause getObject to get executed every time BaseClass#[] was called instead of this result being cached.
6
+
2
7
  Changes since 0.7.0
3
8
 
4
9
  account for the off chance we are calling a method and @authHeader is nil in slapiCall
@@ -28,4 +33,3 @@ Changes since 0.5.0.
28
33
 
29
34
  Implemented resultLimit headers. See readme and the rdoc for SoftLayer::ResultLimit.
30
35
  Renamed SoftLayer::ObjectMaskHeader to SoftLayer::ObjectMask and SoftLayer::ParamHeader to SoftLayer::Param
31
-
data/README CHANGED
@@ -15,7 +15,7 @@ Objects are then created and used like normal Ruby objects:
15
15
  account = SoftLayer::Account.new(:user => AUTH_USER, :key => AUTH_KEY, :initParam => ACCT_ID)
16
16
  puts account.getBalance
17
17
 
18
- The object's associated Type is available like a hash:
18
+ The object's associated Type is available like a Hash:
19
19
 
20
20
  puts account['email']
21
21
 
@@ -38,7 +38,7 @@ account['allBillingItems'].each do |bi|
38
38
  end
39
39
 
40
40
  account['nasNetworkStorage'].each do |n|
41
- nas = SoftLayer::Network::Storage(:user => OTHER_AUTH_USER, :key => OTHER_AUTH_KEY, :initParam => n['id'])
41
+ nas = SoftLayer::Network::Storage.new(:user => OTHER_AUTH_USER, :key => OTHER_AUTH_KEY, :initParam => n['id'])
42
42
  pp nas.capacityGb
43
43
  end
44
44
 
@@ -48,7 +48,7 @@ account.getAllBillingItems(:limit => [X,Y]) do |bia|
48
48
  ( blah )
49
49
  end
50
50
 
51
- Such that +bia+ is an array containing X or fewer elements; blah executes on each batch until there's no more.
51
+ Such that bia is an array containing X or fewer elements; blah executes on each batch until there's no more.
52
52
 
53
53
  Without a block, should return the 5 elements offset from Y:
54
54
 
@@ -66,7 +66,7 @@ module SoftLayer
66
66
 
67
67
  # This returns key values from this Service's associated Type (retrieved using #getObject).
68
68
  def [](key)
69
- @slapiObject = self.getObject if @slapiobject.nil?
69
+ @slapiObject = self.getObject if @slapiObject.nil?
70
70
  return @slapiObject[key.to_s]
71
71
  end
72
72
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jamesn-softlayer-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1.0
4
+ version: 0.7.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Nuckolls