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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df26b8be256655ec1d8bb338fef31be5192cf039
4
- data.tar.gz: c3a50a35b787c73513e0cf79897c515b2e0b05d1
3
+ metadata.gz: c18986f41564cb482158b815dec218a9f93ee728
4
+ data.tar.gz: eefb97d197db2e4b875a6505dcfe2897baaad80b
5
5
  SHA512:
6
- metadata.gz: 83a0bae057b6d4a7df70a22ebe3177192fad720d63453e6732d97d4b4e0130fe4609b8adcb6007d54c4252afba8bb60d48f2f5694d59df046b1c72ace2f3fdbf
7
- data.tar.gz: b79e334b118534c125b990d510dd530ef8dec92906b90ee4b8f9b64b15add23cbd5ee3f890a39ef20fc3fcb75fd0e9d554041d6440df03ae542f8aca05d10f64
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)
@@ -1,3 +1,3 @@
1
1
  module FakeAWS
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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.0
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: 2014-09-15 00:00:00.000000000 Z
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.3.0
59
+ rubygems_version: 2.4.5
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Fake implementation of AWS SDK