alephant-broker 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/alephant/broker/component.rb +3 -3
- data/lib/alephant/broker/version.rb +1 -1
- data/spec/rack_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4905794dc7afc13f2c31d4e12f7a71dfc74d8bf
|
4
|
+
data.tar.gz: b911cd24b7b3fc9b633d12a045bd646f3964b07b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 113cc3f0f58df6b1c1e01bd7f6ddceb45a726990b4f7f372d4e9905b9c3e1309db42d13b075b94d404b8a8281b7a5dd3918193074e959c24df26ff814eaba90c
|
7
|
+
data.tar.gz: f75c8797e657bf9950292c24cb402f111da4178542801ffe34b43f6cce579ad65468bcd8840a47515910b2c0bf14cef1bcd49b93c6945d7565bbb9d949fed238
|
@@ -23,12 +23,12 @@ module Alephant
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def load
|
26
|
-
# binding.pry
|
27
26
|
@content_type = cache_object[:content_type]
|
28
27
|
@content = cache_object[:content]
|
29
28
|
rescue
|
30
|
-
@
|
31
|
-
@
|
29
|
+
content_hash = @cache.set(cache_key, retrieve_object)
|
30
|
+
@content_type = content_hash[:content_type]
|
31
|
+
@content = content_hash[:content]
|
32
32
|
end
|
33
33
|
|
34
34
|
def opts_hash
|
data/spec/rack_spec.rb
CHANGED
@@ -99,7 +99,7 @@ describe 'Broker Rack Application' do
|
|
99
99
|
lookup_location_double = double('Alephant::Lookup::Location', :location => 'test/location')
|
100
100
|
lookup_helper_double = double('Alephant::Lookup::LookupHelper', :read => lookup_location_double)
|
101
101
|
|
102
|
-
cache_double = double('Alephant::Broker::Cache::Client', :set =>
|
102
|
+
cache_double = double('Alephant::Broker::Cache::Client', :set => { :content_type => 'test/html', :content => '<p>Some data</p>' }, :get => '<p>Some data</p>')
|
103
103
|
s3_cache_double = double('Alephant::Cache', :get => 'test_content')
|
104
104
|
|
105
105
|
allow(Alephant::Lookup)
|