fake-aws-sdk 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fake_aws/s3/s3_object.rb +1 -1
- data/lib/fake_aws/version.rb +1 -1
- data/spec/fake-aws/s3/s3_object_spec.rb +37 -0
- metadata +13 -5
- checksums.yaml +0 -15
data/lib/fake_aws/version.rb
CHANGED
@@ -115,6 +115,18 @@ describe FakeAWS::S3::S3Object do
|
|
115
115
|
|
116
116
|
end
|
117
117
|
|
118
|
+
context "with an ACL" do
|
119
|
+
|
120
|
+
before do
|
121
|
+
object.write("CONTENT", :acl => :public_read)
|
122
|
+
end
|
123
|
+
|
124
|
+
it "ignores the ACL" do
|
125
|
+
object.read.should eq("CONTENT")
|
126
|
+
end
|
127
|
+
|
128
|
+
end
|
129
|
+
|
118
130
|
end
|
119
131
|
|
120
132
|
describe "#copy_to" do
|
@@ -161,6 +173,18 @@ describe FakeAWS::S3::S3Object do
|
|
161
173
|
|
162
174
|
end
|
163
175
|
|
176
|
+
context "with an ACL" do
|
177
|
+
|
178
|
+
before do
|
179
|
+
object.copy_to("dupe", :acl => :public_read)
|
180
|
+
end
|
181
|
+
|
182
|
+
it "ignores the ACL" do
|
183
|
+
object.bucket.objects["dupe"].read.should eq("CONTENT")
|
184
|
+
end
|
185
|
+
|
186
|
+
end
|
187
|
+
|
164
188
|
end
|
165
189
|
|
166
190
|
describe "#copy_from" do
|
@@ -209,6 +233,19 @@ describe FakeAWS::S3::S3Object do
|
|
209
233
|
|
210
234
|
end
|
211
235
|
|
236
|
+
context "with an ACL" do
|
237
|
+
|
238
|
+
let(:source_object) { bucket.objects["source"] }
|
239
|
+
|
240
|
+
before do
|
241
|
+
object.copy_from("source", :acl => :private)
|
242
|
+
end
|
243
|
+
|
244
|
+
it "ignores the ACL" do
|
245
|
+
object.read.should eq("CONTENT")
|
246
|
+
end
|
247
|
+
|
248
|
+
end
|
212
249
|
end
|
213
250
|
|
214
251
|
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fake-aws-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Mike Williams
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-07-02 00:00:00.000000000 Z
|
12
13
|
dependencies: []
|
13
14
|
description: Fake implementation of AWS SDK
|
14
15
|
email:
|
@@ -39,26 +40,33 @@ files:
|
|
39
40
|
- spec/fake-aws/s3_spec.rb
|
40
41
|
homepage: http://github.com/cogent/fake-aws-sdk
|
41
42
|
licenses: []
|
42
|
-
metadata: {}
|
43
43
|
post_install_message:
|
44
44
|
rdoc_options: []
|
45
45
|
require_paths:
|
46
46
|
- lib
|
47
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
48
49
|
requirements:
|
49
50
|
- - ! '>='
|
50
51
|
- !ruby/object:Gem::Version
|
51
52
|
version: '0'
|
53
|
+
segments:
|
54
|
+
- 0
|
55
|
+
hash: 1837342833771022398
|
52
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
53
58
|
requirements:
|
54
59
|
- - ! '>='
|
55
60
|
- !ruby/object:Gem::Version
|
56
61
|
version: '0'
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
hash: 1837342833771022398
|
57
65
|
requirements: []
|
58
66
|
rubyforge_project:
|
59
|
-
rubygems_version:
|
67
|
+
rubygems_version: 1.8.23
|
60
68
|
signing_key:
|
61
|
-
specification_version:
|
69
|
+
specification_version: 3
|
62
70
|
summary: Fake implementation of AWS SDK
|
63
71
|
test_files:
|
64
72
|
- spec/fake-aws/s3/bucket_collection_spec.rb
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
YWZiODdkOTg4NGE1MTE5NGY1MjllZjA0Nzk0MDgxMzE3NzA5ZjVmZQ==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZjI2NzQ1ZmQ2ZjdlZmFlZGMxYmI1NjVmNjc0NmVkNWRhOTk5N2RjYw==
|
7
|
-
!binary "U0hBNTEy":
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MGVlNTNmYzhlM2E0MTViM2I1N2U2MTk3ZWVlMzU5MmMzMDZkMzg2MjQxMWIw
|
10
|
-
NzE0NzcxOTEwMWUyYzM4MDgxZTRkNWFlZWMwZGIyZmRhZDBkYTVhMDFmZThj
|
11
|
-
YjVlMzI4ZTAxMTU1NzFlZDMxNTA4OGU3NTYzZmMwYjllMDk5ODA=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YmQxZTQ3NTAzYjY1Njc5OWY1NWNmNjcwZjk1MzYxZDdlNWQ2Y2UxZWJmZmFm
|
14
|
-
Nzc0ZmJkNWZjYWMxNDQwZGEzYzRmYWM5ZDZhN2JlZjFlNmI3ZGZlOGUwNmFm
|
15
|
-
ZTZmNDE0MWU3ZjY3ZmIyYTRkYWQzYTliY2VlMDFjYWZhZTRjYTA=
|