geemus-fog 0.0.1 → 0.0.3
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/VERSION +1 -1
- data/fog.gemspec +1 -1
- data/lib/fog.rb +0 -1
- data/lib/fog/aws.rb +0 -3
- data/lib/fog/aws/models/s3/object.rb +2 -2
- data/lib/fog/aws/models/s3/objects.rb +1 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/fog.gemspec
CHANGED
data/lib/fog.rb
CHANGED
data/lib/fog/aws.rb
CHANGED
@@ -12,11 +12,8 @@ module Fog
|
|
12
12
|
def self.reload
|
13
13
|
current_directory = File.dirname(__FILE__)
|
14
14
|
load "#{current_directory}/aws/ec2.rb"
|
15
|
-
Fog::AWS::EC2.reload
|
16
15
|
load "#{current_directory}/aws/simpledb.rb"
|
17
|
-
Fog::AWS::SimpleDB.reload
|
18
16
|
load "#{current_directory}/aws/s3.rb"
|
19
|
-
Fog::AWS::S3.reload
|
20
17
|
end
|
21
18
|
|
22
19
|
if Fog.mocking?
|
@@ -35,7 +35,7 @@ module Fog
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def copy(target_bucket_name, target_object_key)
|
38
|
-
data = connection.copy_object(bucket, key, target_bucket_name, target_object_key).body
|
38
|
+
data = connection.copy_object(bucket.name, key, target_bucket_name, target_object_key).body
|
39
39
|
copy = self.dup
|
40
40
|
copy_data = {}
|
41
41
|
for key, value in data
|
@@ -60,7 +60,7 @@ module Fog
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def save(options = {})
|
63
|
-
data = connection.put_object(bucket, key, body, options)
|
63
|
+
data = connection.put_object(bucket.name, key, body, options)
|
64
64
|
@etag = data.headers['ETag']
|
65
65
|
end
|
66
66
|
|
@@ -19,7 +19,7 @@ module Fog
|
|
19
19
|
super
|
20
20
|
end
|
21
21
|
|
22
|
-
def all
|
22
|
+
def all(options = {})
|
23
23
|
data = connection.get_bucket(bucket.name, options).body
|
24
24
|
objects_data = {}
|
25
25
|
for key, value in data
|
@@ -65,7 +65,6 @@ module Fog
|
|
65
65
|
@bucket
|
66
66
|
end
|
67
67
|
|
68
|
-
|
69
68
|
end
|
70
69
|
|
71
70
|
end
|