wonki 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/wonki/wiki_page.rb +4 -4
  3. data/wonki.gemspec +2 -2
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -8,7 +8,7 @@ module Wonki
8
8
  def initialize(repo_path, flannel_cache=nil, cache_control=nil)
9
9
  @cache_control = cache_control
10
10
  @repo_path = repo_path
11
- @flannel_cache = Flannel::FileCache.new(flannel_cache) if flannel_cache
11
+ @flannel_cache = Flannel::FileCache.new(File.expand_path(flannel_cache)) if flannel_cache
12
12
  end
13
13
 
14
14
  def call(env)
@@ -24,16 +24,16 @@ module Wonki
24
24
 
25
25
  begin
26
26
  git_data = storage.build(path)
27
- response_body = format_data(git_data)
27
+ response_body = [format_data(git_data)]
28
28
  headers["Last-Modified"] = git_data[:last_modified].httpdate
29
29
  headers["Etag"] = Digest::MD5.hexdigest(git_data[:content])
30
30
  headers = set_cache_control headers
31
31
  status = 200
32
32
  rescue Wonki::PageNotFound
33
- response_body = "Page Not Found"
33
+ response_body = ["Page Not Found"]
34
34
  status = 404
35
35
  rescue RuntimeError => e
36
- response_body = "Server Error: #{e.message}\r\n#{e.stack_trace}"
36
+ response_body = ["Server Error: #{e.message}\r\n#{e.stack_trace}"]
37
37
  status = 500
38
38
  end
39
39
 
data/wonki.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wonki}
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["rubyyot"]
12
- s.date = %q{2010-01-14}
12
+ s.date = %q{2010-02-09}
13
13
  s.description = %q{a Rack and Git based wiki like thing}
14
14
  s.email = %q{jamal.hansen@gmail.com}
15
15
  s.extra_rdoc_files = [
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - rubyyot
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-14 00:00:00 -06:00
12
+ date: 2010-02-09 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency