mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Version bump to 0.0.1
This commit is contained in:
parent
5a83da1a93
commit
9ac8af38fb
4 changed files with 20 additions and 7 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.0.0
|
||||
0.0.1
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue