ramaze 0.0.7 → 0.0.8
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/Rakefile +52 -19
- data/bin/ramaze +19 -6
- data/doc/CHANGELOG +33 -0
- data/doc/COPYING +1 -1
- data/doc/FAQ +92 -0
- data/doc/GPL +340 -0
- data/doc/INSTALL +34 -0
- data/doc/ProjectInfo +53 -0
- data/doc/README +187 -110
- data/doc/readme_chunks/appendix.txt +13 -0
- data/doc/readme_chunks/examples.txt +38 -0
- data/doc/readme_chunks/features.txt +82 -0
- data/doc/readme_chunks/getting_help.txt +5 -0
- data/doc/readme_chunks/getting_started.txt +18 -0
- data/doc/readme_chunks/installing.txt +41 -0
- data/doc/readme_chunks/introduction.txt +18 -0
- data/doc/readme_chunks/principles.txt +41 -0
- data/doc/readme_chunks/thanks.txt +59 -0
- data/doc/tutorial/todolist.txt +546 -0
- data/examples/blog/main.rb +1 -1
- data/examples/blog/src/controller.rb +13 -11
- data/examples/blog/src/element.rb +11 -6
- data/examples/blog/src/model.rb +8 -23
- data/examples/blog/template/edit.xhtml +3 -1
- data/examples/blog/template/index.xhtml +4 -4
- data/examples/caching.rb +4 -4
- data/examples/element.rb +10 -7
- data/examples/hello.rb +3 -4
- data/examples/simple.rb +5 -3
- data/examples/templates/template/external.amrita +19 -0
- data/examples/templates/template/{external.rmze → external.zmr} +2 -2
- data/examples/templates/template_amrita2.rb +48 -0
- data/examples/templates/template_erubis.rb +5 -2
- data/examples/templates/{template_ramaze.rb → template_ezamar.rb} +13 -7
- data/examples/templates/template_haml.rb +4 -1
- data/examples/templates/template_liquid.rb +2 -1
- data/examples/templates/template_markaby.rb +2 -1
- data/examples/todolist/conf/benchmark.yaml +35 -0
- data/examples/todolist/conf/debug.yaml +34 -0
- data/examples/todolist/conf/live.yaml +33 -0
- data/examples/todolist/conf/silent.yaml +31 -0
- data/examples/todolist/conf/stage.yaml +33 -0
- data/examples/todolist/main.rb +18 -0
- data/examples/todolist/public/404.jpg +0 -0
- data/examples/todolist/public/css/coderay.css +105 -0
- data/examples/todolist/public/css/ramaze_error.css +42 -0
- data/{lib/proto → examples/todolist}/public/error.xhtml +0 -0
- data/examples/todolist/public/favicon.ico +0 -0
- data/examples/todolist/public/js/jquery.js +1923 -0
- data/examples/todolist/public/ramaze.png +0 -0
- data/examples/todolist/src/controller/main.rb +56 -0
- data/examples/todolist/src/element/page.rb +26 -0
- data/examples/todolist/src/model.rb +14 -0
- data/examples/todolist/template/index.xhtml +17 -0
- data/examples/todolist/template/new.xhtml +7 -0
- data/examples/todolist/todolist.db +9 -0
- data/examples/whywiki/main.rb +3 -8
- data/examples/whywiki/template/show.xhtml +4 -0
- data/lib/proto/public/error.zmr +77 -0
- data/lib/proto/src/controller/main.rb +2 -1
- data/lib/proto/src/element/page.rb +2 -1
- data/lib/proto/src/model.rb +3 -2
- data/lib/ramaze.rb +7 -9
- data/lib/ramaze/adapter.rb +51 -0
- data/lib/ramaze/adapter/cgi.rb +23 -0
- data/lib/ramaze/adapter/fcgi.rb +22 -0
- data/lib/ramaze/adapter/mongrel.rb +7 -86
- data/lib/ramaze/adapter/webrick.rb +14 -133
- data/lib/ramaze/cache/memcached.rb +6 -0
- data/lib/ramaze/cache/yaml_store.rb +3 -1
- data/lib/ramaze/controller.rb +292 -2
- data/lib/ramaze/dispatcher.rb +85 -213
- data/lib/ramaze/error.rb +10 -0
- data/lib/ramaze/global.rb +8 -0
- data/lib/ramaze/helper/aspect.rb +30 -7
- data/lib/ramaze/helper/auth.rb +16 -9
- data/lib/ramaze/helper/cache.rb +40 -35
- data/lib/ramaze/helper/feed.rb +1 -1
- data/lib/ramaze/helper/flash.rb +34 -0
- data/lib/ramaze/helper/link.rb +8 -2
- data/lib/ramaze/helper/openid.rb +63 -0
- data/lib/ramaze/helper/redirect.rb +12 -11
- data/lib/ramaze/helper/stack.rb +5 -7
- data/lib/ramaze/inform.rb +12 -1
- data/lib/ramaze/snippets/kernel/aquire.rb +1 -1
- data/lib/ramaze/snippets/kernel/{self_method.rb → method.rb} +3 -18
- data/lib/ramaze/snippets/kernel/{rescue_require.rb → pretty_inspect.rb} +7 -6
- data/lib/ramaze/snippets/method/name.rb +22 -0
- data/lib/ramaze/snippets/{kernel → ramaze}/autoreload.rb +0 -0
- data/lib/ramaze/snippets/ramaze/caller_info.rb +14 -0
- data/lib/ramaze/snippets/{kernel → ramaze}/caller_lines.rb +3 -10
- data/lib/ramaze/snippets/rdoc/usage_no_exit.rb +49 -23
- data/lib/ramaze/snippets/string/DIVIDE.rb +0 -1
- data/lib/ramaze/store/default.rb +58 -2
- data/lib/ramaze/store/yaml.rb +161 -0
- data/lib/ramaze/template.rb +27 -86
- data/lib/ramaze/template/amrita2.rb +14 -19
- data/lib/ramaze/template/erubis.rb +15 -38
- data/lib/ramaze/template/ezamar.rb +100 -0
- data/lib/ramaze/template/ezamar/element.rb +166 -0
- data/lib/ramaze/template/ezamar/engine.rb +124 -0
- data/lib/ramaze/template/ezamar/morpher.rb +155 -0
- data/lib/ramaze/template/haml.rb +16 -43
- data/lib/ramaze/template/liquid.rb +11 -51
- data/lib/ramaze/template/markaby.rb +44 -42
- data/lib/ramaze/tool/mime.rb +18 -0
- data/lib/ramaze/tool/mime_types.yaml +615 -0
- data/lib/ramaze/trinity/request.rb +20 -196
- data/lib/ramaze/trinity/response.rb +4 -33
- data/lib/ramaze/trinity/session.rb +150 -72
- data/lib/ramaze/version.rb +1 -1
- data/spec/adapter_spec.rb +20 -0
- data/spec/public/favicon.ico +0 -0
- data/spec/public/ramaze.png +0 -0
- data/spec/public/test_download.css +141 -0
- data/spec/{tc_request.rb → request_tc_helper.rb} +45 -21
- data/spec/spec_all.rb +77 -34
- data/spec/spec_helper.rb +8 -157
- data/spec/spec_helper_context.rb +72 -0
- data/spec/spec_helper_requester.rb +52 -0
- data/spec/spec_helper_simple_http.rb +433 -0
- data/spec/tc_adapter_mongrel.rb +3 -15
- data/spec/tc_adapter_webrick.rb +4 -14
- data/spec/tc_cache.rb +3 -5
- data/spec/tc_controller.rb +22 -12
- data/spec/tc_dependencies.rb +13 -0
- data/spec/tc_element.rb +8 -7
- data/spec/tc_error.rb +13 -7
- data/spec/tc_global.rb +16 -18
- data/spec/tc_helper_aspect.rb +2 -4
- data/spec/tc_helper_auth.rb +15 -14
- data/spec/tc_helper_cache.rb +5 -7
- data/spec/tc_helper_feed.rb +0 -2
- data/spec/tc_helper_flash.rb +103 -0
- data/spec/tc_helper_form.rb +4 -6
- data/spec/tc_helper_link.rb +1 -3
- data/spec/tc_helper_redirect.rb +23 -8
- data/spec/tc_helper_stack.rb +31 -15
- data/spec/tc_morpher.rb +1 -3
- data/spec/tc_params.rb +48 -7
- data/spec/tc_request_mongrel.rb +9 -0
- data/spec/tc_request_webrick.rb +5 -0
- data/spec/tc_session.rb +41 -25
- data/spec/tc_store.rb +55 -6
- data/spec/tc_store_yaml.rb +71 -0
- data/spec/tc_template_amrita2.rb +3 -3
- data/spec/tc_template_erubis.rb +2 -3
- data/spec/{tc_template_ramaze.rb → tc_template_ezamar.rb} +15 -5
- data/spec/tc_template_haml.rb +4 -3
- data/spec/tc_template_liquid.rb +3 -4
- data/spec/tc_template_markaby.rb +4 -6
- data/spec/tc_tidy.rb +1 -3
- data/spec/template/amrita2/{data.html → data.amrita} +0 -0
- data/spec/template/amrita2/{index.html → index.amrita} +0 -0
- data/spec/template/amrita2/{sum.html → sum.amrita} +0 -0
- data/spec/template/ezamar/another/long/action.zmr +1 -0
- data/spec/template/ezamar/combined.zmr +1 -0
- data/spec/template/{ramaze/file_only.rmze → ezamar/file_only.zmr} +0 -0
- data/spec/template/{ramaze/index.rmze → ezamar/index.zmr} +0 -0
- data/spec/template/{ramaze/nested.rmze → ezamar/nested.zmr} +0 -0
- data/spec/template/ezamar/some__long__action.zmr +1 -0
- data/spec/template/{ramaze/sum.rmze → ezamar/sum.zmr} +0 -0
- metadata +181 -123
- data/doc/allison/LICENSE +0 -184
- data/doc/allison/README +0 -37
- data/doc/allison/allison.css +0 -300
- data/doc/allison/allison.gif +0 -0
- data/doc/allison/allison.js +0 -307
- data/doc/allison/allison.rb +0 -287
- data/doc/allison/cache/BODY +0 -588
- data/doc/allison/cache/CLASS_INDEX +0 -4
- data/doc/allison/cache/CLASS_PAGE +0 -1
- data/doc/allison/cache/FILE_INDEX +0 -4
- data/doc/allison/cache/FILE_PAGE +0 -1
- data/doc/allison/cache/FONTS +0 -1
- data/doc/allison/cache/FR_INDEX_BODY +0 -1
- data/doc/allison/cache/IMGPATH +0 -1
- data/doc/allison/cache/INDEX +0 -1
- data/doc/allison/cache/JAVASCRIPT +0 -307
- data/doc/allison/cache/METHOD_INDEX +0 -4
- data/doc/allison/cache/METHOD_LIST +0 -1
- data/doc/allison/cache/SRC_PAGE +0 -1
- data/doc/allison/cache/STYLE +0 -322
- data/doc/allison/cache/URL +0 -1
- data/doc/changes.txt +0 -2021
- data/doc/changes.xml +0 -2024
- data/lib/ramaze/snippets/kernel/silently.rb +0 -13
- data/lib/ramaze/snippets/thread/deadQUESTIONMARK.rb +0 -11
- data/lib/ramaze/template/haml/actionview_stub.rb +0 -20
- data/lib/ramaze/template/ramaze.rb +0 -177
- data/lib/ramaze/template/ramaze/element.rb +0 -166
- data/lib/ramaze/template/ramaze/morpher.rb +0 -156
- data/spec/tc_test.rb +0 -17
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
|
|
2
|
+
# All files in this distribution are subject to the terms of the Ruby license.
|
|
3
|
+
|
|
4
|
+
require 'spec/spec_helper'
|
|
5
|
+
require 'ramaze/store/yaml'
|
|
6
|
+
|
|
7
|
+
context "Store::YAML" do
|
|
8
|
+
def new_store name
|
|
9
|
+
Ramaze::Store::YAML.new(name, :destroy => true)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
specify "model" do
|
|
13
|
+
article_class = new_store :article
|
|
14
|
+
article_class.entities.should_not == nil
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
specify "store and retrieve" do
|
|
18
|
+
article_class = new_store :article
|
|
19
|
+
article = article_class.new
|
|
20
|
+
article.title = 'the article'
|
|
21
|
+
article.text = 'the articles text'
|
|
22
|
+
article.eid.should == nil
|
|
23
|
+
article.save
|
|
24
|
+
|
|
25
|
+
article.eid.should == 'a'
|
|
26
|
+
|
|
27
|
+
old_article = article_class[article.eid]
|
|
28
|
+
old_article.title.should == article.title
|
|
29
|
+
old_article.text.should == article.text
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
specify "convenience" do
|
|
33
|
+
article_class = new_store :article
|
|
34
|
+
article_class.all.should.be.empty
|
|
35
|
+
article = article_class.new
|
|
36
|
+
article.name = 'the article'
|
|
37
|
+
article.save
|
|
38
|
+
|
|
39
|
+
article_class.keys.should == [:a]
|
|
40
|
+
article_class.all.should_not.be.empty
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
specify "relations" do
|
|
44
|
+
article_class = new_store :article
|
|
45
|
+
author_class = new_store :author
|
|
46
|
+
|
|
47
|
+
author = author_class.new
|
|
48
|
+
author.name = 'manveru'
|
|
49
|
+
|
|
50
|
+
article = article_class.new
|
|
51
|
+
article.name = 'the article'
|
|
52
|
+
article.author = author
|
|
53
|
+
article.save
|
|
54
|
+
|
|
55
|
+
article = article_class[article.eid]
|
|
56
|
+
article.author.name.should == author.name
|
|
57
|
+
author.article.name.should == article.name
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
specify "delete" do
|
|
61
|
+
article_class = new_store :article
|
|
62
|
+
|
|
63
|
+
article = article_class['foo'] = {
|
|
64
|
+
:bar => :one
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
article_class['foo'].should == {:bar => :one}
|
|
68
|
+
article_class.delete 'foo'
|
|
69
|
+
article_class['foo'].should == nil
|
|
70
|
+
end
|
|
71
|
+
end
|
data/spec/tc_template_amrita2.rb
CHANGED
|
@@ -5,10 +5,10 @@ require 'spec/spec_helper'
|
|
|
5
5
|
|
|
6
6
|
testcase_requires 'amrita2'
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class TCTemplateAmritaController < Template::Amrita2
|
|
8
|
+
class TCTemplateAmritaController < Ramaze::Controller
|
|
11
9
|
trait :template_root => 'spec/template/amrita2/'
|
|
10
|
+
trait :engine => Ramaze::Template::Amrita2
|
|
11
|
+
trait :actionless => true
|
|
12
12
|
|
|
13
13
|
def title
|
|
14
14
|
"hello world"
|
data/spec/tc_template_erubis.rb
CHANGED
|
@@ -5,10 +5,9 @@ require 'spec/spec_helper'
|
|
|
5
5
|
|
|
6
6
|
testcase_requires 'erubis'
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class TCTemplateErubisController < Template::Erubis
|
|
8
|
+
class TCTemplateErubisController < Ramaze::Controller
|
|
11
9
|
trait :template_root => 'spec/template/erubis/'
|
|
10
|
+
trait :engine => Ramaze::Template::Erubis
|
|
12
11
|
|
|
13
12
|
def index
|
|
14
13
|
'Erubis Index'
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
require 'spec/spec_helper'
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
trait :template_root => 'spec/template/ramaze'
|
|
6
|
+
class TCTemplateController < Ramaze::Controller
|
|
7
|
+
trait :template_root => 'spec/template/ezamar'
|
|
8
|
+
trait :engine => Ramaze::Template::Ezamar
|
|
10
9
|
|
|
11
10
|
def index text
|
|
12
11
|
@text = text
|
|
@@ -24,10 +23,15 @@ class TCTemplateController < Template::Ramaze
|
|
|
24
23
|
@args = args
|
|
25
24
|
'<?r i = 2 ?>#{i * i} #{@args.inspect} on the table'
|
|
26
25
|
end
|
|
26
|
+
|
|
27
|
+
def combined
|
|
28
|
+
@a = 'boo'
|
|
29
|
+
nil
|
|
30
|
+
end
|
|
27
31
|
end
|
|
28
32
|
|
|
29
33
|
|
|
30
|
-
context "
|
|
34
|
+
context "Ezamar" do
|
|
31
35
|
ramaze(:mapping => {'/' => TCTemplateController})
|
|
32
36
|
|
|
33
37
|
specify "hello world" do
|
|
@@ -51,4 +55,10 @@ context "Ramaze" do
|
|
|
51
55
|
specify "without method" do
|
|
52
56
|
get('/file_only').should == "This is only the file"
|
|
53
57
|
end
|
|
58
|
+
|
|
59
|
+
specify "combined" do
|
|
60
|
+
100.times do
|
|
61
|
+
get('/combined').should == 'boo'
|
|
62
|
+
end
|
|
63
|
+
end
|
|
54
64
|
end
|
data/spec/tc_template_haml.rb
CHANGED
|
@@ -5,10 +5,11 @@ require 'spec/spec_helper'
|
|
|
5
5
|
|
|
6
6
|
testcase_requires 'ramaze/template/haml'
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class TCTemplateHamlController < Template::Haml
|
|
8
|
+
class TCTemplateHamlController < Ramaze::Controller
|
|
11
9
|
trait :template_root => 'spec/template/haml/'
|
|
10
|
+
trait :engine => Ramaze::Template::Haml
|
|
11
|
+
|
|
12
|
+
helper :link
|
|
12
13
|
|
|
13
14
|
def index
|
|
14
15
|
end
|
data/spec/tc_template_liquid.rb
CHANGED
|
@@ -5,8 +5,6 @@ require 'spec/spec_helper'
|
|
|
5
5
|
|
|
6
6
|
testcase_requires 'liquid'
|
|
7
7
|
|
|
8
|
-
include Ramaze
|
|
9
|
-
|
|
10
8
|
module ProductsFilter
|
|
11
9
|
def price(integer)
|
|
12
10
|
sprintf("$%.2d USD", integer / 100.0)
|
|
@@ -26,8 +24,9 @@ module ProductsFilter
|
|
|
26
24
|
end
|
|
27
25
|
|
|
28
26
|
|
|
29
|
-
class TCTemplateLiquidController <
|
|
30
|
-
trait :template_root
|
|
27
|
+
class TCTemplateLiquidController < Ramaze::Controller
|
|
28
|
+
trait :template_root => 'spec/template/liquid/'
|
|
29
|
+
trait :engine => Ramaze::Template::Liquid
|
|
31
30
|
trait :liquid_options => { :filters => ProductsFilter }
|
|
32
31
|
|
|
33
32
|
def index
|
data/spec/tc_template_markaby.rb
CHANGED
|
@@ -5,10 +5,9 @@ require 'spec/spec_helper'
|
|
|
5
5
|
|
|
6
6
|
testcase_requires 'markaby'
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class TCTemplateMarkabyController < Template::Markaby
|
|
8
|
+
class TCTemplateMarkabyController < Ramaze::Controller
|
|
11
9
|
trait :template_root => 'spec/template/markaby/'
|
|
10
|
+
trait :engine => Ramaze::Template::Markaby
|
|
12
11
|
|
|
13
12
|
def index
|
|
14
13
|
mab { h1 "Markaby Index" }
|
|
@@ -24,10 +23,9 @@ end
|
|
|
24
23
|
|
|
25
24
|
context "Markaby" do
|
|
26
25
|
ramaze(:mapping => {'/' => TCTemplateMarkabyController})
|
|
26
|
+
trait :engine => Ramaze::Template::Markaby
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
TCTemplateMarkabyController.new.send(:mab, &block)
|
|
30
|
-
end
|
|
28
|
+
include Ramaze::Template::MarkabyMixin
|
|
31
29
|
|
|
32
30
|
specify "index" do
|
|
33
31
|
get('/').should == '<h1>Markaby Index</h1>'
|
data/spec/tc_tidy.rb
CHANGED
|
@@ -5,10 +5,8 @@ require 'spec/spec_helper'
|
|
|
5
5
|
|
|
6
6
|
testcase_requires 'tidy', 'ramaze/tool/tidy'
|
|
7
7
|
|
|
8
|
-
include Ramaze::Tool::Tidy
|
|
9
|
-
|
|
10
8
|
context "testing tidy" do
|
|
11
9
|
specify "tidy some simple html" do
|
|
12
|
-
tidy("<html></html>").should =~ %r{<html>\s+<head>\s+<meta name="generator" content="HTML Tidy (.*?)" />\s+<title></title>\s+</head>\s+<body></body>\s+</html>}
|
|
10
|
+
Ramaze::Tool::Tidy.tidy("<html></html>").should =~ %r{<html>\s+<head>\s+<meta name="generator" content="HTML Tidy (.*?)" />\s+<title></title>\s+</head>\s+<body></body>\s+</html>}
|
|
13
11
|
end
|
|
14
12
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
another long action
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#{@a}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
some long action
|
|
File without changes
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: ramaze
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.0.
|
|
7
|
-
date: 2007-
|
|
6
|
+
version: 0.0.8
|
|
7
|
+
date: 2007-03-20 00:00:00 +09:00
|
|
8
8
|
summary: Ramaze tries to be a very simple Webframework without the voodoo
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|
|
@@ -35,238 +35,286 @@ post_install_message: |-
|
|
|
35
35
|
ramaze --create yourproject
|
|
36
36
|
|
|
37
37
|
* Browse and try the Examples in
|
|
38
|
-
/usr/lib/ruby/gems/1.8/gems/ramaze-0.0.
|
|
38
|
+
/usr/lib/ruby/gems/1.8/gems/ramaze-0.0.8/examples
|
|
39
39
|
|
|
40
40
|
============================================================
|
|
41
41
|
authors:
|
|
42
42
|
- manveru
|
|
43
43
|
files:
|
|
44
|
-
-
|
|
45
|
-
- doc
|
|
44
|
+
- lib
|
|
45
|
+
- doc
|
|
46
46
|
- doc/README
|
|
47
|
+
- doc/FAQ
|
|
47
48
|
- doc/CHANGELOG
|
|
48
49
|
- Rakefile
|
|
49
50
|
- examples/blog
|
|
50
|
-
- examples/caching.rb
|
|
51
|
-
- examples/element.rb
|
|
52
|
-
- examples/simple.rb
|
|
53
|
-
- examples/whywiki
|
|
54
|
-
- examples/hello.rb
|
|
55
|
-
- examples/templates
|
|
56
51
|
- examples/blog/src
|
|
57
|
-
- examples/blog/test
|
|
58
|
-
- examples/blog/template
|
|
59
|
-
- examples/blog/main.rb
|
|
60
|
-
- examples/blog/public
|
|
61
52
|
- examples/blog/src/model.rb
|
|
62
53
|
- examples/blog/src/controller.rb
|
|
63
54
|
- examples/blog/src/element.rb
|
|
55
|
+
- examples/blog/test
|
|
64
56
|
- examples/blog/test/tc_entry.rb
|
|
57
|
+
- examples/blog/template
|
|
65
58
|
- examples/blog/template/new.xhtml
|
|
66
59
|
- examples/blog/template/view.xhtml
|
|
67
60
|
- examples/blog/template/edit.xhtml
|
|
68
61
|
- examples/blog/template/index.xhtml
|
|
62
|
+
- examples/blog/main.rb
|
|
63
|
+
- examples/blog/public
|
|
69
64
|
- examples/blog/public/screen.css
|
|
65
|
+
- examples/caching.rb
|
|
66
|
+
- examples/todolist
|
|
67
|
+
- examples/todolist/src
|
|
68
|
+
- examples/todolist/src/element
|
|
69
|
+
- examples/todolist/src/element/page.rb
|
|
70
|
+
- examples/todolist/src/model.rb
|
|
71
|
+
- examples/todolist/src/controller
|
|
72
|
+
- examples/todolist/src/controller/main.rb
|
|
73
|
+
- examples/todolist/conf
|
|
74
|
+
- examples/todolist/conf/stage.yaml
|
|
75
|
+
- examples/todolist/conf/benchmark.yaml
|
|
76
|
+
- examples/todolist/conf/live.yaml
|
|
77
|
+
- examples/todolist/conf/silent.yaml
|
|
78
|
+
- examples/todolist/conf/debug.yaml
|
|
79
|
+
- examples/todolist/todolist.db
|
|
80
|
+
- examples/todolist/template
|
|
81
|
+
- examples/todolist/template/new.xhtml
|
|
82
|
+
- examples/todolist/template/index.xhtml
|
|
83
|
+
- examples/todolist/main.rb
|
|
84
|
+
- examples/todolist/public
|
|
85
|
+
- examples/todolist/public/js
|
|
86
|
+
- examples/todolist/public/js/jquery.js
|
|
87
|
+
- examples/todolist/public/css
|
|
88
|
+
- examples/todolist/public/css/ramaze_error.css
|
|
89
|
+
- examples/todolist/public/css/coderay.css
|
|
90
|
+
- examples/todolist/public/favicon.ico
|
|
91
|
+
- examples/todolist/public/ramaze.png
|
|
92
|
+
- examples/todolist/public/error.xhtml
|
|
93
|
+
- examples/todolist/public/404.jpg
|
|
94
|
+
- examples/element.rb
|
|
95
|
+
- examples/simple.rb
|
|
96
|
+
- examples/whywiki
|
|
70
97
|
- examples/whywiki/template
|
|
71
|
-
- examples/whywiki/main.rb
|
|
72
98
|
- examples/whywiki/template/show.xhtml
|
|
73
99
|
- examples/whywiki/template/edit.xhtml
|
|
100
|
+
- examples/whywiki/main.rb
|
|
101
|
+
- examples/hello.rb
|
|
102
|
+
- examples/templates
|
|
103
|
+
- examples/templates/template_ezamar.rb
|
|
74
104
|
- examples/templates/template_erubis.rb
|
|
75
|
-
- examples/templates/template_ramaze.rb
|
|
76
105
|
- examples/templates/template_liquid.rb
|
|
77
106
|
- examples/templates/template
|
|
78
|
-
- examples/templates/template_haml.rb
|
|
79
|
-
- examples/templates/template_markaby.rb
|
|
80
107
|
- examples/templates/template/external.mab
|
|
108
|
+
- examples/templates/template/external.zmr
|
|
109
|
+
- examples/templates/template/external.amrita
|
|
81
110
|
- examples/templates/template/external.liquid
|
|
82
111
|
- examples/templates/template/external.rhtml
|
|
83
112
|
- examples/templates/template/external.haml
|
|
84
|
-
- examples/templates/
|
|
113
|
+
- examples/templates/template_amrita2.rb
|
|
114
|
+
- examples/templates/template_haml.rb
|
|
115
|
+
- examples/templates/template_markaby.rb
|
|
85
116
|
- bin/ramaze
|
|
117
|
+
- doc/GPL
|
|
118
|
+
- doc/TODO
|
|
119
|
+
- doc/readme_chunks
|
|
120
|
+
- doc/readme_chunks/appendix.txt
|
|
121
|
+
- doc/readme_chunks/thanks.txt
|
|
122
|
+
- doc/readme_chunks/principles.txt
|
|
123
|
+
- doc/readme_chunks/introduction.txt
|
|
124
|
+
- doc/readme_chunks/getting_started.txt
|
|
125
|
+
- doc/readme_chunks/examples.txt
|
|
126
|
+
- doc/readme_chunks/installing.txt
|
|
127
|
+
- doc/readme_chunks/features.txt
|
|
128
|
+
- doc/readme_chunks/getting_help.txt
|
|
86
129
|
- doc/COPYING.ja
|
|
87
|
-
- doc/
|
|
88
|
-
- doc/
|
|
89
|
-
- doc/
|
|
90
|
-
- doc/
|
|
91
|
-
- doc/
|
|
92
|
-
- doc/allison/README
|
|
93
|
-
- doc/allison/allison.js
|
|
94
|
-
- doc/allison/allison.rb
|
|
95
|
-
- doc/allison/allison.css
|
|
96
|
-
- doc/allison/allison.gif
|
|
97
|
-
- doc/allison/cache/URL
|
|
98
|
-
- doc/allison/cache/BODY
|
|
99
|
-
- doc/allison/cache/SRC_PAGE
|
|
100
|
-
- doc/allison/cache/CLASS_PAGE
|
|
101
|
-
- doc/allison/cache/FONTS
|
|
102
|
-
- doc/allison/cache/INDEX
|
|
103
|
-
- doc/allison/cache/STYLE
|
|
104
|
-
- doc/allison/cache/FILE_PAGE
|
|
105
|
-
- doc/allison/cache/METHOD_INDEX
|
|
106
|
-
- doc/allison/cache/FR_INDEX_BODY
|
|
107
|
-
- doc/allison/cache/JAVASCRIPT
|
|
108
|
-
- doc/allison/cache/IMGPATH
|
|
109
|
-
- doc/allison/cache/FILE_INDEX
|
|
110
|
-
- doc/allison/cache/METHOD_LIST
|
|
111
|
-
- doc/allison/cache/CLASS_INDEX
|
|
130
|
+
- doc/tutorial
|
|
131
|
+
- doc/tutorial/todolist.txt
|
|
132
|
+
- doc/INSTALL
|
|
133
|
+
- doc/COPYING
|
|
134
|
+
- doc/ProjectInfo
|
|
112
135
|
- spec/tc_helper_cache.rb
|
|
113
|
-
- spec/tc_request.rb
|
|
114
136
|
- spec/tc_store.rb
|
|
115
137
|
- spec/tc_template_markaby.rb
|
|
138
|
+
- spec/request_tc_helper.rb
|
|
116
139
|
- spec/tc_helper_link.rb
|
|
140
|
+
- spec/tc_dependencies.rb
|
|
117
141
|
- spec/tc_helper_feed.rb
|
|
142
|
+
- spec/tc_request_webrick.rb
|
|
118
143
|
- spec/tc_gestalt.rb
|
|
119
144
|
- spec/spec_all.rb
|
|
120
145
|
- spec/tc_session.rb
|
|
121
146
|
- spec/tc_element.rb
|
|
122
147
|
- spec/tc_morpher.rb
|
|
123
148
|
- spec/template
|
|
149
|
+
- spec/template/haml
|
|
150
|
+
- spec/template/haml/index.haml
|
|
151
|
+
- spec/template/haml/with_vars.haml
|
|
152
|
+
- spec/template/markaby
|
|
153
|
+
- spec/template/markaby/external.mab
|
|
154
|
+
- spec/template/markaby/sum.mab
|
|
155
|
+
- spec/template/erubis
|
|
156
|
+
- spec/template/erubis/sum.rhtml
|
|
157
|
+
- spec/template/ezamar
|
|
158
|
+
- spec/template/ezamar/sum.zmr
|
|
159
|
+
- spec/template/ezamar/nested.zmr
|
|
160
|
+
- spec/template/ezamar/combined.zmr
|
|
161
|
+
- spec/template/ezamar/index.zmr
|
|
162
|
+
- spec/template/ezamar/some__long__action.zmr
|
|
163
|
+
- spec/template/ezamar/file_only.zmr
|
|
164
|
+
- spec/template/ezamar/another
|
|
165
|
+
- spec/template/ezamar/another/long
|
|
166
|
+
- spec/template/ezamar/another/long/action.zmr
|
|
167
|
+
- spec/template/liquid
|
|
168
|
+
- spec/template/liquid/index.liquid
|
|
169
|
+
- spec/template/liquid/products.liquid
|
|
170
|
+
- spec/template/amrita2
|
|
171
|
+
- spec/template/amrita2/sum.amrita
|
|
172
|
+
- spec/template/amrita2/index.amrita
|
|
173
|
+
- spec/template/amrita2/data.amrita
|
|
124
174
|
- spec/tc_helper_form.rb
|
|
125
175
|
- spec/tc_global.rb
|
|
126
176
|
- spec/tc_adapter_mongrel.rb
|
|
127
177
|
- spec/spec_helper.rb
|
|
128
178
|
- spec/tc_error.rb
|
|
179
|
+
- spec/spec_helper_simple_http.rb
|
|
180
|
+
- spec/tc_store_yaml.rb
|
|
181
|
+
- spec/spec_helper_context.rb
|
|
129
182
|
- spec/tc_params.rb
|
|
183
|
+
- spec/tc_helper_flash.rb
|
|
130
184
|
- spec/tc_helper_stack.rb
|
|
131
185
|
- spec/tc_cache.rb
|
|
132
186
|
- spec/tc_adapter_webrick.rb
|
|
187
|
+
- spec/adapter_spec.rb
|
|
133
188
|
- spec/tc_controller.rb
|
|
134
189
|
- spec/tc_template_haml.rb
|
|
135
190
|
- spec/tc_helper_auth.rb
|
|
191
|
+
- spec/public
|
|
192
|
+
- spec/public/favicon.ico
|
|
193
|
+
- spec/public/ramaze.png
|
|
194
|
+
- spec/public/test_download.css
|
|
136
195
|
- spec/tc_helper_aspect.rb
|
|
196
|
+
- spec/spec_helper_requester.rb
|
|
197
|
+
- spec/tc_template_ezamar.rb
|
|
137
198
|
- spec/tc_template_erubis.rb
|
|
138
199
|
- spec/tc_template_amrita2.rb
|
|
139
|
-
- spec/tc_template_ramaze.rb
|
|
140
200
|
- spec/tc_helper_redirect.rb
|
|
141
|
-
- spec/tc_test.rb
|
|
142
201
|
- spec/tc_tidy.rb
|
|
143
202
|
- spec/tc_template_liquid.rb
|
|
144
|
-
- spec/
|
|
145
|
-
- spec/template/markaby
|
|
146
|
-
- spec/template/erubis
|
|
147
|
-
- spec/template/liquid
|
|
148
|
-
- spec/template/ramaze
|
|
149
|
-
- spec/template/amrita2
|
|
150
|
-
- spec/template/haml/index.haml
|
|
151
|
-
- spec/template/haml/with_vars.haml
|
|
152
|
-
- spec/template/markaby/external.mab
|
|
153
|
-
- spec/template/markaby/sum.mab
|
|
154
|
-
- spec/template/erubis/sum.rhtml
|
|
155
|
-
- spec/template/liquid/index.liquid
|
|
156
|
-
- spec/template/liquid/products.liquid
|
|
157
|
-
- spec/template/ramaze/index.rmze
|
|
158
|
-
- spec/template/ramaze/file_only.rmze
|
|
159
|
-
- spec/template/ramaze/sum.rmze
|
|
160
|
-
- spec/template/ramaze/nested.rmze
|
|
161
|
-
- spec/template/amrita2/data.html
|
|
162
|
-
- spec/template/amrita2/index.html
|
|
163
|
-
- spec/template/amrita2/sum.html
|
|
203
|
+
- spec/tc_request_mongrel.rb
|
|
164
204
|
- lib/proto
|
|
165
|
-
- lib/ramaze.rb
|
|
166
|
-
- lib/ramaze
|
|
167
205
|
- lib/proto/doc
|
|
168
206
|
- lib/proto/log
|
|
169
207
|
- lib/proto/src
|
|
170
|
-
- lib/proto/conf
|
|
171
|
-
- lib/proto/test
|
|
172
|
-
- lib/proto/template
|
|
173
|
-
- lib/proto/main.rb
|
|
174
|
-
- lib/proto/public
|
|
175
208
|
- lib/proto/src/element
|
|
209
|
+
- lib/proto/src/element/page.rb
|
|
176
210
|
- lib/proto/src/model.rb
|
|
177
211
|
- lib/proto/src/controller
|
|
178
|
-
- lib/proto/src/element/page.rb
|
|
179
212
|
- lib/proto/src/controller/main.rb
|
|
213
|
+
- lib/proto/conf
|
|
180
214
|
- lib/proto/conf/stage.yaml
|
|
181
215
|
- lib/proto/conf/benchmark.yaml
|
|
182
216
|
- lib/proto/conf/live.yaml
|
|
183
217
|
- lib/proto/conf/silent.yaml
|
|
184
218
|
- lib/proto/conf/debug.yaml
|
|
219
|
+
- lib/proto/test
|
|
220
|
+
- lib/proto/template
|
|
185
221
|
- lib/proto/template/index.xhtml
|
|
222
|
+
- lib/proto/main.rb
|
|
223
|
+
- lib/proto/public
|
|
186
224
|
- lib/proto/public/js
|
|
225
|
+
- lib/proto/public/js/jquery.js
|
|
187
226
|
- lib/proto/public/css
|
|
227
|
+
- lib/proto/public/css/ramaze_error.css
|
|
228
|
+
- lib/proto/public/css/coderay.css
|
|
188
229
|
- lib/proto/public/favicon.ico
|
|
189
230
|
- lib/proto/public/ramaze.png
|
|
190
|
-
- lib/proto/public/error.xhtml
|
|
191
231
|
- lib/proto/public/404.jpg
|
|
192
|
-
- lib/proto/public/
|
|
193
|
-
- lib/
|
|
194
|
-
- lib/
|
|
232
|
+
- lib/proto/public/error.zmr
|
|
233
|
+
- lib/ramaze.rb
|
|
234
|
+
- lib/ramaze
|
|
195
235
|
- lib/ramaze/tool
|
|
196
|
-
- lib/ramaze/
|
|
197
|
-
- lib/ramaze/
|
|
198
|
-
- lib/ramaze/error.rb
|
|
199
|
-
- lib/ramaze/template
|
|
200
|
-
- lib/ramaze/cache.rb
|
|
201
|
-
- lib/ramaze/snippets.rb
|
|
202
|
-
- lib/ramaze/template.rb
|
|
203
|
-
- lib/ramaze/helper
|
|
204
|
-
- lib/ramaze/trinity
|
|
205
|
-
- lib/ramaze/adapter
|
|
206
|
-
- lib/ramaze/controller.rb
|
|
207
|
-
- lib/ramaze/dispatcher.rb
|
|
208
|
-
- lib/ramaze/trinity.rb
|
|
209
|
-
- lib/ramaze/gestalt.rb
|
|
210
|
-
- lib/ramaze/global.rb
|
|
211
|
-
- lib/ramaze/http_status.rb
|
|
212
|
-
- lib/ramaze/helper.rb
|
|
213
|
-
- lib/ramaze/snippets
|
|
214
|
-
- lib/ramaze/version.rb
|
|
215
|
-
- lib/ramaze/inform.rb
|
|
236
|
+
- lib/ramaze/tool/mime_types.yaml
|
|
237
|
+
- lib/ramaze/tool/mime.rb
|
|
216
238
|
- lib/ramaze/tool/tidy.rb
|
|
217
239
|
- lib/ramaze/tool/create.rb
|
|
240
|
+
- lib/ramaze/cache
|
|
218
241
|
- lib/ramaze/cache/yaml_store.rb
|
|
219
242
|
- lib/ramaze/cache/memcached.rb
|
|
220
243
|
- lib/ramaze/cache/memory.rb
|
|
244
|
+
- lib/ramaze/store
|
|
245
|
+
- lib/ramaze/store/yaml.rb
|
|
221
246
|
- lib/ramaze/store/default.rb
|
|
222
|
-
- lib/ramaze/
|
|
247
|
+
- lib/ramaze/error.rb
|
|
248
|
+
- lib/ramaze/template
|
|
223
249
|
- lib/ramaze/template/markaby.rb
|
|
250
|
+
- lib/ramaze/template/ezamar.rb
|
|
224
251
|
- lib/ramaze/template/erubis.rb
|
|
225
|
-
- lib/ramaze/template/ramaze.rb
|
|
226
252
|
- lib/ramaze/template/liquid.rb
|
|
253
|
+
- lib/ramaze/template/ezamar
|
|
254
|
+
- lib/ramaze/template/ezamar/engine.rb
|
|
255
|
+
- lib/ramaze/template/ezamar/element.rb
|
|
256
|
+
- lib/ramaze/template/ezamar/morpher.rb
|
|
227
257
|
- lib/ramaze/template/haml.rb
|
|
228
|
-
- lib/ramaze/template/ramaze
|
|
229
258
|
- lib/ramaze/template/amrita2.rb
|
|
230
|
-
- lib/ramaze/
|
|
231
|
-
- lib/ramaze/
|
|
232
|
-
- lib/ramaze/template
|
|
259
|
+
- lib/ramaze/cache.rb
|
|
260
|
+
- lib/ramaze/snippets.rb
|
|
261
|
+
- lib/ramaze/template.rb
|
|
262
|
+
- lib/ramaze/helper
|
|
233
263
|
- lib/ramaze/helper/link.rb
|
|
234
264
|
- lib/ramaze/helper/cache.rb
|
|
235
265
|
- lib/ramaze/helper/feed.rb
|
|
236
266
|
- lib/ramaze/helper/redirect.rb
|
|
237
267
|
- lib/ramaze/helper/form.rb
|
|
268
|
+
- lib/ramaze/helper/openid.rb
|
|
269
|
+
- lib/ramaze/helper/flash.rb
|
|
238
270
|
- lib/ramaze/helper/stack.rb
|
|
239
271
|
- lib/ramaze/helper/auth.rb
|
|
240
272
|
- lib/ramaze/helper/aspect.rb
|
|
273
|
+
- lib/ramaze/adapter.rb
|
|
274
|
+
- lib/ramaze/trinity
|
|
241
275
|
- lib/ramaze/trinity/response.rb
|
|
242
276
|
- lib/ramaze/trinity/request.rb
|
|
243
277
|
- lib/ramaze/trinity/session.rb
|
|
278
|
+
- lib/ramaze/adapter
|
|
244
279
|
- lib/ramaze/adapter/mongrel.rb
|
|
280
|
+
- lib/ramaze/adapter/fcgi.rb
|
|
245
281
|
- lib/ramaze/adapter/webrick.rb
|
|
282
|
+
- lib/ramaze/adapter/cgi.rb
|
|
283
|
+
- lib/ramaze/controller.rb
|
|
284
|
+
- lib/ramaze/dispatcher.rb
|
|
285
|
+
- lib/ramaze/trinity.rb
|
|
286
|
+
- lib/ramaze/gestalt.rb
|
|
287
|
+
- lib/ramaze/global.rb
|
|
288
|
+
- lib/ramaze/http_status.rb
|
|
289
|
+
- lib/ramaze/helper.rb
|
|
290
|
+
- lib/ramaze/snippets
|
|
246
291
|
- lib/ramaze/snippets/hash
|
|
247
|
-
- lib/ramaze/snippets/openstruct
|
|
248
|
-
- lib/ramaze/snippets/rdoc
|
|
249
|
-
- lib/ramaze/snippets/kernel
|
|
250
|
-
- lib/ramaze/snippets/object
|
|
251
|
-
- lib/ramaze/snippets/thread
|
|
252
|
-
- lib/ramaze/snippets/string
|
|
253
|
-
- lib/ramaze/snippets/symbol
|
|
254
292
|
- lib/ramaze/snippets/hash/keys_to_sym.rb
|
|
293
|
+
- lib/ramaze/snippets/openstruct
|
|
255
294
|
- lib/ramaze/snippets/openstruct/temp.rb
|
|
295
|
+
- lib/ramaze/snippets/rdoc
|
|
256
296
|
- lib/ramaze/snippets/rdoc/usage_no_exit.rb
|
|
297
|
+
- lib/ramaze/snippets/kernel
|
|
257
298
|
- lib/ramaze/snippets/kernel/constant.rb
|
|
258
|
-
- lib/ramaze/snippets/kernel/autoreload.rb
|
|
259
|
-
- lib/ramaze/snippets/kernel/caller_lines.rb
|
|
260
299
|
- lib/ramaze/snippets/kernel/aquire.rb
|
|
261
|
-
- lib/ramaze/snippets/kernel/
|
|
262
|
-
- lib/ramaze/snippets/kernel/
|
|
263
|
-
- lib/ramaze/snippets/
|
|
300
|
+
- lib/ramaze/snippets/kernel/pretty_inspect.rb
|
|
301
|
+
- lib/ramaze/snippets/kernel/method.rb
|
|
302
|
+
- lib/ramaze/snippets/method
|
|
303
|
+
- lib/ramaze/snippets/method/name.rb
|
|
304
|
+
- lib/ramaze/snippets/object
|
|
264
305
|
- lib/ramaze/snippets/object/traits.rb
|
|
265
|
-
- lib/ramaze/snippets/
|
|
306
|
+
- lib/ramaze/snippets/ramaze
|
|
307
|
+
- lib/ramaze/snippets/ramaze/autoreload.rb
|
|
308
|
+
- lib/ramaze/snippets/ramaze/caller_lines.rb
|
|
309
|
+
- lib/ramaze/snippets/ramaze/caller_info.rb
|
|
310
|
+
- lib/ramaze/snippets/string
|
|
266
311
|
- lib/ramaze/snippets/string/DIVIDE.rb
|
|
267
312
|
- lib/ramaze/snippets/string/camel_case.rb
|
|
268
313
|
- lib/ramaze/snippets/string/snake_case.rb
|
|
314
|
+
- lib/ramaze/snippets/symbol
|
|
269
315
|
- lib/ramaze/snippets/symbol/to_proc.rb
|
|
316
|
+
- lib/ramaze/version.rb
|
|
317
|
+
- lib/ramaze/inform.rb
|
|
270
318
|
test_files: []
|
|
271
319
|
|
|
272
320
|
rdoc_options:
|
|
@@ -277,12 +325,11 @@ rdoc_options:
|
|
|
277
325
|
- --line-numbers
|
|
278
326
|
- --inline-source
|
|
279
327
|
- --main
|
|
280
|
-
-
|
|
328
|
+
- doc/README
|
|
281
329
|
- --opname
|
|
282
330
|
- index.html
|
|
283
331
|
- --title
|
|
284
|
-
- "\"Ramaze"
|
|
285
|
-
- documentation"
|
|
332
|
+
- "\"Ramaze documentation\""
|
|
286
333
|
- --exclude
|
|
287
334
|
- "\"^(_darcs|spec|examples|bin|pkg)/\""
|
|
288
335
|
- --exclude
|
|
@@ -292,8 +339,10 @@ rdoc_options:
|
|
|
292
339
|
- --accessor
|
|
293
340
|
- "\"trait\""
|
|
294
341
|
extra_rdoc_files:
|
|
295
|
-
-
|
|
342
|
+
- lib
|
|
343
|
+
- doc
|
|
296
344
|
- doc/README
|
|
345
|
+
- doc/FAQ
|
|
297
346
|
- doc/CHANGELOG
|
|
298
347
|
executables:
|
|
299
348
|
- ramaze
|
|
@@ -320,3 +369,12 @@ dependencies:
|
|
|
320
369
|
- !ruby/object:Gem::Version
|
|
321
370
|
version: 0.7.5.1
|
|
322
371
|
version:
|
|
372
|
+
- !ruby/object:Gem::Dependency
|
|
373
|
+
name: rack
|
|
374
|
+
version_requirement:
|
|
375
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
|
376
|
+
requirements:
|
|
377
|
+
- - ">="
|
|
378
|
+
- !ruby/object:Gem::Version
|
|
379
|
+
version: 0.1.0
|
|
380
|
+
version:
|