doculab 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/doculab/docs_controller.rb +2 -1
- data/doculab.gemspec +1 -1
- data/lib/doculab/engine.rb +0 -4
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
@@ -3,15 +3,16 @@ module Doculab
|
|
3
3
|
rescue_from Doc::FileNotFound, :with => :handle_file_not_found
|
4
4
|
layout :select_layout
|
5
5
|
helper TableOfContentsHelper
|
6
|
-
caches_page :index, :show
|
7
6
|
|
8
7
|
def index
|
9
8
|
find('index')
|
9
|
+
response.headers['Cache-Control'] = 'public'
|
10
10
|
render :text => @doc.render, :layout => true
|
11
11
|
end
|
12
12
|
|
13
13
|
def show
|
14
14
|
find(params[:permalink])
|
15
|
+
response.headers['Cache-Control'] = 'public'
|
15
16
|
render :text => @doc.render, :layout => true
|
16
17
|
end
|
17
18
|
|
data/doculab.gemspec
CHANGED
data/lib/doculab/engine.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doculab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Klett
|