alephant-cache 1.0.0 → 1.1.0

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: 3e5befc55adc71cd49d5ec1786756af138c366a5
4
- data.tar.gz: 2d216ecdba497e169db7e304c09a30201786ea0d
3
+ metadata.gz: 0177d52b4680991b02d74ca4e90dd4640befd548
4
+ data.tar.gz: 52f7691325ce64e0219cdd759ba297be7a10d85c
5
5
  SHA512:
6
- metadata.gz: 956ba6abd6f43b25ae0dca5d328e486550424d1ee620d23d99cce59e17f4eba2061a6e561aa90492e40c0b98b8253fd0e5812e6e70155b78d4fe3c517d475f58
7
- data.tar.gz: f6550f9b26e28398a8176ac68458a33200accc75b8c6af61c9096b078cc8a0f53740481b371e96703114b1c692a1b61423fdfdb936f50f1325a63c794acad652
6
+ metadata.gz: 8f22534166daabea9b94bb5efbf391d8843c6a8aabc1b63a9e5f92ff15244d599ff099da6b687cef6ae7de0ec49af6b1dd13ea6a8a24eb538e651b842b22acfb
7
+ data.tar.gz: fe078c5f833e32db3137d57664cea7cb6566acfe08bdc8e8e7a74ad2c64efd33f6177569b1cc400660b236f14bd92d217f849c60b5ca7d7c2ce9f1a4290fcf19
@@ -38,7 +38,8 @@ module Alephant
38
38
 
39
39
  {
40
40
  :content => object.read,
41
- :content_type => object.content_type
41
+ :content_type => object.content_type,
42
+ :meta => object.metadata
42
43
  }
43
44
  end
44
45
  end
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  class Cache
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -69,6 +69,7 @@ describe Alephant::Cache do
69
69
  s3_object_collection = double()
70
70
  s3_object_collection.should_receive(:read).and_return("content")
71
71
  s3_object_collection.should_receive(:content_type).and_return("foo/bar")
72
+ s3_object_collection.should_receive(:metadata).and_return({ :foo => :bar})
72
73
 
73
74
  s3_bucket = double()
74
75
  s3_bucket.should_receive(:objects).and_return(
@@ -84,7 +85,8 @@ describe Alephant::Cache do
84
85
 
85
86
  expected_hash = {
86
87
  :content => "content",
87
- :content_type => "foo/bar"
88
+ :content_type => "foo/bar",
89
+ :meta => { :foo => :bar }
88
90
  }
89
91
 
90
92
  expect(object_hash).to eq(expected_hash)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Kenny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-02 00:00:00.000000000 Z
11
+ date: 2014-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec