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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ca53c956e0cb99621191d4a9a47244143bfa9cb
4
- data.tar.gz: 78e72d2023986bd39f46c2c6d2912ab3c9733c01
3
+ metadata.gz: 69b6cb65a44b589b920ef827d614f030cc86e356
4
+ data.tar.gz: 355adc58028926abbd14c65d1271af0fbe8cbe29
5
5
  SHA512:
6
- metadata.gz: 233cdca5fe6e33766e3ac03bfa93da871be90d60cf240280a091064551a3a0797709e5bb3d1bb7f3ff10bb24641ec23b665c68ed63fb9fa36c906efbc3ef9676
7
- data.tar.gz: a6cc8109baf8e4a80a3c1c76b9947044993f3d2c14510fa8c880c690026e8cf7388f17f5d2cf5ccff5657b8fcd7cf88c8e202a91267ef64a459a3a18b5695bde
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
- log_status
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",
@@ -1,5 +1,5 @@
1
1
  module Alephant
2
2
  module Broker
3
- VERSION = "3.6.0"
3
+ VERSION = "3.6.1"
4
4
  end
5
5
  end
@@ -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.0
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-01-29 00:00:00.000000000 Z
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