fog 0.0.92 → 0.0.93

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.92'
10
+ s.version = '0.0.93'
11
11
  s.date = '2010-05-10'
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.92'
37
+ VERSION = '0.0.93'
38
38
  end
39
39
 
40
40
  module Mock
@@ -10,6 +10,12 @@ module Fog
10
10
 
11
11
  attribute :server_id, 'instanceId'
12
12
 
13
+ def initialize(attributes = {})
14
+ # assign server first to prevent race condition with new_record?
15
+ self.server = attributes.delete(:server)
16
+ super
17
+ end
18
+
13
19
  def destroy
14
20
  requires :public_ip
15
21
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 92
9
- version: 0.0.92
8
+ - 93
9
+ version: 0.0.93
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)