excursion 0.1.7 → 0.1.8

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: f67cb11bb21b6a38218aa2afad67a67a8f201bd1
4
- data.tar.gz: cd56be564c40918ba209f5bf629f2f7c45c9fd4b
3
+ metadata.gz: b97ac8d0b583333857d70fbf9988f5898310120a
4
+ data.tar.gz: e48f2b27571cec68d56f3ee8e31b2b02e9005e01
5
5
  SHA512:
6
- metadata.gz: c9f16e87f91349c6f80adcd46d3c9efaef4595cf20cd1e5dc9de723a1d1a28fc0a524497421fe040b52509887f4e2c2fc337df2d0dde23c29d802a0b6f4547bc
7
- data.tar.gz: 9ffe02f2599c3eb95b42078a71fb522e9c2b15b536bbebfa6d55187117d74cb5c9e83f05118da69ec55d40760f5076667be984ca2e9a0787fbd7ca25aad87f7a
6
+ metadata.gz: 3bcea36a7d986bd130eb11b27dc360efb82ddf43cec88a93fa0c781677325023fc4a7620dc883e34f996e56910f53aa004c9a358c6345cda2a030e66a2979db8
7
+ data.tar.gz: de20b9681da8568ffb3aa72ebe51b9346f274d716a22d4d443cca3a370364d3627e77895d734466562e1e980be6e4904b4eaa256884eea4ab0016fa17455b96c
@@ -8,6 +8,8 @@ module Excursion
8
8
  request = Rack::Request.new(env)
9
9
  response = @app.call(env)
10
10
  if request.path =~ /^\/assets\/excursion\//
11
+ response[1]["Cache-Control"] = 'no-cache, no-store'
12
+ response[1]["Etag"] = Digest::MD5.hexdigest(Excursion::Pool.all_applications.values.map(&:to_cache).to_json.to_s)
11
13
  response[1]["Last-Modified"] = Time.at(Excursion::Pool.pool_updated).strftime('%a, %d %b %Y %H:%M:%S %Z')
12
14
  end
13
15
  response
@@ -1,3 +1,3 @@
1
1
  module Excursion
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excursion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rebec
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-10 00:00:00.000000000 Z
11
+ date: 2014-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails