toto 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/toto.rb +2 -2
- data/toto.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.9
|
data/lib/toto.rb
CHANGED
@@ -97,7 +97,7 @@ module Toto
|
|
97
97
|
self[:root]
|
98
98
|
end
|
99
99
|
|
100
|
-
def go route,
|
100
|
+
def go route, env = {}, type = :html
|
101
101
|
route << self./ if route.empty?
|
102
102
|
type, path = type =~ /html|xml|json/ ? type.to_sym : :html, route.join('/')
|
103
103
|
context = lambda do |data, page|
|
@@ -335,7 +335,7 @@ module Toto
|
|
335
335
|
path, mime = @request.path_info.split('.')
|
336
336
|
route = (path || '/').split('/').reject {|i| i.empty? }
|
337
337
|
|
338
|
-
response = @site.go(route, *(mime ? mime : [])
|
338
|
+
response = @site.go(route, env, *(mime ? mime : []))
|
339
339
|
|
340
340
|
@response.body = [response[:body]]
|
341
341
|
@response['Content-Length'] = response[:body].length.to_s unless response[:body].empty?
|
data/toto.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{toto}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["cloudhead"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-12-01}
|
13
13
|
s.description = %q{the tiniest blog-engine in Oz.}
|
14
14
|
s.email = %q{self@cloudhead.net}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cloudhead
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-12-01 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|