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 +4 -4
- data/lib/alephant/cache.rb +2 -1
- data/lib/alephant/cache/version.rb +1 -1
- data/spec/cache_spec.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0177d52b4680991b02d74ca4e90dd4640befd548
|
4
|
+
data.tar.gz: 52f7691325ce64e0219cdd759ba297be7a10d85c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f22534166daabea9b94bb5efbf391d8843c6a8aabc1b63a9e5f92ff15244d599ff099da6b687cef6ae7de0ec49af6b1dd13ea6a8a24eb538e651b842b22acfb
|
7
|
+
data.tar.gz: fe078c5f833e32db3137d57664cea7cb6566acfe08bdc8e8e7a74ad2c64efd33f6177569b1cc400660b236f14bd92d217f849c60b5ca7d7c2ce9f1a4290fcf19
|
data/lib/alephant/cache.rb
CHANGED
data/spec/cache_spec.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|