alephant-broker 1.1.2 → 1.1.3

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: 05e727c81504161478d91abebc8e415bc1435894
4
- data.tar.gz: 82c5a0bbaf31728ebd2de89d1deed4638613020f
3
+ metadata.gz: a4905794dc7afc13f2c31d4e12f7a71dfc74d8bf
4
+ data.tar.gz: b911cd24b7b3fc9b633d12a045bd646f3964b07b
5
5
  SHA512:
6
- metadata.gz: 83a79c1625e37169a333af0d64a8924abadf5a447ed582320965ca2d22a746334e987416af8826fb1d6c4d02a024d3470d328726e790bc50befbcd36f0b71530
7
- data.tar.gz: 80580f0f138590006d4605c310a88fa5d5d59436fe8559f2fde77f8a5097fd93b7ec566107d561da53cbebd987bdcdced8f0b857cfd2f81cf222e90616a25cd7
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
- @content_type = 'text/html'
31
- @content = @cache.set(cache_key, retrieve_object)
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
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Broker
3
- VERSION = "1.1.2"
3
+ VERSION = "1.1.3"
4
4
  end
5
5
  end
@@ -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 => nil, :get => '<p>Some data</p>')
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alephant-broker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack