fake-aws-sdk 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fake_aws/s3/s3_object.rb +2 -0
- data/lib/fake_aws/version.rb +1 -1
- data/spec/fake-aws/s3/s3_object_spec.rb +14 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c18986f41564cb482158b815dec218a9f93ee728
|
4
|
+
data.tar.gz: eefb97d197db2e4b875a6505dcfe2897baaad80b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84fb8c61ba43437313e4da290d2303e037e6ad3a4db5beb7bd51f479f1a7b58ef4850480de086d1b9a5086da348f50377becc4c30da5a2db6997bb040eaeae24
|
7
|
+
data.tar.gz: 5ec8831f34b62f949e6991739bd538bf62c00cd6e359510c005bb8518e0f6467a3ec507c8a65a5bb83bee1ba0943b8e08ec7227047e097a2f1c5c9e8217f484d
|
@@ -6,10 +6,12 @@ module FakeAWS
|
|
6
6
|
def initialize(bucket, key)
|
7
7
|
@bucket = bucket
|
8
8
|
@key = key
|
9
|
+
@metadata = {}
|
9
10
|
end
|
10
11
|
|
11
12
|
attr_reader :bucket
|
12
13
|
attr_reader :key
|
14
|
+
attr_reader :metadata
|
13
15
|
|
14
16
|
def write(data, options = {})
|
15
17
|
data = data.read if data.respond_to?(:read)
|
data/lib/fake_aws/version.rb
CHANGED
@@ -264,4 +264,18 @@ describe FakeAWS::S3::S3Object do
|
|
264
264
|
end
|
265
265
|
end
|
266
266
|
|
267
|
+
describe '#metadata' do
|
268
|
+
|
269
|
+
let(:source_object) { bucket.objects["source"] }
|
270
|
+
|
271
|
+
before do
|
272
|
+
object.metadata[:foo] = 'bar'
|
273
|
+
end
|
274
|
+
|
275
|
+
it 'should return metadata' do
|
276
|
+
object.metadata[:foo].should eq('bar')
|
277
|
+
end
|
278
|
+
|
279
|
+
end
|
280
|
+
|
267
281
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fake-aws-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Fake implementation of AWS SDK
|
14
14
|
email:
|
@@ -17,8 +17,8 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- .gitignore
|
21
|
-
- .rspec
|
20
|
+
- ".gitignore"
|
21
|
+
- ".rspec"
|
22
22
|
- Gemfile
|
23
23
|
- LICENSE.txt
|
24
24
|
- README.md
|
@@ -46,17 +46,17 @@ require_paths:
|
|
46
46
|
- lib
|
47
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
|
-
- -
|
49
|
+
- - ">="
|
50
50
|
- !ruby/object:Gem::Version
|
51
51
|
version: '0'
|
52
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 2.
|
59
|
+
rubygems_version: 2.4.5
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: Fake implementation of AWS SDK
|