ramaze 2009.10 → 2010.01
Sign up to get free protection for your applications and to get access to all the features.
- data/.mailmap +9 -7
- data/MANIFEST +13 -0
- data/Rakefile +35 -26
- data/benchmark/bench_templates/bench.rb +1 -1
- data/benchmark/bench_templates/view/large.lok +79 -0
- data/benchmark/bench_templates/view/small.lok +21 -0
- data/doc/AUTHORS +11 -9
- data/doc/CHANGELOG +138 -0
- data/examples/templates/template_markaby.rb +3 -3
- data/examples/templates/template_mustache.rb +70 -0
- data/examples/templates/view/external.mab +4 -4
- data/examples/templates/view/external.mt +29 -0
- data/lib/proto/start.rb +1 -1
- data/lib/ramaze/contrib/rest.rb +1 -0
- data/lib/ramaze/helper/form.rb +7 -1
- data/lib/ramaze/helper/httpdigest.rb +15 -16
- data/lib/ramaze/helper/xhtml.rb +5 -1
- data/lib/ramaze/snippets.rb +30 -7
- data/lib/ramaze/tool/project_creator.rb +20 -11
- data/lib/ramaze/version.rb +1 -1
- data/lib/ramaze/view.rb +3 -1
- data/lib/ramaze/view/haml.rb +6 -3
- data/lib/ramaze/view/lokar.rb +14 -0
- data/lib/ramaze/view/mustache.rb +40 -0
- data/lib/ramaze/view/slippers.rb +4 -2
- data/ramaze.gemspec +108 -81
- data/spec/examples/templates/template_mustache.rb +13 -0
- data/spec/ramaze/helper/form.rb +38 -37
- data/spec/ramaze/helper/httpdigest.rb +56 -29
- data/spec/ramaze/helper/xhtml.rb +2 -0
- data/spec/ramaze/view/lokar.rb +73 -0
- data/spec/ramaze/view/lokar/external.lok +8 -0
- data/spec/ramaze/view/lokar/sum.lok +1 -0
- data/spec/ramaze/view/mustache.rb +77 -0
- data/spec/ramaze/view/mustache/external.mt +8 -0
- data/spec/ramaze/view/mustache/sum.mt +1 -0
- data/tasks/authors.rake +0 -13
- metadata +144 -41
@@ -16,6 +16,10 @@ class MainController < Ramaze::Controller
|
|
16
16
|
"Hello #{user}"
|
17
17
|
end
|
18
18
|
|
19
|
+
def logout
|
20
|
+
httpdigest_logout
|
21
|
+
end
|
22
|
+
|
19
23
|
end
|
20
24
|
|
21
25
|
class PlainTextController < Ramaze::Controller
|
@@ -70,14 +74,18 @@ describe Ramaze::Helper::HttpDigest do
|
|
70
74
|
end
|
71
75
|
end
|
72
76
|
end
|
73
|
-
end
|
74
|
-
|
75
|
-
__END__
|
76
77
|
|
77
78
|
describe 'Digest authentication' do
|
78
79
|
behaves_like :rack_test
|
79
80
|
|
80
81
|
it 'authenticates a user with a block' do
|
82
|
+
get '/logout'
|
83
|
+
digest_authorize nil, nil
|
84
|
+
|
85
|
+
get '/authenticate'
|
86
|
+
last_response.status.should == 401
|
87
|
+
last_response.body.should == "Unauthorized"
|
88
|
+
|
81
89
|
digest_authorize 'foo', 'oof'
|
82
90
|
get '/authenticate'
|
83
91
|
last_response.status.should == 200
|
@@ -85,6 +93,13 @@ __END__
|
|
85
93
|
end
|
86
94
|
|
87
95
|
it 'fails to authenticate an incorrect password with a block' do
|
96
|
+
get '/logout'
|
97
|
+
digest_authorize nil, nil
|
98
|
+
|
99
|
+
get '/authenticate'
|
100
|
+
last_response.status.should == 401
|
101
|
+
last_response.body.should == "Unauthorized"
|
102
|
+
|
88
103
|
digest_authorize 'foo', 'bar'
|
89
104
|
get '/authenticate'
|
90
105
|
last_response.status.should == 401
|
@@ -96,52 +111,64 @@ __END__
|
|
96
111
|
behaves_like :rack_test
|
97
112
|
|
98
113
|
it 'authenticates a user with the plaintext method' do
|
114
|
+
get '/logout'
|
115
|
+
digest_authorize nil, nil
|
116
|
+
|
99
117
|
get '/plaintext/authenticate'
|
100
118
|
last_response.status.should == 401
|
101
119
|
last_response.body.should == 'Unauthorized'
|
102
120
|
|
103
|
-
|
121
|
+
digest_authorize 'foo', 'oof'
|
104
122
|
get '/plaintext/authenticate'
|
105
123
|
last_response.status.should == 200
|
106
124
|
last_response.body.should == "Hello foo"
|
107
125
|
end
|
108
126
|
|
109
127
|
it 'fails to authenticate an incorrect password with the plaintext method' do
|
110
|
-
|
128
|
+
get '/logout'
|
129
|
+
digest_authorize nil, nil
|
130
|
+
|
131
|
+
get '/plaintext/authenticate'
|
132
|
+
last_response.status.should == 401
|
133
|
+
last_response.body.should == "Unauthorized"
|
134
|
+
|
135
|
+
digest_authorize 'foo', 'bar'
|
111
136
|
get '/plaintext/authenticate'
|
112
137
|
last_response.status.should == 401
|
113
138
|
last_response.body.should == "Unauthorized"
|
114
139
|
end
|
115
140
|
end
|
116
141
|
|
117
|
-
|
118
|
-
|
119
|
-
got.status.should == 200
|
120
|
-
got.body.should == "Hello foo"
|
121
|
-
end
|
142
|
+
describe 'Password lookup authentication' do
|
143
|
+
behaves_like :rack_test
|
122
144
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
got.body.should == "Unauthorized"
|
127
|
-
end
|
145
|
+
it 'authenticates a user with the password lookup method' do
|
146
|
+
get '/logout'
|
147
|
+
digest_authorize nil, nil
|
128
148
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
got.body.should == "Hello foo"
|
133
|
-
end
|
149
|
+
get '/lookup/authenticate'
|
150
|
+
last_response.status.should == 401
|
151
|
+
last_response.body.should == "Unauthorized"
|
134
152
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
153
|
+
digest_authorize 'foo', 'oof'
|
154
|
+
get '/lookup/authenticate'
|
155
|
+
last_response.status.should == 200
|
156
|
+
last_response.body.should == "Hello foo"
|
157
|
+
end
|
158
|
+
|
159
|
+
it 'fails to authenticate an incorrect password with the password lookup method' do
|
160
|
+
get '/logout'
|
161
|
+
digest_authorize nil, nil
|
162
|
+
|
163
|
+
get '/lookup/authenticate'
|
164
|
+
last_response.status.should == 401
|
165
|
+
last_response.body.should == "Unauthorized"
|
140
166
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
167
|
+
digest_authorize 'foo', 'bar'
|
168
|
+
get '/lookup/authenticate'
|
169
|
+
last_response.status.should == 401
|
170
|
+
last_response.body.should == "Unauthorized"
|
171
|
+
end
|
145
172
|
end
|
146
173
|
|
147
174
|
end
|
data/spec/ramaze/helper/xhtml.rb
CHANGED
@@ -14,6 +14,8 @@ describe Ramaze::Helper::XHTML do
|
|
14
14
|
should == '<link href="/css/foo.css" media="mobile" rel="stylesheet" type="text/css" />'
|
15
15
|
css(:foo, 'screen', :only => :ie).
|
16
16
|
should == '<!--[if IE]><link href="/css/foo.css" media="screen" rel="stylesheet" type="text/css" /><![endif]-->'
|
17
|
+
css('http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js', 'screen').
|
18
|
+
should == '<link href="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" media="screen" rel="stylesheet" type="text/css" />'
|
17
19
|
end
|
18
20
|
|
19
21
|
should 'answer with <script> on #js' do
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com
|
2
|
+
# All files in this distribution are subject to the terms of the Ruby license.
|
3
|
+
|
4
|
+
require File.expand_path('../../../../spec/helper', __FILE__)
|
5
|
+
spec_require 'lokar'
|
6
|
+
|
7
|
+
Ramaze::App.options.views = 'lokar'
|
8
|
+
|
9
|
+
class SpecLokar < Ramaze::Controller
|
10
|
+
map '/'
|
11
|
+
engine :Lokar
|
12
|
+
|
13
|
+
def index
|
14
|
+
'<h1>Lokar Index</h1>'
|
15
|
+
end
|
16
|
+
|
17
|
+
def links
|
18
|
+
'<ul>
|
19
|
+
<li>#{a "Index page", r(:index) }</li>
|
20
|
+
<li>#{a "Internal template", r(:internal) }</li>
|
21
|
+
<li>#{a "External template", r(:external) }</li>
|
22
|
+
</ul>'.ui
|
23
|
+
end
|
24
|
+
|
25
|
+
def sum(num1, num2)
|
26
|
+
@num1, @num2 = num1.to_i, num2.to_i
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe "Ramaze::View::Lokar" do
|
31
|
+
behaves_like :rack_test
|
32
|
+
|
33
|
+
should 'render' do
|
34
|
+
got = get('/')
|
35
|
+
got.status.should == 200
|
36
|
+
got['Content-Type'].should == 'text/html'
|
37
|
+
got.body.strip.should == "<h1>Lokar Index</h1>"
|
38
|
+
end
|
39
|
+
|
40
|
+
should 'use other helper methods' do
|
41
|
+
got = get('/links')
|
42
|
+
got.status.should == 200
|
43
|
+
got['Content-Type'].should == 'text/html'
|
44
|
+
got.body.strip.should ==
|
45
|
+
'<ul>
|
46
|
+
<li><a href="/index">Index page</a></li>
|
47
|
+
<li><a href="/internal">Internal template</a></li>
|
48
|
+
<li><a href="/external">External template</a></li>
|
49
|
+
</ul>'
|
50
|
+
end
|
51
|
+
|
52
|
+
should 'render external template' do
|
53
|
+
got = get('/external')
|
54
|
+
got.status.should == 200
|
55
|
+
got['Content-Type'].should == 'text/html'
|
56
|
+
got.body.strip.should ==
|
57
|
+
"<html>
|
58
|
+
<head>
|
59
|
+
<title>Lokar Test</title>
|
60
|
+
</head>
|
61
|
+
<body>
|
62
|
+
<h1>Lokar Template</h1>
|
63
|
+
</body>
|
64
|
+
</html>"
|
65
|
+
end
|
66
|
+
|
67
|
+
should 'render external template with instance variables' do
|
68
|
+
got = get('/sum/1/2')
|
69
|
+
got.status.should == 200
|
70
|
+
got['Content-Type'].should == 'text/html'
|
71
|
+
got.body.strip.should == "<div>3</div>"
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<div>#{@num1 + @num2}</div>
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com
|
2
|
+
# All files in this distribution are subject to the terms of the Ruby license.
|
3
|
+
|
4
|
+
require File.expand_path('../../../../spec/helper', __FILE__)
|
5
|
+
spec_require 'mustache'
|
6
|
+
|
7
|
+
Ramaze::App.options.views = 'mustache'
|
8
|
+
|
9
|
+
class SpecMustache < Ramaze::Controller
|
10
|
+
map '/'
|
11
|
+
engine :Mustache
|
12
|
+
|
13
|
+
def index
|
14
|
+
'<h1>Mustache Index</h1>'
|
15
|
+
end
|
16
|
+
|
17
|
+
def links
|
18
|
+
@index = a("Index page", r(:index))
|
19
|
+
@internal = a("Internal template", r(:internal))
|
20
|
+
@external = a("External template", r(:external))
|
21
|
+
|
22
|
+
'<ul>
|
23
|
+
<li>{{{index}}}</li>
|
24
|
+
<li>{{{internal}}}</li>
|
25
|
+
<li>{{{external}}}</li>
|
26
|
+
</ul>'.ui
|
27
|
+
end
|
28
|
+
|
29
|
+
def sum(num1, num2)
|
30
|
+
@sum = num1.to_i + num2.to_i
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'Ramaze::View::Mustache' do
|
35
|
+
behaves_like :rack_test
|
36
|
+
|
37
|
+
should 'render' do
|
38
|
+
got = get('/')
|
39
|
+
got.status.should == 200
|
40
|
+
got['Content-Type'].should == 'text/html'
|
41
|
+
got.body.strip.should == "<h1>Mustache Index</h1>"
|
42
|
+
end
|
43
|
+
|
44
|
+
should 'use custom tags for default helpers' do
|
45
|
+
got = get('/links')
|
46
|
+
got.status.should == 200
|
47
|
+
got['Content-Type'].should == 'text/html'
|
48
|
+
got.body.strip.should ==
|
49
|
+
'<ul>
|
50
|
+
<li><a href="/index">Index page</a></li>
|
51
|
+
<li><a href="/internal">Internal template</a></li>
|
52
|
+
<li><a href="/external">External template</a></li>
|
53
|
+
</ul>'.ui
|
54
|
+
end
|
55
|
+
|
56
|
+
should 'render external template' do
|
57
|
+
got = get('/external')
|
58
|
+
got.status.should == 200
|
59
|
+
got['Content-Type'].should == 'text/html'
|
60
|
+
got.body.strip.should ==
|
61
|
+
"<html>
|
62
|
+
<head>
|
63
|
+
<title>Mustache Test</title>
|
64
|
+
</head>
|
65
|
+
<body>
|
66
|
+
<h1>Mustache Template</h1>
|
67
|
+
</body>
|
68
|
+
</html>"
|
69
|
+
end
|
70
|
+
|
71
|
+
should 'render external template with instance variables' do
|
72
|
+
got = get('/sum/1/2')
|
73
|
+
got.status.should == 200
|
74
|
+
got['Content-Type'].should == 'text/html'
|
75
|
+
got.body.strip.should == "<div>3</div>"
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
<div>{{sum}}</div>
|
data/tasks/authors.rake
CHANGED
@@ -1,21 +1,8 @@
|
|
1
|
-
# Once git has a fix for the glibc in handling .mailmap and another fix for
|
2
|
-
# allowing empty mail address to be mapped in .mailmap we won't have to handle
|
3
|
-
# them manually.
|
4
|
-
|
5
1
|
desc 'Update doc/AUTHORS'
|
6
2
|
task :authors do
|
7
3
|
authors = Hash.new(0)
|
8
4
|
|
9
5
|
`git shortlog -nse`.scan(/(\d+)\s(.+)\s<(.*)>$/) do |count, name, email|
|
10
|
-
case name
|
11
|
-
when "ahoward"
|
12
|
-
name, email = "Ara T. Howard", "ara.t.howard@gmail.com"
|
13
|
-
when "Martin Hilbig blueonyx@dev-area.net"
|
14
|
-
name, email = "Martin Hilbig", "blueonyx@dev-area.net"
|
15
|
-
when "Michael Fellinger m.fellinger@gmail.com"
|
16
|
-
name, email = "Michael Fellinger", "m.fellinger@gmail.com"
|
17
|
-
end
|
18
|
-
|
19
6
|
authors[[name, email]] += count.to_i
|
20
7
|
end
|
21
8
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ramaze
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "
|
4
|
+
version: "2010.01"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael 'manveru' Fellinger
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-07 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: "
|
23
|
+
version: "2010.01"
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: RedCloth
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 4.2.2
|
34
34
|
version:
|
@@ -38,19 +38,29 @@ dependencies:
|
|
38
38
|
version_requirement:
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - "="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: 0.5.2
|
44
44
|
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: abstract
|
47
|
+
type: :development
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.0.0
|
54
|
+
version:
|
45
55
|
- !ruby/object:Gem::Dependency
|
46
56
|
name: activesupport
|
47
57
|
type: :development
|
48
58
|
version_requirement:
|
49
59
|
version_requirements: !ruby/object:Gem::Requirement
|
50
60
|
requirements:
|
51
|
-
- -
|
61
|
+
- - "="
|
52
62
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.3.
|
63
|
+
version: 2.3.5
|
54
64
|
version:
|
55
65
|
- !ruby/object:Gem::Dependency
|
56
66
|
name: addressable
|
@@ -58,9 +68,9 @@ dependencies:
|
|
58
68
|
version_requirement:
|
59
69
|
version_requirements: !ruby/object:Gem::Requirement
|
60
70
|
requirements:
|
61
|
-
- -
|
71
|
+
- - "="
|
62
72
|
- !ruby/object:Gem::Version
|
63
|
-
version: 2.1.
|
73
|
+
version: 2.1.1
|
64
74
|
version:
|
65
75
|
- !ruby/object:Gem::Dependency
|
66
76
|
name: bacon
|
@@ -68,19 +78,29 @@ dependencies:
|
|
68
78
|
version_requirement:
|
69
79
|
version_requirements: !ruby/object:Gem::Requirement
|
70
80
|
requirements:
|
71
|
-
- - "
|
81
|
+
- - "="
|
72
82
|
- !ruby/object:Gem::Version
|
73
83
|
version: 1.1.0
|
74
84
|
version:
|
85
|
+
- !ruby/object:Gem::Dependency
|
86
|
+
name: builder
|
87
|
+
type: :development
|
88
|
+
version_requirement:
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 2.1.2
|
94
|
+
version:
|
75
95
|
- !ruby/object:Gem::Dependency
|
76
96
|
name: erector
|
77
97
|
type: :development
|
78
98
|
version_requirement:
|
79
99
|
version_requirements: !ruby/object:Gem::Requirement
|
80
100
|
requirements:
|
81
|
-
- -
|
101
|
+
- - "="
|
82
102
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.7.
|
103
|
+
version: 0.7.2
|
84
104
|
version:
|
85
105
|
- !ruby/object:Gem::Dependency
|
86
106
|
name: erubis
|
@@ -88,9 +108,9 @@ dependencies:
|
|
88
108
|
version_requirement:
|
89
109
|
version_requirements: !ruby/object:Gem::Requirement
|
90
110
|
requirements:
|
91
|
-
- - "
|
111
|
+
- - "="
|
92
112
|
- !ruby/object:Gem::Version
|
93
|
-
version: 2.6.
|
113
|
+
version: 2.6.5
|
94
114
|
version:
|
95
115
|
- !ruby/object:Gem::Dependency
|
96
116
|
name: ezamar
|
@@ -98,19 +118,29 @@ dependencies:
|
|
98
118
|
version_requirement:
|
99
119
|
version_requirements: !ruby/object:Gem::Requirement
|
100
120
|
requirements:
|
101
|
-
- - "
|
121
|
+
- - "="
|
102
122
|
- !ruby/object:Gem::Version
|
103
123
|
version: "2009.06"
|
104
124
|
version:
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: gemcutter
|
127
|
+
type: :development
|
128
|
+
version_requirement:
|
129
|
+
version_requirements: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 0.3.0
|
134
|
+
version:
|
105
135
|
- !ruby/object:Gem::Dependency
|
106
136
|
name: haml
|
107
137
|
type: :development
|
108
138
|
version_requirement:
|
109
139
|
version_requirements: !ruby/object:Gem::Requirement
|
110
140
|
requirements:
|
111
|
-
- -
|
141
|
+
- - "="
|
112
142
|
- !ruby/object:Gem::Version
|
113
|
-
version: 2.2.
|
143
|
+
version: 2.2.16
|
114
144
|
version:
|
115
145
|
- !ruby/object:Gem::Dependency
|
116
146
|
name: hpricot
|
@@ -118,9 +148,9 @@ dependencies:
|
|
118
148
|
version_requirement:
|
119
149
|
version_requirements: !ruby/object:Gem::Requirement
|
120
150
|
requirements:
|
121
|
-
- - "
|
151
|
+
- - "="
|
122
152
|
- !ruby/object:Gem::Version
|
123
|
-
version: 0.8.
|
153
|
+
version: 0.8.2
|
124
154
|
version:
|
125
155
|
- !ruby/object:Gem::Dependency
|
126
156
|
name: json
|
@@ -128,9 +158,9 @@ dependencies:
|
|
128
158
|
version_requirement:
|
129
159
|
version_requirements: !ruby/object:Gem::Requirement
|
130
160
|
requirements:
|
131
|
-
- - "
|
161
|
+
- - "="
|
132
162
|
- !ruby/object:Gem::Version
|
133
|
-
version: 1.
|
163
|
+
version: 1.2.0
|
134
164
|
version:
|
135
165
|
- !ruby/object:Gem::Dependency
|
136
166
|
name: less
|
@@ -138,7 +168,7 @@ dependencies:
|
|
138
168
|
version_requirement:
|
139
169
|
version_requirements: !ruby/object:Gem::Requirement
|
140
170
|
requirements:
|
141
|
-
- -
|
171
|
+
- - "="
|
142
172
|
- !ruby/object:Gem::Version
|
143
173
|
version: 1.1.13
|
144
174
|
version:
|
@@ -148,7 +178,7 @@ dependencies:
|
|
148
178
|
version_requirement:
|
149
179
|
version_requirements: !ruby/object:Gem::Requirement
|
150
180
|
requirements:
|
151
|
-
- -
|
181
|
+
- - "="
|
152
182
|
- !ruby/object:Gem::Version
|
153
183
|
version: 2.0.0
|
154
184
|
version:
|
@@ -158,9 +188,9 @@ dependencies:
|
|
158
188
|
version_requirement:
|
159
189
|
version_requirements: !ruby/object:Gem::Requirement
|
160
190
|
requirements:
|
161
|
-
- -
|
191
|
+
- - "="
|
162
192
|
- !ruby/object:Gem::Version
|
163
|
-
version: 2.0.
|
193
|
+
version: 2.0.5
|
164
194
|
version:
|
165
195
|
- !ruby/object:Gem::Dependency
|
166
196
|
name: localmemcache
|
@@ -168,9 +198,19 @@ dependencies:
|
|
168
198
|
version_requirement:
|
169
199
|
version_requirements: !ruby/object:Gem::Requirement
|
170
200
|
requirements:
|
171
|
-
- -
|
201
|
+
- - "="
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: 0.4.4
|
204
|
+
version:
|
205
|
+
- !ruby/object:Gem::Dependency
|
206
|
+
name: lokar
|
207
|
+
type: :development
|
208
|
+
version_requirement:
|
209
|
+
version_requirements: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - "="
|
172
212
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
213
|
+
version: 0.1.0
|
174
214
|
version:
|
175
215
|
- !ruby/object:Gem::Dependency
|
176
216
|
name: maruku
|
@@ -178,7 +218,7 @@ dependencies:
|
|
178
218
|
version_requirement:
|
179
219
|
version_requirements: !ruby/object:Gem::Requirement
|
180
220
|
requirements:
|
181
|
-
- -
|
221
|
+
- - "="
|
182
222
|
- !ruby/object:Gem::Version
|
183
223
|
version: 0.6.0
|
184
224
|
version:
|
@@ -188,9 +228,29 @@ dependencies:
|
|
188
228
|
version_requirement:
|
189
229
|
version_requirements: !ruby/object:Gem::Requirement
|
190
230
|
requirements:
|
191
|
-
- -
|
231
|
+
- - "="
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: 1.7.7
|
234
|
+
version:
|
235
|
+
- !ruby/object:Gem::Dependency
|
236
|
+
name: mustache
|
237
|
+
type: :development
|
238
|
+
version_requirement:
|
239
|
+
version_requirements: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "="
|
192
242
|
- !ruby/object:Gem::Version
|
193
|
-
version:
|
243
|
+
version: 0.5.1
|
244
|
+
version:
|
245
|
+
- !ruby/object:Gem::Dependency
|
246
|
+
name: mutter
|
247
|
+
type: :development
|
248
|
+
version_requirement:
|
249
|
+
version_requirements: !ruby/object:Gem::Requirement
|
250
|
+
requirements:
|
251
|
+
- - "="
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: 0.5.2
|
194
254
|
version:
|
195
255
|
- !ruby/object:Gem::Dependency
|
196
256
|
name: nagoro
|
@@ -198,17 +258,37 @@ dependencies:
|
|
198
258
|
version_requirement:
|
199
259
|
version_requirements: !ruby/object:Gem::Requirement
|
200
260
|
requirements:
|
201
|
-
- - "
|
261
|
+
- - "="
|
202
262
|
- !ruby/object:Gem::Version
|
203
263
|
version: "2009.05"
|
204
264
|
version:
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: polyglot
|
267
|
+
type: :development
|
268
|
+
version_requirement:
|
269
|
+
version_requirements: !ruby/object:Gem::Requirement
|
270
|
+
requirements:
|
271
|
+
- - "="
|
272
|
+
- !ruby/object:Gem::Version
|
273
|
+
version: 0.2.9
|
274
|
+
version:
|
275
|
+
- !ruby/object:Gem::Dependency
|
276
|
+
name: rack
|
277
|
+
type: :development
|
278
|
+
version_requirement:
|
279
|
+
version_requirements: !ruby/object:Gem::Requirement
|
280
|
+
requirements:
|
281
|
+
- - "="
|
282
|
+
- !ruby/object:Gem::Version
|
283
|
+
version: 1.1.0
|
284
|
+
version:
|
205
285
|
- !ruby/object:Gem::Dependency
|
206
286
|
name: rack-contrib
|
207
287
|
type: :development
|
208
288
|
version_requirement:
|
209
289
|
version_requirements: !ruby/object:Gem::Requirement
|
210
290
|
requirements:
|
211
|
-
- - "
|
291
|
+
- - "="
|
212
292
|
- !ruby/object:Gem::Version
|
213
293
|
version: 0.9.2
|
214
294
|
version:
|
@@ -218,9 +298,9 @@ dependencies:
|
|
218
298
|
version_requirement:
|
219
299
|
version_requirements: !ruby/object:Gem::Requirement
|
220
300
|
requirements:
|
221
|
-
- - "
|
301
|
+
- - "="
|
222
302
|
- !ruby/object:Gem::Version
|
223
|
-
version: 0.
|
303
|
+
version: 0.5.3
|
224
304
|
version:
|
225
305
|
- !ruby/object:Gem::Dependency
|
226
306
|
name: sequel
|
@@ -230,7 +310,7 @@ dependencies:
|
|
230
310
|
requirements:
|
231
311
|
- - "="
|
232
312
|
- !ruby/object:Gem::Version
|
233
|
-
version: 3.
|
313
|
+
version: 3.8.0
|
234
314
|
version:
|
235
315
|
- !ruby/object:Gem::Dependency
|
236
316
|
name: slippers
|
@@ -238,9 +318,9 @@ dependencies:
|
|
238
318
|
version_requirement:
|
239
319
|
version_requirements: !ruby/object:Gem::Requirement
|
240
320
|
requirements:
|
241
|
-
- -
|
321
|
+
- - "="
|
242
322
|
- !ruby/object:Gem::Version
|
243
|
-
version: 0.0.
|
323
|
+
version: 0.0.13
|
244
324
|
version:
|
245
325
|
- !ruby/object:Gem::Dependency
|
246
326
|
name: sqlite3-ruby
|
@@ -248,7 +328,7 @@ dependencies:
|
|
248
328
|
version_requirement:
|
249
329
|
version_requirements: !ruby/object:Gem::Requirement
|
250
330
|
requirements:
|
251
|
-
- -
|
331
|
+
- - "="
|
252
332
|
- !ruby/object:Gem::Version
|
253
333
|
version: 1.2.5
|
254
334
|
version:
|
@@ -258,9 +338,9 @@ dependencies:
|
|
258
338
|
version_requirement:
|
259
339
|
version_requirements: !ruby/object:Gem::Requirement
|
260
340
|
requirements:
|
261
|
-
- - "
|
341
|
+
- - "="
|
262
342
|
- !ruby/object:Gem::Version
|
263
|
-
version: 7.
|
343
|
+
version: 7.2.3
|
264
344
|
version:
|
265
345
|
- !ruby/object:Gem::Dependency
|
266
346
|
name: tenjin
|
@@ -268,10 +348,20 @@ dependencies:
|
|
268
348
|
version_requirement:
|
269
349
|
version_requirements: !ruby/object:Gem::Requirement
|
270
350
|
requirements:
|
271
|
-
- -
|
351
|
+
- - "="
|
272
352
|
- !ruby/object:Gem::Version
|
273
353
|
version: 0.6.1
|
274
354
|
version:
|
355
|
+
- !ruby/object:Gem::Dependency
|
356
|
+
name: treetop
|
357
|
+
type: :development
|
358
|
+
version_requirement:
|
359
|
+
version_requirements: !ruby/object:Gem::Requirement
|
360
|
+
requirements:
|
361
|
+
- - "="
|
362
|
+
- !ruby/object:Gem::Version
|
363
|
+
version: 1.4.3
|
364
|
+
version:
|
275
365
|
description: Ramaze is a simple and modular web framework
|
276
366
|
email: m.fellinger@gmail.com
|
277
367
|
executables:
|
@@ -289,9 +379,11 @@ files:
|
|
289
379
|
- benchmark/bench_templates/bench.rb
|
290
380
|
- benchmark/bench_templates/view/large.erb
|
291
381
|
- benchmark/bench_templates/view/large.haml
|
382
|
+
- benchmark/bench_templates/view/large.lok
|
292
383
|
- benchmark/bench_templates/view/large.xhtml
|
293
384
|
- benchmark/bench_templates/view/small.erb
|
294
385
|
- benchmark/bench_templates/view/small.haml
|
386
|
+
- benchmark/bench_templates/view/small.lok
|
295
387
|
- benchmark/bench_templates/view/small.xhtml
|
296
388
|
- benchmark/results.txt
|
297
389
|
- benchmark/run.rb
|
@@ -460,6 +552,7 @@ files:
|
|
460
552
|
- examples/templates/template_haml.rb
|
461
553
|
- examples/templates/template_liquid.rb
|
462
554
|
- examples/templates/template_markaby.rb
|
555
|
+
- examples/templates/template_mustache.rb
|
463
556
|
- examples/templates/template_nagoro.rb
|
464
557
|
- examples/templates/template_redcloth.rb
|
465
558
|
- examples/templates/template_remarkably.rb
|
@@ -467,6 +560,7 @@ files:
|
|
467
560
|
- examples/templates/view/external.haml
|
468
561
|
- examples/templates/view/external.liquid
|
469
562
|
- examples/templates/view/external.mab
|
563
|
+
- examples/templates/view/external.mt
|
470
564
|
- examples/templates/view/external.nag
|
471
565
|
- examples/templates/view/external.redcloth
|
472
566
|
- examples/templates/view/external.rem
|
@@ -618,7 +712,9 @@ files:
|
|
618
712
|
- lib/ramaze/view/haml.rb
|
619
713
|
- lib/ramaze/view/less.rb
|
620
714
|
- lib/ramaze/view/liquid.rb
|
715
|
+
- lib/ramaze/view/lokar.rb
|
621
716
|
- lib/ramaze/view/maruku.rb
|
717
|
+
- lib/ramaze/view/mustache.rb
|
622
718
|
- lib/ramaze/view/nagoro.rb
|
623
719
|
- lib/ramaze/view/nagoro/render_partial.rb
|
624
720
|
- lib/ramaze/view/redcloth.rb
|
@@ -644,6 +740,7 @@ files:
|
|
644
740
|
- spec/examples/templates/template_haml.rb
|
645
741
|
- spec/examples/templates/template_liquid.rb
|
646
742
|
- spec/examples/templates/template_markaby.rb
|
743
|
+
- spec/examples/templates/template_mustache.rb
|
647
744
|
- spec/examples/templates/template_nagoro.rb
|
648
745
|
- spec/examples/templates/template_redcloth.rb
|
649
746
|
- spec/examples/templates/template_remarkably.rb
|
@@ -753,6 +850,12 @@ files:
|
|
753
850
|
- spec/ramaze/view/liquid.rb
|
754
851
|
- spec/ramaze/view/liquid/external.liquid
|
755
852
|
- spec/ramaze/view/liquid/sum.liquid
|
853
|
+
- spec/ramaze/view/lokar.rb
|
854
|
+
- spec/ramaze/view/lokar/external.lok
|
855
|
+
- spec/ramaze/view/lokar/sum.lok
|
856
|
+
- spec/ramaze/view/mustache.rb
|
857
|
+
- spec/ramaze/view/mustache/external.mt
|
858
|
+
- spec/ramaze/view/mustache/sum.mt
|
756
859
|
- spec/ramaze/view/nagoro.rb
|
757
860
|
- spec/ramaze/view/nagoro/external.nag
|
758
861
|
- spec/ramaze/view/nagoro/sum.nag
|