fakes3 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/fakes3.gemspec +1 -1
- data/lib/fakes3/file_store.rb +1 -0
- data/lib/fakes3/server.rb +5 -0
- data/lib/fakes3/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/fakes3.gemspec
CHANGED
@@ -18,10 +18,10 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.add_development_dependency "aws-s3"
|
19
19
|
s.add_development_dependency "right_aws"
|
20
20
|
#s.add_development_dependency "aws-sdk"
|
21
|
+
#s.add_development_dependency "ruby-debug"
|
21
22
|
#s.add_development_dependency "ruby-debug19"
|
22
23
|
s.add_dependency "thor"
|
23
24
|
s.add_dependency "builder"
|
24
|
-
#s.add_dependency "algorithms"
|
25
25
|
|
26
26
|
s.files = `git ls-files`.split("\n")
|
27
27
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/fakes3/file_store.rb
CHANGED
data/lib/fakes3/server.rb
CHANGED
@@ -129,6 +129,11 @@ module FakeS3
|
|
129
129
|
@store.copy_object(s_req.src_bucket,s_req.src_object,s_req.bucket,s_req.object)
|
130
130
|
when Request::STORE
|
131
131
|
bucket_obj = @store.get_bucket(s_req.bucket)
|
132
|
+
if !bucket_obj
|
133
|
+
# Lazily create a bucket. TODO fix this to return the proper error
|
134
|
+
bucket_obj = @store.create_bucket(s_req.bucket)
|
135
|
+
end
|
136
|
+
|
132
137
|
real_obj = @store.store_object(bucket_obj,s_req.object,s_req.webrick_request)
|
133
138
|
response['Etag'] = real_obj.md5
|
134
139
|
when Request::CREATE_BUCKET
|
data/lib/fakes3/version.rb
CHANGED