fog 0.0.82 → 0.0.83

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/fog.gemspec +1 -1
  2. data/lib/fog.rb +1 -1
  3. data/lib/fog/model.rb +5 -2
  4. metadata +2 -2
data/fog.gemspec CHANGED
@@ -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.82'
10
+ s.version = '0.0.83'
11
11
  s.date = '2010-04-27'
12
12
  s.rubyforge_project = 'fog'
13
13
 
data/lib/fog.rb CHANGED
@@ -31,7 +31,7 @@ require 'fog/terremark'
31
31
 
32
32
  module Fog
33
33
 
34
- VERSION = '0.0.82'
34
+ VERSION = '0.0.83'
35
35
 
36
36
  module Mock
37
37
  @delay = 1
data/lib/fog/model.rb CHANGED
@@ -84,8 +84,11 @@ module Fog
84
84
  end
85
85
 
86
86
  def reload
87
- new_attributes = collection.get(identity).attributes
88
- merge_attributes(new_attributes)
87
+ if data = collection.get(identity)
88
+ new_attributes = data.attributes
89
+ merge_attributes(new_attributes)
90
+ end
91
+ self
89
92
  end
90
93
 
91
94
  def requires(*args)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 82
9
- version: 0.0.82
8
+ - 83
9
+ version: 0.0.83
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)