fog 0.0.81 → 0.0.82

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.
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.81'
10
+ s.version = '0.0.82'
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.81'
34
+ VERSION = '0.0.82'
35
35
 
36
36
  module Mock
37
37
  @delay = 1
@@ -22,9 +22,6 @@ module Fog
22
22
  def initialize(attributes = {})
23
23
  # assign server first to prevent race condition with new_record?
24
24
  self.server = attributes.delete(:server)
25
- if attributes['attachmentSet']
26
- attributes.merge!(attributes.delete('attachmentSet').first || {})
27
- end
28
25
  super
29
26
  end
30
27
 
@@ -67,6 +64,10 @@ module Fog
67
64
 
68
65
  private
69
66
 
67
+ def attachmentSet=(new_attachment_set)
68
+ merge_attributes(new_attachment_set.first || {})
69
+ end
70
+
70
71
  def attach(new_server)
71
72
  if new_record?
72
73
  @server = new_server
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 81
9
- version: 0.0.81
8
+ - 82
9
+ version: 0.0.82
10
10
  platform: ruby
11
11
  authors:
12
12
  - geemus (Wesley Beary)