ramaze 2009.04 → 2009.05
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +168 -0
- data/MANIFEST +16 -6
- data/{README.markdown → README.md} +0 -14
- data/Rakefile +20 -20
- data/benchmark/bench_templates/bench.rb +67 -0
- data/benchmark/bench_templates/view/large.erb +79 -0
- data/benchmark/bench_templates/view/large.haml +41 -0
- data/benchmark/bench_templates/view/large.xhtml +79 -0
- data/benchmark/bench_templates/view/small.erb +21 -0
- data/benchmark/bench_templates/view/small.haml +12 -0
- data/benchmark/bench_templates/view/small.xhtml +21 -0
- data/benchmark/run.rb +14 -21
- data/benchmark/suite/minimal.rb +3 -5
- data/benchmark/suite/no_informer.rb +0 -2
- data/benchmark/suite/no_sessions.rb +3 -4
- data/benchmark/suite/no_template.rb +1 -3
- data/benchmark/suite/simple.rb +1 -3
- data/benchmark/suite/template_erubis.rb +0 -2
- data/benchmark/suite/template_etanni.rb +8 -0
- data/benchmark/suite/template_ezamar.rb +1 -3
- data/benchmark/suite/template_haml.rb +0 -2
- data/benchmark/suite/template_liquid.rb +0 -2
- data/benchmark/suite/template_markaby.rb +0 -2
- data/benchmark/suite/template_nagoro.rb +1 -3
- data/benchmark/suite/template_redcloth.rb +0 -2
- data/benchmark/suite/template_tenjin.rb +0 -2
- data/bin/ramaze +7 -300
- data/doc/AUTHORS +11 -7
- data/examples/app/chat/layout/{default.nag → default.xhtml} +0 -0
- data/examples/app/chat/view/{chat.nag → chat.xhtml} +0 -0
- data/examples/app/chat/view/{index.nag → index.xhtml} +0 -0
- data/examples/helpers/cache.rb +6 -4
- data/lib/ramaze.rb +2 -3
- data/lib/ramaze/cache/sequel.rb +17 -5
- data/lib/ramaze/gestalt.rb +3 -0
- data/lib/ramaze/helper/gestalt.rb +32 -0
- data/lib/ramaze/helper/paginate.rb +1 -0
- data/lib/ramaze/helper/ultraviolet.rb +2 -0
- data/lib/ramaze/log/rotatinginformer.rb +10 -10
- data/lib/ramaze/request.rb +1 -4
- data/lib/ramaze/tool/bin.rb +330 -0
- data/lib/ramaze/version.rb +1 -1
- data/lib/ramaze/view.rb +3 -13
- data/lib/ramaze/view/erubis.rb +2 -2
- data/lib/ramaze/view/ezamar.rb +2 -2
- data/lib/ramaze/view/gestalt.rb +14 -0
- data/lib/ramaze/view/haml.rb +1 -1
- data/lib/ramaze/view/liquid.rb +2 -2
- data/lib/ramaze/view/maruku.rb +2 -1
- data/lib/ramaze/view/sass.rb +1 -1
- data/lib/ramaze/view/tenjin.rb +7 -4
- data/lib/vendor/route_exceptions.rb +8 -9
- data/ramaze.gemspec +6 -9
- data/spec/examples/caching.rb +2 -4
- data/spec/examples/element.rb +1 -0
- data/spec/examples/templates/template_ezamar.rb +1 -0
- data/spec/examples/templates/template_nagoro.rb +1 -0
- data/spec/ramaze/error.rb +1 -1
- data/spec/ramaze/gestalt.rb +22 -16
- data/spec/ramaze/helper/localize.rb +10 -8
- data/spec/ramaze/helper/sequel_form.rb +2 -0
- data/spec/ramaze/helper/user.rb +2 -2
- data/spec/ramaze/view/gestalt.rb +94 -0
- data/spec/ramaze/view/gestalt/external.ges +8 -0
- data/tasks/install_dependencies.rake +1 -1
- data/tasks/release.rake +5 -4
- metadata +20 -20
- data/benchmark/suite/template_builder.rb +0 -12
- data/lib/ramaze/snippets/kernel/constant.rb +0 -41
data/lib/ramaze/version.rb
CHANGED
data/lib/ramaze/view.rb
CHANGED
@@ -2,22 +2,17 @@
|
|
2
2
|
# All files in this distribution are subject to the terms of the Ruby license.
|
3
3
|
|
4
4
|
module Ramaze
|
5
|
+
View = Innate::View
|
5
6
|
|
6
7
|
# This is a container module for wrappers of templating engines and handles
|
7
8
|
# lazy requiring of needed engines.
|
8
|
-
|
9
9
|
module View
|
10
|
-
extend Innate::View
|
11
|
-
|
12
|
-
def self.get(*args)
|
13
|
-
Innate::View.get(*args)
|
14
|
-
end
|
15
10
|
|
16
11
|
# Combine Kernel#autoload and Innate::View::register
|
17
12
|
|
18
13
|
def self.auto_register(name, *exts)
|
19
14
|
autoload(name, "ramaze/view/#{name}".downcase)
|
20
|
-
register("
|
15
|
+
register("Innate::View::#{name}", *exts)
|
21
16
|
end
|
22
17
|
|
23
18
|
# TODO:
|
@@ -38,11 +33,6 @@ module Ramaze
|
|
38
33
|
auto_register :Tenjin, :rbhtml, :tenjin
|
39
34
|
auto_register :Remarkably, :rem
|
40
35
|
auto_register :Tagz, :rb, :tagz
|
41
|
-
|
42
|
-
end
|
43
|
-
|
44
|
-
module Innate
|
45
|
-
module View
|
46
|
-
include Ramaze::View
|
36
|
+
auto_register :Gestalt, :ges
|
47
37
|
end
|
48
38
|
end
|
data/lib/ramaze/view/erubis.rb
CHANGED
@@ -12,9 +12,9 @@ module Ramaze
|
|
12
12
|
options = OPTIONS.dup
|
13
13
|
engine = options.delete(:engine)
|
14
14
|
|
15
|
-
eruby = engine.new(
|
15
|
+
eruby = View.compile(string){|s| engine.new(s, options) }
|
16
16
|
eruby.init_evaluator(:filename => (action.view || __FILE__))
|
17
|
-
html = eruby.
|
17
|
+
html = eruby.evaluate(action.instance)
|
18
18
|
|
19
19
|
return html, 'text/html'
|
20
20
|
end
|
data/lib/ramaze/view/ezamar.rb
CHANGED
@@ -6,8 +6,8 @@ module Ramaze
|
|
6
6
|
TRANSFORM_PIPELINE = [ ::Ezamar::Element ]
|
7
7
|
|
8
8
|
def self.call(action, string)
|
9
|
-
|
10
|
-
html =
|
9
|
+
ezamar = View.compile(string){|s| compile(action, s) }
|
10
|
+
html = ezamar.result(action.binding)
|
11
11
|
return html, 'text/html'
|
12
12
|
end
|
13
13
|
|
data/lib/ramaze/view/haml.rb
CHANGED
@@ -6,7 +6,7 @@ module Ramaze
|
|
6
6
|
module Haml
|
7
7
|
def self.call(action, string)
|
8
8
|
action.options[:filename] = (action.view || '(haml)')
|
9
|
-
haml = ::Haml::Engine.new(
|
9
|
+
haml = View.compile(string){|s| ::Haml::Engine.new(s, action.options) }
|
10
10
|
html = haml.to_html(action.instance, action.variables)
|
11
11
|
|
12
12
|
return html, 'text/html'
|
data/lib/ramaze/view/liquid.rb
CHANGED
@@ -51,8 +51,8 @@ module Ramaze
|
|
51
51
|
variables = {}
|
52
52
|
action.variables.each{|k,v| variables[k.to_s] = v }
|
53
53
|
|
54
|
-
|
55
|
-
html =
|
54
|
+
liquid = View.compile(string){|s| ::Liquid::Template.parse(s) }
|
55
|
+
html = liquid.render(variables)
|
56
56
|
|
57
57
|
return html, 'text/html'
|
58
58
|
end
|
data/lib/ramaze/view/maruku.rb
CHANGED
@@ -5,7 +5,8 @@ module Ramaze
|
|
5
5
|
module Maruku
|
6
6
|
def self.call(action, string)
|
7
7
|
string = File.read(action.view) if action.view
|
8
|
-
|
8
|
+
maruku = View.compile(string){|s| ::Maruku.new(s) }
|
9
|
+
html = maruku.to_html
|
9
10
|
|
10
11
|
return html, 'text/html'
|
11
12
|
end
|
data/lib/ramaze/view/sass.rb
CHANGED
data/lib/ramaze/view/tenjin.rb
CHANGED
@@ -4,10 +4,13 @@ module Ramaze
|
|
4
4
|
module View
|
5
5
|
module Tenjin
|
6
6
|
def self.call(action, string)
|
7
|
-
|
8
|
-
|
7
|
+
tenjin = View.compile(string){|s|
|
8
|
+
template = ::Tenjin::Template.new
|
9
|
+
template.convert(s)
|
10
|
+
template
|
11
|
+
}
|
9
12
|
|
10
|
-
html =
|
13
|
+
html = tenjin.ramaze_render(action.binding)
|
11
14
|
|
12
15
|
return html, 'text/html'
|
13
16
|
end
|
@@ -23,7 +26,7 @@ module Tenjin
|
|
23
26
|
# Tenjin::ContextHelper is not available here. Patches welcome.
|
24
27
|
def ramaze_render(binding)
|
25
28
|
code = "_buf = #{init_buf_expr}; #{@script}; _buf.to_s"
|
26
|
-
_buf =
|
29
|
+
_buf = eval(code, binding, @filename || '(tenjin)')
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
@@ -2,9 +2,9 @@ module Rack
|
|
2
2
|
class RouteExceptions
|
3
3
|
ROUTES = []
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
PATH_INFO = 'rack.route_exceptions.path_info'.freeze
|
6
|
+
EXCEPTION = 'rack.route_exceptions.exception'.freeze
|
7
|
+
RETURNED = 'rack.route_exceptions.returned'.freeze
|
8
8
|
|
9
9
|
class << self
|
10
10
|
def route(exception, to)
|
@@ -33,12 +33,11 @@ module Rack
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def route(to, env, returned, exception)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
env.merge!(hash)
|
36
|
+
env.merge!(
|
37
|
+
PATH_INFO => env['PATH_INFO'],
|
38
|
+
EXCEPTION => exception,
|
39
|
+
RETURNED => returned
|
40
|
+
)
|
42
41
|
|
43
42
|
env['PATH_INFO'] = to
|
44
43
|
|
data/ramaze.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ramaze}
|
5
|
-
s.version = "2009.
|
5
|
+
s.version = "2009.05"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Michael 'manveru' Fellinger"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-05-07}
|
10
10
|
s.default_executable = %q{ramaze}
|
11
11
|
s.description = %q{Ramaze is a simple and modular web framework}
|
12
12
|
s.email = %q{m.fellinger@gmail.com}
|
13
13
|
s.executables = ["ramaze"]
|
14
|
-
s.files = [".mailmap", "CHANGELOG", "MANIFEST", "README.markdown", "Rakefile", "benchmark/results.txt", "benchmark/run.rb", "benchmark/suite/minimal.rb", "benchmark/suite/no_informer.rb", "benchmark/suite/no_sessions.rb", "benchmark/suite/no_template.rb", "benchmark/suite/simple.rb", "benchmark/suite/template_builder.rb", "benchmark/suite/template_erubis.rb", "benchmark/suite/template_ezamar.rb", "benchmark/suite/template_haml.rb", "benchmark/suite/template_liquid.rb", "benchmark/suite/template_markaby.rb", "benchmark/suite/template_nagoro.rb", "benchmark/suite/template_redcloth.rb", "benchmark/suite/template_tenjin.rb", "benchmark/test.rb", "bin/ramaze", "doc/AUTHORS", "doc/CHANGELOG", "doc/COPYING", "doc/FAQ", "doc/GPL", "doc/INSTALL", "doc/LEGAL", "doc/TODO", "doc/meta/announcement.txt", "doc/meta/configuration.txt", "doc/meta/internals.txt", "doc/meta/users.kml", "doc/tutorial/todolist.html", "doc/tutorial/todolist.mkd", "doc/tutorial/todolist.txt", "examples/app/auth/layout/auth.xhtml", "examples/app/auth/start.rb", "examples/app/auth/view/index.xhtml", "examples/app/auth/view/login.xhtml", "examples/app/auth/view/secret.xhtml", "examples/app/blog/README", "examples/app/blog/app.rb", "examples/app/blog/config.ru", "examples/app/blog/controller/comment.rb", "examples/app/blog/controller/entry.rb", "examples/app/blog/controller/init.rb", "examples/app/blog/controller/main.rb", "examples/app/blog/controller/tag.rb", "examples/app/blog/layout/default.nag", "examples/app/blog/model/comment.rb", "examples/app/blog/model/entry.rb", "examples/app/blog/model/init.rb", "examples/app/blog/model/tag.rb", "examples/app/blog/public/css/screen.css", "examples/app/blog/spec/blog.rb", "examples/app/blog/start.rb", "examples/app/blog/view/comment/form.nag", "examples/app/blog/view/comment/show.nag", "examples/app/blog/view/entry/edit.nag", "examples/app/blog/view/entry/feed.atom.nag", "examples/app/blog/view/entry/feed.rss.nag", "examples/app/blog/view/entry/index.nag", "examples/app/blog/view/entry/new.nag", "examples/app/blog/view/entry/show.nag", "examples/app/blog/view/feed.atom.nag", "examples/app/blog/view/feed.rss.nag", "examples/app/blog/view/index.nag", "examples/app/blog/view/tag/index.nag", "examples/app/chat/layout/default.nag", "examples/app/chat/model/history.rb", "examples/app/chat/model/message.rb", "examples/app/chat/public/css/chat.css", "examples/app/chat/public/js/chat.js", "examples/app/chat/public/js/jquery.js", "examples/app/chat/start.rb", "examples/app/chat/view/chat.nag", "examples/app/chat/view/index.nag", "examples/app/localization/start.rb", "examples/app/sourceview/public/coderay.css", "examples/app/sourceview/public/images/file.gif", "examples/app/sourceview/public/images/folder.gif", "examples/app/sourceview/public/images/tv-collapsable-last.gif", "examples/app/sourceview/public/images/tv-collapsable.gif", "examples/app/sourceview/public/images/tv-expandable-last.gif", "examples/app/sourceview/public/images/tv-expandable.gif", "examples/app/sourceview/public/images/tv-item-last.gif", "examples/app/sourceview/public/images/tv-item.gif", "examples/app/sourceview/public/jquery.js", "examples/app/sourceview/public/jquery.treeview.css", "examples/app/sourceview/public/jquery.treeview.js", "examples/app/sourceview/public/sourceview.js", "examples/app/sourceview/start.rb", "examples/app/sourceview/view/index.haml", "examples/app/todolist/controller/init.rb", "examples/app/todolist/controller/task.rb", "examples/app/todolist/layout/default.xhtml", "examples/app/todolist/model/init.rb", "examples/app/todolist/model/task.rb", "examples/app/todolist/public/css/screen.css", "examples/app/todolist/public/favicon.ico", "examples/app/todolist/start.rb", "examples/app/todolist/view/index.xhtml", "examples/app/upload/start.rb", "examples/app/upload/view/index.xhtml", "examples/app/whywiki/spec/whywiki.rb", "examples/app/whywiki/start.rb", "examples/app/whywiki/template/edit.xhtml", "examples/app/whywiki/template/show.xhtml", "examples/app/wikore/spec/wikore.rb", "examples/app/wikore/src/controller.rb", "examples/app/wikore/src/model.rb", "examples/app/wikore/start.rb", "examples/app/wikore/view/index.xhtml", "examples/app/wiktacular/README", "examples/app/wiktacular/mkd/link/2007-07-20_19-45-51.mkd", "examples/app/wiktacular/mkd/link/current.mkd", "examples/app/wiktacular/mkd/main/2007-07-20_16-31-33.mkd", "examples/app/wiktacular/mkd/main/2007-07-20_19-21-12.mkd", "examples/app/wiktacular/mkd/main/2007-07-20_19-23-10.mkd", "examples/app/wiktacular/mkd/main/2007-07-20_19-45-07.mkd", "examples/app/wiktacular/mkd/main/current.mkd", "examples/app/wiktacular/mkd/markdown/current.mkd", "examples/app/wiktacular/mkd/testing/2007-07-20_16-43-46.mkd", "examples/app/wiktacular/mkd/testing/2007-07-20_19-43-50.mkd", "examples/app/wiktacular/mkd/testing/2007-07-21_18-46-01.mkd", "examples/app/wiktacular/mkd/testing/2007-07-21_18-46-32.mkd", "examples/app/wiktacular/mkd/testing/2007-07-21_18-47-08.mkd", "examples/app/wiktacular/mkd/testing/2007-07-21_18-47-54.mkd", "examples/app/wiktacular/mkd/testing/current.mkd", "examples/app/wiktacular/public/favicon.ico", "examples/app/wiktacular/public/screen.css", "examples/app/wiktacular/spec/wiktacular.rb", "examples/app/wiktacular/src/controller.rb", "examples/app/wiktacular/src/model.rb", "examples/app/wiktacular/start.rb", "examples/app/wiktacular/template/edit.xhtml", "examples/app/wiktacular/template/html_layout.xhtml", "examples/app/wiktacular/template/index.xhtml", "examples/app/wiktacular/template/new.xhtml", "examples/basic/element.rb", "examples/basic/gestalt.rb", "examples/basic/hello.rb", "examples/basic/layout.rb", "examples/basic/linking.rb", "examples/basic/partial.rb", "examples/basic/simple.rb", "examples/helpers/cache.rb", "examples/helpers/form_with_sequel.rb", "examples/helpers/httpdigest.rb", "examples/helpers/identity.rb", "examples/helpers/nitro_form.rb", "examples/helpers/paginate.rb", "examples/helpers/rest.rb", "examples/helpers/simple_captcha.rb", "examples/misc/css.rb", "examples/misc/facebook.rb", "examples/misc/memleak_detector.rb", "examples/misc/nagoro_element.rb", "examples/misc/ramaise.rb", "examples/misc/rapp.rb", "examples/misc/sequel_scaffolding.rb", "examples/misc/serve_directory.rb", "examples/templates/template_erubis.rb", "examples/templates/template_ezamar.rb", "examples/templates/template_haml.rb", "examples/templates/template_liquid.rb", "examples/templates/template_markaby.rb", "examples/templates/template_nagoro.rb", "examples/templates/template_redcloth.rb", "examples/templates/template_remarkably.rb", "examples/templates/template_tenjin.rb", "examples/templates/view/external.haml", "examples/templates/view/external.liquid", "examples/templates/view/external.mab", "examples/templates/view/external.nag", "examples/templates/view/external.redcloth", "examples/templates/view/external.rem", "examples/templates/view/external.rhtml", "examples/templates/view/external.tenjin", "examples/templates/view/external.zmr", "lib/proto/app.rb", "lib/proto/config.ru", "lib/proto/controller/init.rb", "lib/proto/controller/main.rb", "lib/proto/layout/default.xhtml", "lib/proto/model/init.rb", "lib/proto/public/.htaccess", "lib/proto/public/css/screen.css", "lib/proto/public/dispatch.fcgi", "lib/proto/public/favicon.ico", "lib/proto/public/js/jquery.js", "lib/proto/public/ramaze.png", "lib/proto/spec/main.rb", "lib/proto/start.rb", "lib/proto/view/index.xhtml", "lib/ramaze.rb", "lib/ramaze/app.rb", "lib/ramaze/cache.rb", "lib/ramaze/cache/localmemcache.rb", "lib/ramaze/cache/memcache.rb", "lib/ramaze/cache/sequel.rb", "lib/ramaze/contrib/app_graph.rb", "lib/ramaze/contrib/email.rb", "lib/ramaze/contrib/facebook.rb", "lib/ramaze/contrib/facebook/facebook.rb", "lib/ramaze/contrib/gettext.rb", "lib/ramaze/contrib/gettext/mo.rb", "lib/ramaze/contrib/gettext/parser.rb", "lib/ramaze/contrib/gettext/po.rb", "lib/ramaze/contrib/gzip_filter.rb", "lib/ramaze/contrib/maruku_uv.rb", "lib/ramaze/contrib/profiling.rb", "lib/ramaze/contrib/rest.rb", "lib/ramaze/contrib/sequel/create_join.rb", "lib/ramaze/contrib/sequel/form_field.rb", "lib/ramaze/contrib/sequel/image.rb", "lib/ramaze/contrib/sequel/relation.rb", "lib/ramaze/controller.rb", "lib/ramaze/controller/default.rb", "lib/ramaze/current.rb", "lib/ramaze/files.rb", "lib/ramaze/gestalt.rb", "lib/ramaze/helper.rb", "lib/ramaze/helper/auth.rb", "lib/ramaze/helper/bench.rb", "lib/ramaze/helper/cache.rb", "lib/ramaze/helper/disqus.rb", "lib/ramaze/helper/flash.rb", "lib/ramaze/helper/form.rb", "lib/ramaze/helper/formatting.rb", "lib/ramaze/helper/gestalt.rb", "lib/ramaze/helper/gravatar.rb", "lib/ramaze/helper/httpdigest.rb", "lib/ramaze/helper/identity.rb", "lib/ramaze/helper/link.rb", "lib/ramaze/helper/localize.rb", "lib/ramaze/helper/markaby.rb", "lib/ramaze/helper/maruku.rb", "lib/ramaze/helper/nitroform.rb", "lib/ramaze/helper/pager.rb", "lib/ramaze/helper/paginate.rb", "lib/ramaze/helper/partial.rb", "lib/ramaze/helper/remarkably.rb", "lib/ramaze/helper/request_accessor.rb", "lib/ramaze/helper/sequel.rb", "lib/ramaze/helper/sequel_form.rb", "lib/ramaze/helper/simple_captcha.rb", "lib/ramaze/helper/stack.rb", "lib/ramaze/helper/tagz.rb", "lib/ramaze/helper/thread.rb", "lib/ramaze/helper/ultraviolet.rb", "lib/ramaze/helper/user.rb", "lib/ramaze/helper/xhtml.rb", "lib/ramaze/log.rb", "lib/ramaze/log/analogger.rb", "lib/ramaze/log/growl.rb", "lib/ramaze/log/hub.rb", "lib/ramaze/log/informer.rb", "lib/ramaze/log/knotify.rb", "lib/ramaze/log/logger.rb", "lib/ramaze/log/logging.rb", "lib/ramaze/log/rotatinginformer.rb", "lib/ramaze/log/syslog.rb", "lib/ramaze/log/xosd.rb", "lib/ramaze/middleware_compiler.rb", "lib/ramaze/plugin.rb", "lib/ramaze/reloader.rb", "lib/ramaze/reloader/watch_inotify.rb", "lib/ramaze/reloader/watch_stat.rb", "lib/ramaze/request.rb", "lib/ramaze/response.rb", "lib/ramaze/setup.rb", "lib/ramaze/snippets.rb", "lib/ramaze/snippets/array/put_within.rb", "lib/ramaze/snippets/binding/locals.rb", "lib/ramaze/snippets/blankslate.rb", "lib/ramaze/snippets/divide.rb", "lib/ramaze/snippets/fiber.rb", "lib/ramaze/snippets/kernel/constant.rb", "lib/ramaze/snippets/kernel/pretty_inspect.rb", "lib/ramaze/snippets/metaid.rb", "lib/ramaze/snippets/numeric/filesize_format.rb", "lib/ramaze/snippets/numeric/time.rb", "lib/ramaze/snippets/object/__dir__.rb", "lib/ramaze/snippets/object/acquire.rb", "lib/ramaze/snippets/object/instance_variable_defined.rb", "lib/ramaze/snippets/object/pretty.rb", "lib/ramaze/snippets/object/scope.rb", "lib/ramaze/snippets/ordered_set.rb", "lib/ramaze/snippets/proc/locals.rb", "lib/ramaze/snippets/ramaze/acquire.rb", "lib/ramaze/snippets/ramaze/deprecated.rb", "lib/ramaze/snippets/ramaze/dictionary.rb", "lib/ramaze/snippets/ramaze/fiber.rb", "lib/ramaze/snippets/ramaze/struct.rb", "lib/ramaze/snippets/string/camel_case.rb", "lib/ramaze/snippets/string/color.rb", "lib/ramaze/snippets/string/end_with.rb", "lib/ramaze/snippets/string/esc.rb", "lib/ramaze/snippets/string/ord.rb", "lib/ramaze/snippets/string/snake_case.rb", "lib/ramaze/snippets/string/start_with.rb", "lib/ramaze/snippets/string/unindent.rb", "lib/ramaze/snippets/thread/into.rb", "lib/ramaze/spec.rb", "lib/ramaze/spec/helper/bacon.rb", "lib/ramaze/spec/helper/pretty_output.rb", "lib/ramaze/spec/helper/snippets.rb", "lib/ramaze/spec/helper/template_examples.rb", "lib/ramaze/tool/create.rb", "lib/ramaze/tool/project_creator.rb", "lib/ramaze/version.rb", "lib/ramaze/view.rb", "lib/ramaze/view/erubis.rb", "lib/ramaze/view/ezamar.rb", "lib/ramaze/view/haml.rb", "lib/ramaze/view/liquid.rb", "lib/ramaze/view/maruku.rb", "lib/ramaze/view/nagoro.rb", "lib/ramaze/view/nagoro/render_partial.rb", "lib/ramaze/view/redcloth.rb", "lib/ramaze/view/remarkably.rb", "lib/ramaze/view/sass.rb", "lib/ramaze/view/tagz.rb", "lib/ramaze/view/tenjin.rb", "lib/vendor/etag.rb", "lib/vendor/route_exceptions.rb", "ramaze.gemspec", "spec/contrib/rest.rb", "spec/examples/caching.rb", "spec/examples/css.rb", "spec/examples/element.rb", "spec/examples/hello.rb", "spec/examples/helpers/httpdigest.rb", "spec/examples/linking.rb", "spec/examples/simple.rb", "spec/examples/templates/template_erubis.rb", "spec/examples/templates/template_ezamar.rb", "spec/examples/templates/template_haml.rb", "spec/examples/templates/template_liquid.rb", "spec/examples/templates/template_markaby.rb", "spec/examples/templates/template_nagoro.rb", "spec/examples/templates/template_redcloth.rb", "spec/examples/templates/template_remarkably.rb", "spec/examples/templates/template_tenjin.rb", "spec/helper.rb", "spec/ramaze/action/render.rb", "spec/ramaze/action/view/bar.xhtml", "spec/ramaze/action/view/instancevars/layout.xhtml", "spec/ramaze/action/view/other_wrapper.erb", "spec/ramaze/action/view/other_wrapper.xhtml", "spec/ramaze/action/view/single_wrapper.xhtml", "spec/ramaze/action/view/sub/sub_wrapper.erb", "spec/ramaze/action/view/sub/sub_wrapper.xhtml", "spec/ramaze/app.rb", "spec/ramaze/cache/localmemcache.rb", "spec/ramaze/cache/memcache.rb", "spec/ramaze/cache/sequel.rb", "spec/ramaze/controller/actionless_templates.rb", "spec/ramaze/controller/mapping.rb", "spec/ramaze/controller/provide_inheritance.rb", "spec/ramaze/controller/resolve.rb", "spec/ramaze/controller/subclass.rb", "spec/ramaze/controller/template_resolving.rb", "spec/ramaze/controller/view/bar.xhtml", "spec/ramaze/controller/view/base/another.xhtml", "spec/ramaze/controller/view/greet.xhtml", "spec/ramaze/controller/view/list.xhtml", "spec/ramaze/controller/view/other/greet/other.xhtml", "spec/ramaze/controller/view/other_wrapper.xhtml", "spec/ramaze/dispatcher/directory.rb", "spec/ramaze/dispatcher/file.rb", "spec/ramaze/dispatcher/public/favicon.ico", "spec/ramaze/dispatcher/public/file name.txt", "spec/ramaze/dispatcher/public/test_download.css", "spec/ramaze/error.rb", "spec/ramaze/files.rb", "spec/ramaze/files/public_1/plain.txt", "spec/ramaze/files/public_2/rich.txt", "spec/ramaze/gestalt.rb", "spec/ramaze/helper/auth.rb", "spec/ramaze/helper/bench.rb", "spec/ramaze/helper/cache.rb", "spec/ramaze/helper/flash.rb", "spec/ramaze/helper/form.rb", "spec/ramaze/helper/formatting.rb", "spec/ramaze/helper/gestalt.rb", "spec/ramaze/helper/gravatar.rb", "spec/ramaze/helper/httpdigest.rb", "spec/ramaze/helper/link.rb", "spec/ramaze/helper/localize.rb", "spec/ramaze/helper/maruku.rb", "spec/ramaze/helper/pager.rb", "spec/ramaze/helper/paginate.rb", "spec/ramaze/helper/request_accessor.rb", "spec/ramaze/helper/sequel_form.rb", "spec/ramaze/helper/simple_captcha.rb", "spec/ramaze/helper/stack.rb", "spec/ramaze/helper/user.rb", "spec/ramaze/helper/view/locals.xhtml", "spec/ramaze/helper/view/loop.xhtml", "spec/ramaze/helper/view/num.xhtml", "spec/ramaze/helper/view/partial.xhtml", "spec/ramaze/helper/view/recursive.xhtml", "spec/ramaze/helper/view/recursive_local_ivars.xhtml", "spec/ramaze/helper/view/recursive_locals.xhtml", "spec/ramaze/helper/view/test_template.xhtml", "spec/ramaze/helper/xhtml.rb", "spec/ramaze/log/informer.rb", "spec/ramaze/log/logging.rb", "spec/ramaze/log/syslog.rb", "spec/ramaze/params.rb", "spec/ramaze/public/favicon.ico", "spec/ramaze/public/ramaze.png", "spec/ramaze/public/test_download.css", "spec/ramaze/request.rb", "spec/ramaze/rewrite/file.css", "spec/ramaze/struct.rb", "spec/ramaze/template/ramaze/external.test", "spec/ramaze/view.rb", "spec/ramaze/view/erubis.rb", "spec/ramaze/view/erubis/external.rhtml", "spec/ramaze/view/erubis/sum.rhtml", "spec/ramaze/view/ezamar.rb", "spec/ramaze/view/ezamar/external.zmr", "spec/ramaze/view/ezamar/sum.zmr", "spec/ramaze/view/haml.rb", "spec/ramaze/view/haml/external.haml", "spec/ramaze/view/haml/sum.haml", "spec/ramaze/view/liquid.rb", "spec/ramaze/view/liquid/external.liquid", "spec/ramaze/view/liquid/sum.liquid", "spec/ramaze/view/nagoro.rb", "spec/ramaze/view/nagoro/external.nag", "spec/ramaze/view/nagoro/sum.nag", "spec/ramaze/view/redcloth.rb", "spec/ramaze/view/redcloth/external.redcloth", "spec/ramaze/view/remarkably.rb", "spec/ramaze/view/remarkably/external.rem", "spec/ramaze/view/remarkably/sum.rem", "spec/ramaze/view/sass.rb", "spec/ramaze/view/sass/file.css.sass", "spec/ramaze/view/tagz.rb", "spec/ramaze/view/tagz/external.tagz", "spec/ramaze/view/tagz/sum.tagz", "spec/ramaze/view/tenjin.rb", "spec/ramaze/view/tenjin/external.rbhtml", "spec/ramaze/view/tenjin/sum.rbhtml", "spec/snippets/array/put_within.rb", "spec/snippets/binding/locals.rb", "spec/snippets/kernel/constant.rb", "spec/snippets/numeric/filesize_format.rb", "spec/snippets/numeric/time.rb", "spec/snippets/object/__dir__.rb", "spec/snippets/ordered_set.rb", "spec/snippets/ramaze/acquire.rb", "spec/snippets/ramaze/dictionary.rb", "spec/snippets/ramaze/struct.rb", "spec/snippets/string/camel_case.rb", "spec/snippets/string/color.rb", "spec/snippets/string/snake_case.rb", "spec/snippets/string/unindent.rb", "spec/snippets/thread/into.rb", "tasks/authors.rake", "tasks/bacon.rake", "tasks/changelog.rake", "tasks/copyright.rake", "tasks/gem.rake", "tasks/gem_installer.rake", "tasks/git.rake", "tasks/grancher.rake", "tasks/install_dependencies.rake", "tasks/jquery.rake", "tasks/manifest.rake", "tasks/metric_changes.rake", "tasks/rcov.rake", "tasks/release.rake", "tasks/reversion.rake", "tasks/setup.rake", "tasks/todo.rake", "tasks/traits.rake", "tasks/yard.rake"]
|
14
|
+
s.files = [".mailmap", "CHANGELOG", "MANIFEST", "README.md", "Rakefile", "benchmark/bench_templates/bench.rb", "benchmark/bench_templates/view/large.erb", "benchmark/bench_templates/view/large.haml", "benchmark/bench_templates/view/large.xhtml", "benchmark/bench_templates/view/small.erb", "benchmark/bench_templates/view/small.haml", "benchmark/bench_templates/view/small.xhtml", "benchmark/results.txt", "benchmark/run.rb", "benchmark/suite/minimal.rb", "benchmark/suite/no_informer.rb", "benchmark/suite/no_sessions.rb", "benchmark/suite/no_template.rb", "benchmark/suite/simple.rb", "benchmark/suite/template_erubis.rb", "benchmark/suite/template_etanni.rb", "benchmark/suite/template_ezamar.rb", "benchmark/suite/template_haml.rb", "benchmark/suite/template_liquid.rb", "benchmark/suite/template_markaby.rb", "benchmark/suite/template_nagoro.rb", "benchmark/suite/template_redcloth.rb", "benchmark/suite/template_tenjin.rb", "benchmark/test.rb", "bin/ramaze", "doc/AUTHORS", "doc/CHANGELOG", "doc/COPYING", "doc/FAQ", "doc/GPL", "doc/INSTALL", "doc/LEGAL", "doc/TODO", "doc/meta/announcement.txt", "doc/meta/configuration.txt", "doc/meta/internals.txt", "doc/meta/users.kml", "doc/tutorial/todolist.html", "doc/tutorial/todolist.mkd", "doc/tutorial/todolist.txt", "examples/app/auth/layout/auth.xhtml", "examples/app/auth/start.rb", "examples/app/auth/view/index.xhtml", "examples/app/auth/view/login.xhtml", "examples/app/auth/view/secret.xhtml", "examples/app/blog/README", "examples/app/blog/app.rb", "examples/app/blog/config.ru", "examples/app/blog/controller/comment.rb", "examples/app/blog/controller/entry.rb", "examples/app/blog/controller/init.rb", "examples/app/blog/controller/main.rb", "examples/app/blog/controller/tag.rb", "examples/app/blog/layout/default.nag", "examples/app/blog/model/comment.rb", "examples/app/blog/model/entry.rb", "examples/app/blog/model/init.rb", "examples/app/blog/model/tag.rb", "examples/app/blog/public/css/screen.css", "examples/app/blog/spec/blog.rb", "examples/app/blog/start.rb", "examples/app/blog/view/comment/form.nag", "examples/app/blog/view/comment/show.nag", "examples/app/blog/view/entry/edit.nag", "examples/app/blog/view/entry/feed.atom.nag", "examples/app/blog/view/entry/feed.rss.nag", "examples/app/blog/view/entry/index.nag", "examples/app/blog/view/entry/new.nag", "examples/app/blog/view/entry/show.nag", "examples/app/blog/view/feed.atom.nag", "examples/app/blog/view/feed.rss.nag", "examples/app/blog/view/index.nag", "examples/app/blog/view/tag/index.nag", "examples/app/chat/layout/default.xhtml", "examples/app/chat/model/history.rb", "examples/app/chat/model/message.rb", "examples/app/chat/public/css/chat.css", "examples/app/chat/public/js/chat.js", "examples/app/chat/public/js/jquery.js", "examples/app/chat/start.rb", "examples/app/chat/view/chat.xhtml", "examples/app/chat/view/index.xhtml", "examples/app/localization/start.rb", "examples/app/sourceview/public/coderay.css", "examples/app/sourceview/public/images/file.gif", "examples/app/sourceview/public/images/folder.gif", "examples/app/sourceview/public/images/tv-collapsable-last.gif", "examples/app/sourceview/public/images/tv-collapsable.gif", "examples/app/sourceview/public/images/tv-expandable-last.gif", "examples/app/sourceview/public/images/tv-expandable.gif", "examples/app/sourceview/public/images/tv-item-last.gif", "examples/app/sourceview/public/images/tv-item.gif", "examples/app/sourceview/public/jquery.js", "examples/app/sourceview/public/jquery.treeview.css", "examples/app/sourceview/public/jquery.treeview.js", "examples/app/sourceview/public/sourceview.js", "examples/app/sourceview/start.rb", "examples/app/sourceview/view/index.haml", "examples/app/todolist/controller/init.rb", "examples/app/todolist/controller/task.rb", "examples/app/todolist/layout/default.xhtml", "examples/app/todolist/model/init.rb", "examples/app/todolist/model/task.rb", "examples/app/todolist/public/css/screen.css", "examples/app/todolist/public/favicon.ico", "examples/app/todolist/start.rb", "examples/app/todolist/view/index.xhtml", "examples/app/upload/start.rb", "examples/app/upload/view/index.xhtml", "examples/app/whywiki/spec/whywiki.rb", "examples/app/whywiki/start.rb", "examples/app/whywiki/template/edit.xhtml", "examples/app/whywiki/template/show.xhtml", "examples/app/wikore/spec/wikore.rb", "examples/app/wikore/src/controller.rb", "examples/app/wikore/src/model.rb", "examples/app/wikore/start.rb", "examples/app/wikore/view/index.xhtml", "examples/app/wiktacular/README", "examples/app/wiktacular/mkd/link/2007-07-20_19-45-51.mkd", "examples/app/wiktacular/mkd/link/current.mkd", "examples/app/wiktacular/mkd/main/2007-07-20_16-31-33.mkd", "examples/app/wiktacular/mkd/main/2007-07-20_19-21-12.mkd", "examples/app/wiktacular/mkd/main/2007-07-20_19-23-10.mkd", "examples/app/wiktacular/mkd/main/2007-07-20_19-45-07.mkd", "examples/app/wiktacular/mkd/main/current.mkd", "examples/app/wiktacular/mkd/markdown/current.mkd", "examples/app/wiktacular/mkd/testing/2007-07-20_16-43-46.mkd", "examples/app/wiktacular/mkd/testing/2007-07-20_19-43-50.mkd", "examples/app/wiktacular/mkd/testing/2007-07-21_18-46-01.mkd", "examples/app/wiktacular/mkd/testing/2007-07-21_18-46-32.mkd", "examples/app/wiktacular/mkd/testing/2007-07-21_18-47-08.mkd", "examples/app/wiktacular/mkd/testing/2007-07-21_18-47-54.mkd", "examples/app/wiktacular/mkd/testing/current.mkd", "examples/app/wiktacular/public/favicon.ico", "examples/app/wiktacular/public/screen.css", "examples/app/wiktacular/spec/wiktacular.rb", "examples/app/wiktacular/src/controller.rb", "examples/app/wiktacular/src/model.rb", "examples/app/wiktacular/start.rb", "examples/app/wiktacular/template/edit.xhtml", "examples/app/wiktacular/template/html_layout.xhtml", "examples/app/wiktacular/template/index.xhtml", "examples/app/wiktacular/template/new.xhtml", "examples/basic/element.rb", "examples/basic/gestalt.rb", "examples/basic/hello.rb", "examples/basic/layout.rb", "examples/basic/linking.rb", "examples/basic/partial.rb", "examples/basic/simple.rb", "examples/helpers/cache.rb", "examples/helpers/form_with_sequel.rb", "examples/helpers/httpdigest.rb", "examples/helpers/identity.rb", "examples/helpers/nitro_form.rb", "examples/helpers/paginate.rb", "examples/helpers/rest.rb", "examples/helpers/simple_captcha.rb", "examples/misc/css.rb", "examples/misc/facebook.rb", "examples/misc/memleak_detector.rb", "examples/misc/nagoro_element.rb", "examples/misc/ramaise.rb", "examples/misc/rapp.rb", "examples/misc/sequel_scaffolding.rb", "examples/misc/serve_directory.rb", "examples/templates/template_erubis.rb", "examples/templates/template_ezamar.rb", "examples/templates/template_haml.rb", "examples/templates/template_liquid.rb", "examples/templates/template_markaby.rb", "examples/templates/template_nagoro.rb", "examples/templates/template_redcloth.rb", "examples/templates/template_remarkably.rb", "examples/templates/template_tenjin.rb", "examples/templates/view/external.haml", "examples/templates/view/external.liquid", "examples/templates/view/external.mab", "examples/templates/view/external.nag", "examples/templates/view/external.redcloth", "examples/templates/view/external.rem", "examples/templates/view/external.rhtml", "examples/templates/view/external.tenjin", "examples/templates/view/external.zmr", "lib/proto/app.rb", "lib/proto/config.ru", "lib/proto/controller/init.rb", "lib/proto/controller/main.rb", "lib/proto/layout/default.xhtml", "lib/proto/model/init.rb", "lib/proto/public/.htaccess", "lib/proto/public/css/screen.css", "lib/proto/public/dispatch.fcgi", "lib/proto/public/favicon.ico", "lib/proto/public/js/jquery.js", "lib/proto/public/ramaze.png", "lib/proto/spec/main.rb", "lib/proto/start.rb", "lib/proto/view/index.xhtml", "lib/ramaze.rb", "lib/ramaze/app.rb", "lib/ramaze/cache.rb", "lib/ramaze/cache/localmemcache.rb", "lib/ramaze/cache/memcache.rb", "lib/ramaze/cache/sequel.rb", "lib/ramaze/contrib/app_graph.rb", "lib/ramaze/contrib/email.rb", "lib/ramaze/contrib/facebook.rb", "lib/ramaze/contrib/facebook/facebook.rb", "lib/ramaze/contrib/gettext.rb", "lib/ramaze/contrib/gettext/mo.rb", "lib/ramaze/contrib/gettext/parser.rb", "lib/ramaze/contrib/gettext/po.rb", "lib/ramaze/contrib/gzip_filter.rb", "lib/ramaze/contrib/maruku_uv.rb", "lib/ramaze/contrib/profiling.rb", "lib/ramaze/contrib/rest.rb", "lib/ramaze/contrib/sequel/create_join.rb", "lib/ramaze/contrib/sequel/form_field.rb", "lib/ramaze/contrib/sequel/image.rb", "lib/ramaze/contrib/sequel/relation.rb", "lib/ramaze/controller.rb", "lib/ramaze/controller/default.rb", "lib/ramaze/current.rb", "lib/ramaze/files.rb", "lib/ramaze/gestalt.rb", "lib/ramaze/helper.rb", "lib/ramaze/helper/auth.rb", "lib/ramaze/helper/bench.rb", "lib/ramaze/helper/cache.rb", "lib/ramaze/helper/disqus.rb", "lib/ramaze/helper/flash.rb", "lib/ramaze/helper/form.rb", "lib/ramaze/helper/formatting.rb", "lib/ramaze/helper/gestalt.rb", "lib/ramaze/helper/gravatar.rb", "lib/ramaze/helper/httpdigest.rb", "lib/ramaze/helper/identity.rb", "lib/ramaze/helper/link.rb", "lib/ramaze/helper/localize.rb", "lib/ramaze/helper/markaby.rb", "lib/ramaze/helper/maruku.rb", "lib/ramaze/helper/nitroform.rb", "lib/ramaze/helper/pager.rb", "lib/ramaze/helper/paginate.rb", "lib/ramaze/helper/partial.rb", "lib/ramaze/helper/remarkably.rb", "lib/ramaze/helper/request_accessor.rb", "lib/ramaze/helper/sequel.rb", "lib/ramaze/helper/sequel_form.rb", "lib/ramaze/helper/simple_captcha.rb", "lib/ramaze/helper/stack.rb", "lib/ramaze/helper/tagz.rb", "lib/ramaze/helper/thread.rb", "lib/ramaze/helper/ultraviolet.rb", "lib/ramaze/helper/user.rb", "lib/ramaze/helper/xhtml.rb", "lib/ramaze/log.rb", "lib/ramaze/log/analogger.rb", "lib/ramaze/log/growl.rb", "lib/ramaze/log/hub.rb", "lib/ramaze/log/informer.rb", "lib/ramaze/log/knotify.rb", "lib/ramaze/log/logger.rb", "lib/ramaze/log/logging.rb", "lib/ramaze/log/rotatinginformer.rb", "lib/ramaze/log/syslog.rb", "lib/ramaze/log/xosd.rb", "lib/ramaze/middleware_compiler.rb", "lib/ramaze/plugin.rb", "lib/ramaze/reloader.rb", "lib/ramaze/reloader/watch_inotify.rb", "lib/ramaze/reloader/watch_stat.rb", "lib/ramaze/request.rb", "lib/ramaze/response.rb", "lib/ramaze/setup.rb", "lib/ramaze/snippets.rb", "lib/ramaze/snippets/array/put_within.rb", "lib/ramaze/snippets/binding/locals.rb", "lib/ramaze/snippets/blankslate.rb", "lib/ramaze/snippets/divide.rb", "lib/ramaze/snippets/fiber.rb", "lib/ramaze/snippets/kernel/pretty_inspect.rb", "lib/ramaze/snippets/metaid.rb", "lib/ramaze/snippets/numeric/filesize_format.rb", "lib/ramaze/snippets/numeric/time.rb", "lib/ramaze/snippets/object/__dir__.rb", "lib/ramaze/snippets/object/acquire.rb", "lib/ramaze/snippets/object/instance_variable_defined.rb", "lib/ramaze/snippets/object/pretty.rb", "lib/ramaze/snippets/object/scope.rb", "lib/ramaze/snippets/ordered_set.rb", "lib/ramaze/snippets/proc/locals.rb", "lib/ramaze/snippets/ramaze/acquire.rb", "lib/ramaze/snippets/ramaze/deprecated.rb", "lib/ramaze/snippets/ramaze/dictionary.rb", "lib/ramaze/snippets/ramaze/fiber.rb", "lib/ramaze/snippets/ramaze/struct.rb", "lib/ramaze/snippets/string/camel_case.rb", "lib/ramaze/snippets/string/color.rb", "lib/ramaze/snippets/string/end_with.rb", "lib/ramaze/snippets/string/esc.rb", "lib/ramaze/snippets/string/ord.rb", "lib/ramaze/snippets/string/snake_case.rb", "lib/ramaze/snippets/string/start_with.rb", "lib/ramaze/snippets/string/unindent.rb", "lib/ramaze/snippets/thread/into.rb", "lib/ramaze/spec.rb", "lib/ramaze/spec/helper/bacon.rb", "lib/ramaze/spec/helper/pretty_output.rb", "lib/ramaze/spec/helper/snippets.rb", "lib/ramaze/spec/helper/template_examples.rb", "lib/ramaze/tool/bin.rb", "lib/ramaze/tool/create.rb", "lib/ramaze/tool/project_creator.rb", "lib/ramaze/version.rb", "lib/ramaze/view.rb", "lib/ramaze/view/erubis.rb", "lib/ramaze/view/ezamar.rb", "lib/ramaze/view/gestalt.rb", "lib/ramaze/view/haml.rb", "lib/ramaze/view/liquid.rb", "lib/ramaze/view/maruku.rb", "lib/ramaze/view/nagoro.rb", "lib/ramaze/view/nagoro/render_partial.rb", "lib/ramaze/view/redcloth.rb", "lib/ramaze/view/remarkably.rb", "lib/ramaze/view/sass.rb", "lib/ramaze/view/tagz.rb", "lib/ramaze/view/tenjin.rb", "lib/vendor/etag.rb", "lib/vendor/route_exceptions.rb", "ramaze.gemspec", "spec/contrib/rest.rb", "spec/examples/caching.rb", "spec/examples/css.rb", "spec/examples/element.rb", "spec/examples/hello.rb", "spec/examples/helpers/httpdigest.rb", "spec/examples/linking.rb", "spec/examples/simple.rb", "spec/examples/templates/template_erubis.rb", "spec/examples/templates/template_ezamar.rb", "spec/examples/templates/template_haml.rb", "spec/examples/templates/template_liquid.rb", "spec/examples/templates/template_markaby.rb", "spec/examples/templates/template_nagoro.rb", "spec/examples/templates/template_redcloth.rb", "spec/examples/templates/template_remarkably.rb", "spec/examples/templates/template_tenjin.rb", "spec/helper.rb", "spec/ramaze/action/render.rb", "spec/ramaze/action/view/bar.xhtml", "spec/ramaze/action/view/instancevars/layout.xhtml", "spec/ramaze/action/view/other_wrapper.erb", "spec/ramaze/action/view/other_wrapper.xhtml", "spec/ramaze/action/view/single_wrapper.xhtml", "spec/ramaze/action/view/sub/sub_wrapper.erb", "spec/ramaze/action/view/sub/sub_wrapper.xhtml", "spec/ramaze/app.rb", "spec/ramaze/cache/localmemcache.rb", "spec/ramaze/cache/memcache.rb", "spec/ramaze/cache/sequel.rb", "spec/ramaze/controller/actionless_templates.rb", "spec/ramaze/controller/mapping.rb", "spec/ramaze/controller/provide_inheritance.rb", "spec/ramaze/controller/resolve.rb", "spec/ramaze/controller/subclass.rb", "spec/ramaze/controller/template_resolving.rb", "spec/ramaze/controller/view/bar.xhtml", "spec/ramaze/controller/view/base/another.xhtml", "spec/ramaze/controller/view/greet.xhtml", "spec/ramaze/controller/view/list.xhtml", "spec/ramaze/controller/view/other/greet/other.xhtml", "spec/ramaze/controller/view/other_wrapper.xhtml", "spec/ramaze/dispatcher/directory.rb", "spec/ramaze/dispatcher/file.rb", "spec/ramaze/dispatcher/public/favicon.ico", "spec/ramaze/dispatcher/public/file name.txt", "spec/ramaze/dispatcher/public/test_download.css", "spec/ramaze/error.rb", "spec/ramaze/files.rb", "spec/ramaze/files/public_1/plain.txt", "spec/ramaze/files/public_2/rich.txt", "spec/ramaze/gestalt.rb", "spec/ramaze/helper/auth.rb", "spec/ramaze/helper/bench.rb", "spec/ramaze/helper/cache.rb", "spec/ramaze/helper/flash.rb", "spec/ramaze/helper/form.rb", "spec/ramaze/helper/formatting.rb", "spec/ramaze/helper/gestalt.rb", "spec/ramaze/helper/gravatar.rb", "spec/ramaze/helper/httpdigest.rb", "spec/ramaze/helper/link.rb", "spec/ramaze/helper/localize.rb", "spec/ramaze/helper/maruku.rb", "spec/ramaze/helper/pager.rb", "spec/ramaze/helper/paginate.rb", "spec/ramaze/helper/request_accessor.rb", "spec/ramaze/helper/sequel_form.rb", "spec/ramaze/helper/simple_captcha.rb", "spec/ramaze/helper/stack.rb", "spec/ramaze/helper/user.rb", "spec/ramaze/helper/view/locals.xhtml", "spec/ramaze/helper/view/loop.xhtml", "spec/ramaze/helper/view/num.xhtml", "spec/ramaze/helper/view/partial.xhtml", "spec/ramaze/helper/view/recursive.xhtml", "spec/ramaze/helper/view/recursive_local_ivars.xhtml", "spec/ramaze/helper/view/recursive_locals.xhtml", "spec/ramaze/helper/view/test_template.xhtml", "spec/ramaze/helper/xhtml.rb", "spec/ramaze/log/informer.rb", "spec/ramaze/log/logging.rb", "spec/ramaze/log/syslog.rb", "spec/ramaze/params.rb", "spec/ramaze/public/favicon.ico", "spec/ramaze/public/ramaze.png", "spec/ramaze/public/test_download.css", "spec/ramaze/request.rb", "spec/ramaze/rewrite/file.css", "spec/ramaze/struct.rb", "spec/ramaze/template/ramaze/external.test", "spec/ramaze/view.rb", "spec/ramaze/view/erubis.rb", "spec/ramaze/view/erubis/external.rhtml", "spec/ramaze/view/erubis/sum.rhtml", "spec/ramaze/view/ezamar.rb", "spec/ramaze/view/ezamar/external.zmr", "spec/ramaze/view/ezamar/sum.zmr", "spec/ramaze/view/gestalt.rb", "spec/ramaze/view/gestalt/external.ges", "spec/ramaze/view/haml.rb", "spec/ramaze/view/haml/external.haml", "spec/ramaze/view/haml/sum.haml", "spec/ramaze/view/liquid.rb", "spec/ramaze/view/liquid/external.liquid", "spec/ramaze/view/liquid/sum.liquid", "spec/ramaze/view/nagoro.rb", "spec/ramaze/view/nagoro/external.nag", "spec/ramaze/view/nagoro/sum.nag", "spec/ramaze/view/redcloth.rb", "spec/ramaze/view/redcloth/external.redcloth", "spec/ramaze/view/remarkably.rb", "spec/ramaze/view/remarkably/external.rem", "spec/ramaze/view/remarkably/sum.rem", "spec/ramaze/view/sass.rb", "spec/ramaze/view/sass/file.css.sass", "spec/ramaze/view/tagz.rb", "spec/ramaze/view/tagz/external.tagz", "spec/ramaze/view/tagz/sum.tagz", "spec/ramaze/view/tenjin.rb", "spec/ramaze/view/tenjin/external.rbhtml", "spec/ramaze/view/tenjin/sum.rbhtml", "spec/snippets/array/put_within.rb", "spec/snippets/binding/locals.rb", "spec/snippets/kernel/constant.rb", "spec/snippets/numeric/filesize_format.rb", "spec/snippets/numeric/time.rb", "spec/snippets/object/__dir__.rb", "spec/snippets/ordered_set.rb", "spec/snippets/ramaze/acquire.rb", "spec/snippets/ramaze/dictionary.rb", "spec/snippets/ramaze/struct.rb", "spec/snippets/string/camel_case.rb", "spec/snippets/string/color.rb", "spec/snippets/string/snake_case.rb", "spec/snippets/string/unindent.rb", "spec/snippets/thread/into.rb", "tasks/authors.rake", "tasks/bacon.rake", "tasks/changelog.rake", "tasks/copyright.rake", "tasks/gem.rake", "tasks/gem_installer.rake", "tasks/git.rake", "tasks/grancher.rake", "tasks/install_dependencies.rake", "tasks/jquery.rake", "tasks/manifest.rake", "tasks/metric_changes.rake", "tasks/rcov.rake", "tasks/release.rake", "tasks/reversion.rake", "tasks/setup.rake", "tasks/todo.rake", "tasks/traits.rake", "tasks/yard.rake"]
|
15
15
|
s.has_rdoc = true
|
16
16
|
s.homepage = %q{http://github.com/manveru/org}
|
17
17
|
s.post_install_message = %q{============================================================
|
@@ -31,14 +31,11 @@ You can now do create a new project:
|
|
31
31
|
s.specification_version = 3
|
32
32
|
|
33
33
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
34
|
-
s.add_runtime_dependency(%q<
|
35
|
-
s.add_runtime_dependency(%q<innate>, ["= 2009.04"])
|
34
|
+
s.add_runtime_dependency(%q<innate>, ["~> 2009.05"])
|
36
35
|
else
|
37
|
-
s.add_dependency(%q<
|
38
|
-
s.add_dependency(%q<innate>, ["= 2009.04"])
|
36
|
+
s.add_dependency(%q<innate>, ["~> 2009.05"])
|
39
37
|
end
|
40
38
|
else
|
41
|
-
s.add_dependency(%q<
|
42
|
-
s.add_dependency(%q<innate>, ["= 2009.04"])
|
39
|
+
s.add_dependency(%q<innate>, ["~> 2009.05"])
|
43
40
|
end
|
44
41
|
end
|
data/spec/examples/caching.rb
CHANGED
@@ -6,13 +6,11 @@ describe 'Caching' do
|
|
6
6
|
|
7
7
|
it '/' do
|
8
8
|
3.times do
|
9
|
-
lambda{ get('/') }.
|
10
|
-
should.not.change{ get('/').body }
|
9
|
+
lambda{ get('/') }.should.not.change{ get('/').body }
|
11
10
|
end
|
12
11
|
|
13
12
|
3.times do
|
14
|
-
lambda{ get('/invalidate') }.
|
15
|
-
should.change{ get('/').body }
|
13
|
+
lambda{ get('/invalidate') }.should.change{ get('/').body }
|
16
14
|
end
|
17
15
|
end
|
18
16
|
end
|
data/spec/examples/element.rb
CHANGED
data/spec/ramaze/error.rb
CHANGED
data/spec/ramaze/gestalt.rb
CHANGED
@@ -26,38 +26,38 @@ describe "Gestalt" do
|
|
26
26
|
|
27
27
|
it "deep nested tags" do
|
28
28
|
gestalt{ p do
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
div do
|
30
|
+
ol do
|
31
|
+
li
|
32
|
+
end
|
32
33
|
end
|
33
34
|
end
|
34
|
-
end
|
35
35
|
}.should == '<p><div><ol><li /></ol></div></p>'
|
36
36
|
end
|
37
37
|
|
38
38
|
it "deep nested tags with repetition" do
|
39
39
|
gestalt{ p do
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
40
|
+
div do
|
41
|
+
ol do
|
42
|
+
li
|
43
|
+
li
|
44
|
+
end
|
45
|
+
ol do
|
46
|
+
li
|
47
|
+
li
|
48
|
+
end
|
48
49
|
end
|
49
50
|
end
|
50
|
-
end
|
51
51
|
}.should == '<p><div><ol><li /><li /></ol><ol><li /><li /></ol></div></p>'
|
52
52
|
end
|
53
53
|
|
54
54
|
it "deep nested tags with strings" do
|
55
55
|
gestalt{
|
56
56
|
p do
|
57
|
-
|
58
|
-
|
57
|
+
div do
|
58
|
+
'Hello, World'
|
59
|
+
end
|
59
60
|
end
|
60
|
-
end
|
61
61
|
}.should == '<p><div>Hello, World</div></p>'
|
62
62
|
end
|
63
63
|
|
@@ -109,6 +109,12 @@ describe "Gestalt" do
|
|
109
109
|
}.should == '<a href="http://example.org/?a=one&b=two">Click here</a>'
|
110
110
|
end
|
111
111
|
|
112
|
+
it 'takes text and attributes' do
|
113
|
+
gestalt {
|
114
|
+
a('Click here', :href => "http://example.org/?a=one&b=two")
|
115
|
+
}.should == '<a href="http://example.org/?a=one&b=two">Click here</a>'
|
116
|
+
end
|
117
|
+
|
112
118
|
it 'should accept symbols as attributes' do
|
113
119
|
input = gestalt{ input(:type => :text, :value => :one) }
|
114
120
|
|
@@ -35,26 +35,28 @@ describe Ramaze::Helper::Localize do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
should 'override language by ?lang' do
|
38
|
-
get('
|
38
|
+
get('/?lang=de').body.should == 'de'
|
39
39
|
end
|
40
40
|
|
41
41
|
should 'override language by cookie' do
|
42
|
-
|
42
|
+
set_cookie('lang=ja')
|
43
|
+
get('/').body.should == 'ja'
|
44
|
+
clear_cookies
|
43
45
|
end
|
44
46
|
|
45
47
|
should 'not fail if language is invalid' do
|
46
|
-
get('
|
48
|
+
get('/?lang=foobar').body.should == 'foobar'
|
47
49
|
end
|
48
50
|
|
49
51
|
should 'use dictionary to translate' do
|
50
52
|
get('/translate/one').body.should == 'one'
|
51
|
-
get('/translate/one
|
52
|
-
get('/translate/one
|
53
|
-
get('/translate/one
|
53
|
+
get('/translate/one?lang=en').body.should == 'one'
|
54
|
+
get('/translate/one?lang=ja').body.should == '一'
|
55
|
+
get('/translate/one?lang=de').body.should == 'eins'
|
54
56
|
end
|
55
57
|
|
56
58
|
it "falls back to default language if string wasn't found in dictionary" do
|
57
|
-
get('/translate/two
|
58
|
-
get('/translate/three
|
59
|
+
get('/translate/two?lang=ja').body.should == 'two'
|
60
|
+
get('/translate/three?lang=ja').body.should == '三'
|
59
61
|
end
|
60
62
|
end
|
data/spec/ramaze/helper/user.rb
CHANGED
@@ -56,7 +56,7 @@ describe Ramaze::Helper::User do
|
|
56
56
|
|
57
57
|
should 'login' do
|
58
58
|
get('/status').body.should == 'no'
|
59
|
-
get('/login
|
59
|
+
get('/login?name=arthur&password=42').body.should == 'logged in'
|
60
60
|
get('/status').body.should == 'yes'
|
61
61
|
get('/profile').body.should == MockSequelUser.new.profile
|
62
62
|
get('/logout').status.should == 200
|
@@ -64,7 +64,7 @@ describe Ramaze::Helper::User do
|
|
64
64
|
|
65
65
|
should 'login via the callback' do
|
66
66
|
get('/callback/status').body.should == 'no'
|
67
|
-
get('/callback/login
|
67
|
+
get('/callback/login?name=arthur&password=42').body.should == 'logged in'
|
68
68
|
get('/callback/status').body.should == 'yes'
|
69
69
|
get('/callback/profile').body.should == MockSequelUser.new.profile
|
70
70
|
get('/logout').status.should == 200
|
@@ -0,0 +1,94 @@
|
|
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 'spec/helper'
|
5
|
+
spec_require 'ramaze/gestalt'
|
6
|
+
|
7
|
+
Ramaze::App.options.views = 'gestalt'
|
8
|
+
|
9
|
+
class SpecGestalt < Ramaze::Controller
|
10
|
+
map '/'
|
11
|
+
engine :Gestalt
|
12
|
+
helper :gestalt
|
13
|
+
|
14
|
+
def index
|
15
|
+
@title = 'Gestalt Index'
|
16
|
+
g
|
17
|
+
end
|
18
|
+
|
19
|
+
def links
|
20
|
+
g
|
21
|
+
end
|
22
|
+
|
23
|
+
def with_partial
|
24
|
+
g
|
25
|
+
end
|
26
|
+
|
27
|
+
def different_module
|
28
|
+
g(:foo, SpecGestalDifferentModule)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
module SpecGestaltView
|
33
|
+
def index
|
34
|
+
h1 @title
|
35
|
+
end
|
36
|
+
|
37
|
+
def links
|
38
|
+
ul do
|
39
|
+
li{ a "Index page", :href => rs(:index) }
|
40
|
+
li{ a "Internal template", :href => rs(:internal) }
|
41
|
+
li{ a "External template", :href => rs(:external) }
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# def external
|
46
|
+
# ol do
|
47
|
+
# 3.times{ render_view('template') }
|
48
|
+
# end
|
49
|
+
# end
|
50
|
+
|
51
|
+
def with_partial
|
52
|
+
ul do
|
53
|
+
3.times{ _partial }
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def _partial
|
58
|
+
li 'List Item'
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
module SpecGestalDifferentModule
|
63
|
+
def foo
|
64
|
+
p{ 'view module specified'}
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe Ramaze::View::Gestalt do
|
69
|
+
behaves_like :mock
|
70
|
+
|
71
|
+
should 'use g helper' do
|
72
|
+
get('/').body.should == '<h1>Gestalt Index</h1>'
|
73
|
+
end
|
74
|
+
|
75
|
+
should 'use other helper methods' do
|
76
|
+
get('/links').body.should ==
|
77
|
+
'<ul><li><a href="/index">Index page</a></li><li><a href="/internal">Internal template</a></li><li><a href="/external">External template</a></li></ul>'
|
78
|
+
end
|
79
|
+
|
80
|
+
should 'render external template' do
|
81
|
+
get('/external').body.should ==
|
82
|
+
"<html><head><title>Gestalt Test</title></head><body><h1>Gestalt Template</h1></body></html>"
|
83
|
+
end
|
84
|
+
|
85
|
+
should 'use method like partials' do
|
86
|
+
get('/with_partial').body.should ==
|
87
|
+
'<ul><li>List Item</li><li>List Item</li><li>List Item</li></ul>'
|
88
|
+
end
|
89
|
+
|
90
|
+
should 'be able to specify different view module and method' do
|
91
|
+
get('/different_module').body.should ==
|
92
|
+
'<p>view module specified</p>'
|
93
|
+
end
|
94
|
+
end
|