wonki 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -23,6 +23,7 @@ module Wonki
23
23
  response_body = git_data[:content]
24
24
  headers["Last-Modified"] = git_data[:last_modified].httpdate
25
25
  headers["Etag"] = Digest::MD5.hexdigest(git_data[:content])
26
+ headers["Cache-Control"] = "max-age=300, public"
26
27
  status = 200
27
28
  rescue Wonki::PageNotFound
28
29
  response_body = "Page Not Found"
@@ -28,6 +28,10 @@ class WikiPageTest < Test::Unit::TestCase
28
28
  should "set etag" do
29
29
  assert_not_nil @headers['Etag']
30
30
  end
31
+
32
+ should "set cache control" do
33
+ assert_equal(@headers["Cache-Control"], "max-age=300, public")
34
+ end
31
35
  end
32
36
 
33
37
  context "PageNotFound" do
data/wonki.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wonki}
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["rubyyot"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wonki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - rubyyot