alephant-broker 3.6.0 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alephant/broker/response/base.rb +1 -5
- data/lib/alephant/broker/version.rb +1 -1
- data/spec/integration/rack_spec.rb +3 -0
- 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: 69b6cb65a44b589b920ef827d614f030cc86e356
|
4
|
+
data.tar.gz: 355adc58028926abbd14c65d1271af0fbe8cbe29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fbbb31bf1f3155fbc2d56eadb1ebf64b37aa111c568cafa8193da9a86eb0391ae37191a732b99417a44f9013c808c3c81f4c68170dafa94bbd6d3a4f5e7626e
|
7
|
+
data.tar.gz: 0e9a58cc5db27b70dda053a61f47fc6f4a6fc170064966113e9cc9506787894313a1f3d02bb4216d6fd76b0803c8dd1b627c0df8c399bce1478d6063813994d9
|
@@ -24,7 +24,7 @@ module Alephant
|
|
24
24
|
@headers.merge!(Broker.config[:headers]) if Broker.config.has_key?(:headers)
|
25
25
|
@status = status
|
26
26
|
|
27
|
-
|
27
|
+
add_no_cache_headers if status != 200
|
28
28
|
setup
|
29
29
|
end
|
30
30
|
|
@@ -34,10 +34,6 @@ module Alephant
|
|
34
34
|
|
35
35
|
private
|
36
36
|
|
37
|
-
def log_status
|
38
|
-
add_no_cache_headers if status !~ /200/
|
39
|
-
end
|
40
|
-
|
41
37
|
def add_no_cache_headers
|
42
38
|
headers.merge!(
|
43
39
|
"Cache-Control" => "no-cache, must-revalidate",
|
@@ -73,6 +73,9 @@ describe Alephant::Broker::Application do
|
|
73
73
|
context "for a valid component ID" do
|
74
74
|
specify { expect(last_response.status).to eql 200 }
|
75
75
|
specify { expect(last_response.body).to eql "Test" }
|
76
|
+
specify { expect(last_response.headers).to_not include("Cache-Control") }
|
77
|
+
specify { expect(last_response.headers).to_not include("Pragma") }
|
78
|
+
specify { expect(last_response.headers).to_not include("Expires") }
|
76
79
|
end
|
77
80
|
|
78
81
|
context "for valid URL parameters in request" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alephant-broker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BBC News
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|