fog 0.0.75 → 0.0.76

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
7
7
  ## If your rubyforge_project name is different, then edit it and comment out
8
8
  ## the sub! line in the Rakefile
9
9
  s.name = 'fog'
10
- s.version = '0.0.75'
11
- s.date = '2010-04-21'
10
+ s.version = '0.0.76'
11
+ s.date = '2010-04-22'
12
12
  s.rubyforge_project = 'fog'
13
13
 
14
14
  ## Make sure your summary is short. The description may be as long
data/lib/fog.rb CHANGED
@@ -30,7 +30,7 @@ require 'fog/terremark'
30
30
 
31
31
  module Fog
32
32
 
33
- VERSION = '0.0.75'
33
+ VERSION = '0.0.76'
34
34
 
35
35
  module Mock
36
36
  @delay = 1
@@ -7,6 +7,8 @@ module Fog
7
7
 
8
8
  identity :id
9
9
 
10
+ attribute :ip_address, 'IpAddress'
11
+ attribute :links, 'Links'
10
12
  attribute :name
11
13
  attribute :status
12
14
 
@@ -13,7 +13,7 @@ module Fog
13
13
  def start_element(name, attributes)
14
14
  @value = ''
15
15
  case name
16
- when 'PublicIPAddress'
16
+ when 'PublicIpAddress'
17
17
  @in_public_ip_address = true
18
18
  end
19
19
  end
@@ -47,7 +47,7 @@ module Fog
47
47
  @internet_service = {}
48
48
  when 'Port', 'Timeout'
49
49
  @internet_service[name] = @value.to_i
50
- when 'PublicIPAddress'
50
+ when 'PublicIpAddress'
51
51
  @in_public_ip_address = false
52
52
  end
53
53
  end
@@ -19,7 +19,7 @@ module Fog
19
19
  # * 'Id'<~String> => id of the public IP
20
20
  # * 'name'<~String> => actual ip address
21
21
  #
22
- def get_internet_services(vdc_id)
22
+ def get_internet_services(vdc_id = default_vdc_id)
23
23
  request(
24
24
  :expects => 200,
25
25
  :method => 'GET',
@@ -27,7 +27,7 @@ module Fog
27
27
 
28
28
  class Mock
29
29
 
30
- def get_node_services(vdc_id)
30
+ def get_node_services(service_id)
31
31
  raise MockNotImplemented.new("Contributions welcome!")
32
32
  end
33
33
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 75
9
- version: 0.0.75
8
+ - 76
9
+ version: 0.0.76
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-21 00:00:00 -07:00
17
+ date: 2010-04-22 00:00:00 -07:00
18
18
  default_executable: fog
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency