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 CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.3
data/fog.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fog}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wesley Beary"]
data/lib/fog.rb CHANGED
@@ -14,7 +14,6 @@ module Fog
14
14
 
15
15
  def self.reload
16
16
  load "#{File.dirname(__FILE__)}/fog/aws.rb"
17
- Fog::AWS.reload
18
17
  end
19
18
 
20
19
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geemus-fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Beary