fog 0.0.90 → 0.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ 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.90'
10
+ s.version = '0.0.91'
11
11
  s.date = '2010-05-05'
12
12
  s.rubyforge_project = 'fog'
13
13
 
data/lib/fog.rb CHANGED
@@ -34,7 +34,7 @@ require 'fog/terremark'
34
34
  module Fog
35
35
 
36
36
  unless const_defined?(:VERSION)
37
- VERSION = '0.0.90'
37
+ VERSION = '0.0.91'
38
38
  end
39
39
 
40
40
  module Mock
@@ -27,7 +27,7 @@ module Fog
27
27
  response.status = 200
28
28
  public_ip = Fog::AWS::Mock.ip_address
29
29
  data ={
30
- 'instanceId' => '',
30
+ 'instanceId' => nil,
31
31
  'publicIp' => public_ip
32
32
  }
33
33
  @data[:addresses][public_ip] = data
@@ -35,7 +35,7 @@ module Fog
35
35
  response.status = 200
36
36
  snapshot_id = Fog::AWS::Mock.snapshot_id
37
37
  data = {
38
- 'progress' => '',
38
+ 'progress' => nil,
39
39
  'snapshotId' => snapshot_id,
40
40
  'startTime' => Time.now,
41
41
  'status' => 'pending',
@@ -43,7 +43,7 @@ module Fog
43
43
  'attachmentSet' => [],
44
44
  'createTime' => Time.now,
45
45
  'size' => size,
46
- 'snapshotId' => snapshot_id || '',
46
+ 'snapshotId' => snapshot_id,
47
47
  'status' => 'creating',
48
48
  'volumeId' => volume_id
49
49
  }
@@ -29,7 +29,7 @@ module Fog
29
29
  response = Excon::Response.new
30
30
  response.status = 200
31
31
  if address = @data[:addresses][public_ip]
32
- address['instanceId'] = ''
32
+ address['instanceId'] = nil
33
33
  response.status = 200
34
34
  response.body = {
35
35
  'requestId' => Fog::AWS::Mock.request_id,
@@ -107,7 +107,7 @@ module Fog
107
107
  instance = {
108
108
  'amiLaunchIndex' => i,
109
109
  'blockDeviceMapping' => [],
110
- 'dnsName' => '',
110
+ 'dnsName' => nil,
111
111
  'imageId' => image_id,
112
112
  'instanceId' => instance_id,
113
113
  'instanceState' => { 'code' => 0, 'name' => 'pending' },
@@ -117,17 +117,17 @@ module Fog
117
117
  'launchTime' => Time.now,
118
118
  'monitoring' => { 'state' => options['Monitoring.Enabled'] || false },
119
119
  'placement' => { 'availabilityZone' => options['Placement.AvailabilityZone'] || Fog::AWS::Mock.availability_zone },
120
- 'privateDnsName' => '',
120
+ 'privateDnsName' => nil,
121
121
  'productCodes' => [],
122
122
  'ramdiskId' => options['RamdiskId'] || Fog::AWS::Mock.ramdisk_id,
123
- 'reason' => '',
123
+ 'reason' => nil,
124
124
  'rootDeviceType' => 'instance-store'
125
125
  }
126
126
  instances_set << instance
127
127
  @data[:instances][instance_id] = instance.merge({
128
128
  'groupSet' => group_set,
129
129
  'ownerId' => @owner_id,
130
- 'privateIpAddress' => '',
130
+ 'privateIpAddress' => nil,
131
131
  'reservationId' => reservation_id,
132
132
  })
133
133
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 90
9
- version: 0.0.90
8
+ - 91
9
+ version: 0.0.91
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)