Version bump to 0.0.1

This commit is contained in:
Wesley Beary 2009-08-17 17:06:25 -07:00
parent 5a83da1a93
commit 9ac8af38fb
4 changed files with 20 additions and 7 deletions

View File

@ -1 +1 @@
0.0.0
0.0.1

View File

@ -29,7 +29,10 @@ module Fog
end
def objects
Fog::AWS::S3::Objects.new(:connection => connection)
Fog::AWS::S3::Objects.new(
:bucket => self,
:connection => connection
)
end
def payer

View File

@ -4,10 +4,11 @@ module Fog
class Objects < Fog::Collection
attr_accessor :is_truncated,
:marker,
:max_keys,
:prefix
attr_accessor :bucket,
:is_truncated,
:marker,
:max_keys,
:prefix
def initialize(attributes = {})
remap_attributes(attributes, {
@ -49,7 +50,10 @@ module Fog
end
def new(attributes = {})
Fog::AWS::S3::Object.new(attributes.merge!(:connection => connection))
Fog::AWS::S3::Object.new({
:bucket => bucket,
:connection => connection
}.merge!(attributes))
end
private

View File

@ -22,4 +22,10 @@ describe 'S3.buckets' do
p @bucket.delete
end
it "should push bucket down into objects" do
p @bucket = @s3.buckets.create(:name => 'fogbucketspaymenttest')
p @bucket.objects.new(:key => 'object')
p @bucket.delete
end
end