doculab 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
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
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{doculab}
8
- s.version = "0.1.1"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Klett"]
@@ -17,10 +17,6 @@ class Engine < Rails::Engine
17
17
  end
18
18
  end
19
19
 
20
- initializer "doculab.sweep_cache" do |app|
21
- Doculab::CacheSweeper.sweep!
22
- end
23
-
24
20
  def self.table_of_contents_path
25
21
  Rails.root.join("doculab", "meta", "table_of_contents.rb").to_s
26
22
  end
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: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Klett