ramaze 2011.01.30 → 2011.07.25
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/.mailmap +2 -0
- data/.rvmrc +1 -0
- data/README.md +119 -197
- data/Rakefile +14 -97
- data/bin/ramaze +6 -14
- data/doc/AUTHORS +8 -4
- data/doc/CHANGELOG +3784 -3339
- data/examples/app/chat/start.rb +2 -2
- data/lib/proto/app.rb +2 -3
- data/lib/proto/config.ru +4 -5
- data/lib/proto/controller/init.rb +11 -4
- data/lib/proto/controller/main.rb +12 -7
- data/lib/proto/layout/default.xhtml +56 -23
- data/lib/proto/model/init.rb +3 -1
- data/lib/proto/public/css/grid.css +107 -0
- data/lib/proto/public/css/layout.css +81 -0
- data/lib/proto/public/css/reset.css +123 -0
- data/lib/proto/public/css/text.css +109 -0
- data/lib/proto/public/images/bg.png +0 -0
- data/lib/proto/spec/main.rb +2 -2
- data/lib/proto/start.rb +11 -1
- data/lib/proto/view/index.xhtml +27 -23
- data/lib/ramaze.rb +0 -1
- data/lib/ramaze/app.rb +85 -12
- data/lib/ramaze/app_graph.rb +107 -0
- data/lib/ramaze/bin/console.rb +87 -0
- data/lib/ramaze/bin/create.rb +94 -0
- data/lib/ramaze/bin/helper.rb +107 -0
- data/lib/ramaze/bin/restart.rb +95 -0
- data/lib/ramaze/bin/runner.rb +141 -0
- data/lib/ramaze/bin/start.rb +206 -0
- data/lib/ramaze/bin/status.rb +152 -0
- data/lib/ramaze/bin/stop.rb +112 -0
- data/lib/ramaze/cache.rb +9 -4
- data/lib/ramaze/cache/localmemcache.rb +10 -13
- data/lib/ramaze/cache/lru.rb +49 -7
- data/lib/ramaze/cache/memcache.rb +170 -92
- data/lib/ramaze/cache/sequel.rb +301 -118
- data/lib/ramaze/controller.rb +108 -9
- data/lib/ramaze/controller/default.rb +15 -2
- data/lib/ramaze/current.rb +14 -2
- data/lib/ramaze/dependencies.rb +46 -0
- data/lib/ramaze/files.rb +38 -3
- data/lib/ramaze/gestalt.rb +12 -12
- data/lib/ramaze/helper.rb +0 -2
- data/lib/ramaze/helper/auth.rb +30 -23
- data/lib/ramaze/helper/blue_form.rb +175 -126
- data/lib/ramaze/helper/csrf.rb +76 -91
- data/lib/ramaze/helper/email.rb +105 -0
- data/lib/ramaze/helper/erector.rb +16 -15
- data/lib/ramaze/helper/gestalt.rb +2 -2
- data/lib/ramaze/helper/layout.rb +89 -73
- data/lib/ramaze/helper/link.rb +7 -6
- data/lib/ramaze/helper/localize.rb +6 -5
- data/lib/ramaze/helper/markaby.rb +25 -23
- data/lib/ramaze/helper/maruku.rb +3 -3
- data/lib/ramaze/helper/paginate.rb +19 -27
- data/lib/ramaze/helper/remarkably.rb +3 -3
- data/lib/ramaze/helper/request_accessor.rb +3 -3
- data/lib/ramaze/helper/send_file.rb +12 -8
- data/lib/ramaze/helper/simple_captcha.rb +5 -6
- data/lib/ramaze/helper/stack.rb +7 -4
- data/lib/ramaze/helper/tagz.rb +10 -11
- data/lib/ramaze/helper/thread.rb +19 -16
- data/lib/ramaze/helper/ultraviolet.rb +7 -4
- data/lib/ramaze/helper/user.rb +40 -21
- data/lib/ramaze/helper/xhtml.rb +29 -20
- data/lib/ramaze/log.rb +3 -11
- data/lib/ramaze/log/analogger.rb +5 -4
- data/lib/ramaze/log/growl.rb +9 -7
- data/lib/ramaze/log/hub.rb +3 -5
- data/lib/ramaze/log/informer.rb +15 -12
- data/lib/ramaze/log/knotify.rb +3 -5
- data/lib/ramaze/log/logger.rb +3 -5
- data/lib/ramaze/log/logging.rb +6 -8
- data/lib/ramaze/log/rotatinginformer.rb +27 -17
- data/lib/ramaze/log/syslog.rb +7 -7
- data/lib/ramaze/log/xosd.rb +3 -5
- data/lib/ramaze/middleware_compiler.rb +27 -4
- data/lib/ramaze/reloader.rb +50 -12
- data/lib/ramaze/reloader/watch_inotify.rb +4 -5
- data/lib/ramaze/reloader/watch_stat.rb +3 -3
- data/lib/ramaze/request.rb +18 -8
- data/lib/ramaze/response.rb +38 -7
- data/lib/ramaze/rest.rb +36 -0
- data/lib/ramaze/setup.rb +101 -31
- data/lib/ramaze/spec.rb +1 -1
- data/lib/ramaze/spec/bacon.rb +6 -3
- data/lib/ramaze/spec/helper/bacon.rb +0 -1
- data/lib/ramaze/version.rb +1 -1
- data/lib/ramaze/view.rb +2 -11
- data/lib/ramaze/view/erector.rb +46 -31
- data/lib/ramaze/view/erubis.rb +7 -3
- data/lib/ramaze/view/ezamar.rb +7 -3
- data/lib/ramaze/view/gestalt.rb +9 -3
- data/lib/ramaze/view/haml.rb +7 -3
- data/lib/ramaze/view/liquid.rb +3 -3
- data/lib/ramaze/view/lokar.rb +7 -3
- data/lib/ramaze/view/mustache.rb +11 -5
- data/lib/ramaze/view/nagoro.rb +3 -3
- data/lib/ramaze/view/sass.rb +1 -1
- data/lib/ramaze/view/slippers.rb +40 -13
- data/lib/ramaze/view/tagz.rb +9 -5
- data/ramaze.gemspec +23 -128
- data/spec/helper.rb +5 -0
- data/spec/ramaze/bin/app/config.ru +11 -0
- data/spec/ramaze/bin/create.rb +28 -0
- data/spec/ramaze/bin/runner.rb +30 -0
- data/spec/ramaze/bin/start.rb +38 -0
- data/spec/ramaze/cache/memcache.rb +10 -3
- data/spec/ramaze/cache/sequel.rb +7 -0
- data/spec/ramaze/controller/provide_inheritance.rb +0 -10
- data/spec/ramaze/dispatcher/file.rb +19 -15
- data/spec/ramaze/helper/auth.rb +10 -9
- data/spec/ramaze/helper/blue_form.rb +121 -68
- data/spec/ramaze/helper/email.rb +69 -0
- data/spec/ramaze/helper/layout.rb +12 -15
- data/spec/ramaze/helper/layout/alternative.xhtml +5 -0
- data/spec/ramaze/helper/user.rb +2 -0
- data/spec/ramaze/log/growl.rb +14 -1
- data/spec/{contrib → ramaze}/rest.rb +1 -1
- data/spec/ramaze/session/memcache.rb +2 -2
- data/spec/ramaze/view/sass.rb +1 -1
- data/tasks/bacon.rake +3 -3
- data/tasks/gem.rake +17 -18
- data/tasks/rcov.rake +2 -3
- data/tasks/release.rake +8 -65
- data/tasks/setup.rake +10 -8
- data/tasks/todo.rake +9 -5
- data/tasks/yard.rake +3 -2
- metadata +105 -397
- data/MANIFEST +0 -532
- data/TODO.md +0 -19
- data/benchmark/bench_templates/bench.rb +0 -67
- data/benchmark/bench_templates/view/large.erb +0 -79
- data/benchmark/bench_templates/view/large.haml +0 -41
- data/benchmark/bench_templates/view/large.lok +0 -79
- data/benchmark/bench_templates/view/large.xhtml +0 -79
- data/benchmark/bench_templates/view/small.erb +0 -21
- data/benchmark/bench_templates/view/small.haml +0 -12
- data/benchmark/bench_templates/view/small.lok +0 -21
- data/benchmark/bench_templates/view/small.xhtml +0 -21
- data/benchmark/results.txt +0 -131
- data/benchmark/run.rb +0 -355
- data/benchmark/suite/minimal.rb +0 -11
- data/benchmark/suite/no_informer.rb +0 -7
- data/benchmark/suite/no_sessions.rb +0 -9
- data/benchmark/suite/no_template.rb +0 -7
- data/benchmark/suite/simple.rb +0 -5
- data/benchmark/suite/template_erubis.rb +0 -8
- data/benchmark/suite/template_etanni.rb +0 -8
- data/benchmark/suite/template_ezamar.rb +0 -8
- data/benchmark/suite/template_haml.rb +0 -13
- data/benchmark/suite/template_liquid.rb +0 -11
- data/benchmark/suite/template_markaby.rb +0 -9
- data/benchmark/suite/template_nagoro.rb +0 -8
- data/benchmark/suite/template_redcloth.rb +0 -13
- data/benchmark/suite/template_tenjin.rb +0 -8
- data/benchmark/test.rb +0 -35
- data/doc/FAQ +0 -92
- data/doc/INSTALL +0 -92
- data/doc/TODO +0 -29
- data/doc/meta/announcement.txt +0 -119
- data/doc/meta/configuration.txt +0 -163
- data/doc/meta/internals.txt +0 -278
- data/doc/meta/users.kml +0 -64
- data/doc/tutorial/todolist.html +0 -1512
- data/doc/tutorial/todolist.txt +0 -920
- data/examples/app/sourceview/public/coderay.css +0 -104
- data/examples/app/sourceview/public/images/file.gif +0 -0
- data/examples/app/sourceview/public/images/folder.gif +0 -0
- data/examples/app/sourceview/public/images/tv-collapsable-last.gif +0 -0
- data/examples/app/sourceview/public/images/tv-collapsable.gif +0 -0
- data/examples/app/sourceview/public/images/tv-expandable-last.gif +0 -0
- data/examples/app/sourceview/public/images/tv-expandable.gif +0 -0
- data/examples/app/sourceview/public/images/tv-item-last.gif +0 -0
- data/examples/app/sourceview/public/images/tv-item.gif +0 -0
- data/examples/app/sourceview/public/jquery.js +0 -11
- data/examples/app/sourceview/public/jquery.treeview.css +0 -48
- data/examples/app/sourceview/public/jquery.treeview.js +0 -223
- data/examples/app/sourceview/public/sourceview.js +0 -52
- data/examples/app/sourceview/start.rb +0 -79
- data/examples/app/sourceview/view/index.haml +0 -59
- data/examples/helpers/httpdigest.rb +0 -107
- data/lib/proto/public/css/screen.css +0 -30
- data/lib/proto/public/js/jquery.js +0 -7179
- data/lib/ramaze/contrib/addressable_route.rb +0 -56
- data/lib/ramaze/contrib/app_graph.rb +0 -64
- data/lib/ramaze/contrib/email.rb +0 -88
- data/lib/ramaze/contrib/facebook.rb +0 -23
- data/lib/ramaze/contrib/facebook/facebook.rb +0 -171
- data/lib/ramaze/contrib/gettext.rb +0 -113
- data/lib/ramaze/contrib/gettext/mo.rb +0 -155
- data/lib/ramaze/contrib/gettext/parser.rb +0 -46
- data/lib/ramaze/contrib/gettext/po.rb +0 -109
- data/lib/ramaze/contrib/gzip_filter.rb +0 -1
- data/lib/ramaze/contrib/maruku_uv.rb +0 -59
- data/lib/ramaze/contrib/profiling.rb +0 -36
- data/lib/ramaze/contrib/rest.rb +0 -23
- data/lib/ramaze/contrib/sequel/create_join.rb +0 -26
- data/lib/ramaze/contrib/sequel/form_field.rb +0 -129
- data/lib/ramaze/contrib/sequel/image.rb +0 -196
- data/lib/ramaze/contrib/sequel/relation.rb +0 -98
- data/lib/ramaze/helper/httpdigest.rb +0 -96
- data/lib/ramaze/tool/bin.rb +0 -340
- data/lib/ramaze/tool/create.rb +0 -48
- data/lib/ramaze/tool/project_creator.rb +0 -120
- data/lib/ramaze/view/less.rb +0 -12
- data/lib/ramaze/view/maruku.rb +0 -15
- data/lib/ramaze/view/redcloth.rb +0 -21
- data/spec/contrib/addressable_route.rb +0 -30
- data/spec/examples/helpers/httpdigest.rb +0 -64
- data/spec/examples/templates/template_redcloth.rb +0 -13
- data/spec/ramaze/bin/ramaze.rb +0 -96
- data/spec/ramaze/helper/httpdigest.rb +0 -176
- data/spec/ramaze/view/less.rb +0 -60
- data/spec/ramaze/view/less/file.css.less +0 -8
- data/spec/ramaze/view/redcloth.rb +0 -66
- data/spec/ramaze/view/redcloth/external.redcloth +0 -8
- data/tasks/copyright.rake +0 -21
- data/tasks/gem_setup.rake +0 -112
- data/tasks/git.rake +0 -46
- data/tasks/grancher.rake +0 -12
- data/tasks/jquery.rake +0 -15
- data/tasks/manifest.rake +0 -4
- data/tasks/metric_changes.rake +0 -24
- data/tasks/reversion.rake +0 -8
- data/tasks/traits.rake +0 -21
data/benchmark/suite/minimal.rb
DELETED
data/benchmark/suite/simple.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
class MainController < Ramaze::Controller
|
2
|
-
engine :Liquid
|
3
|
-
|
4
|
-
def index
|
5
|
-
@hash = {
|
6
|
-
:hello => "Hello, World!",
|
7
|
-
:counter => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
8
|
-
}
|
9
|
-
'<html><body>{% for i in counter %}<span>{{hello}}</span>{% endfor %}</body></html>'
|
10
|
-
end
|
11
|
-
end
|
data/benchmark/test.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# Usage:
|
2
|
-
# $ ruby benchmark/test.rb
|
3
|
-
#
|
4
|
-
# or with darcs trackdown
|
5
|
-
# $ cp benchmark/test.rb /tmp/bm.rb
|
6
|
-
# $ darcs trackdown 'ruby /tmp/bm.rb; false'
|
7
|
-
|
8
|
-
begin
|
9
|
-
require File.join(Dir.pwd, 'lib/ramaze')
|
10
|
-
rescue LoadError
|
11
|
-
raise "Can't find lib/ramaze, are you in a ramaze src directory?"
|
12
|
-
end
|
13
|
-
|
14
|
-
ramaze = fork do
|
15
|
-
class MainController < Ramaze::Controller
|
16
|
-
engine :None
|
17
|
-
def index() "Hello, World!" end
|
18
|
-
end
|
19
|
-
|
20
|
-
Ramaze::Log.loggers = []
|
21
|
-
Ramaze.start :sessions => false, :sourcereload => false, :adapter => (ARGV[0] || :evented_mongrel).to_sym
|
22
|
-
end
|
23
|
-
|
24
|
-
sleep 2
|
25
|
-
|
26
|
-
# out = `ab -c 10 -n 1000 http://127.0.0.1:7000/ 2> /dev/null`
|
27
|
-
# out =~ /^Requests.+?(\d+\.\d+)/
|
28
|
-
|
29
|
-
out = `httperf --server=localhost --port=7000 --uri=/ --num-conns=500 --num-calls=1 2> /dev/null`
|
30
|
-
out =~ /^Request rate: (.+?)$/
|
31
|
-
|
32
|
-
puts $1
|
33
|
-
|
34
|
-
Process.kill('SIGKILL', ramaze)
|
35
|
-
Process.wait
|
data/doc/FAQ
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
== FAQ, Frequently asked Questions
|
2
|
-
|
3
|
-
= How do you pronounce Ramaze?
|
4
|
-
|
5
|
-
There are two ways Ramaze is usually pronounced, the one that is most common
|
6
|
-
the moment is like the English `amaze` with a prefixed `r`.
|
7
|
-
|
8
|
-
The other way is using Japanese pronunciation `ra ma ze`:
|
9
|
-
|
10
|
-
`ra` in `rasta`
|
11
|
-
|
12
|
-
`ma` in `mark`
|
13
|
-
|
14
|
-
`ze`, just make it sound German ;)
|
15
|
-
|
16
|
-
= What is MVC?
|
17
|
-
|
18
|
-
MVC stands for Model, View and Controller and is a concept that comes from
|
19
|
-
Smalltalk.
|
20
|
-
|
21
|
-
It is a way to decouple the way Data is stored, accessed, processed and
|
22
|
-
displayed.
|
23
|
-
|
24
|
-
- Model
|
25
|
-
|
26
|
-
Here your Data is structured and accessible, for example an interface to
|
27
|
-
PostgreSQL or Oracle. It contains all the queries and data-layout of your
|
28
|
-
application.
|
29
|
-
|
30
|
-
- View
|
31
|
-
|
32
|
-
This is called Template in Ramaze, it's the way your Data is displayed to
|
33
|
-
the consumer of your information.
|
34
|
-
|
35
|
-
That can be anything like pure HTML, XML, JSON, YAML, RSS or ATOM.
|
36
|
-
|
37
|
-
- Controller
|
38
|
-
|
39
|
-
Controller are the way you process the Information between the Model and
|
40
|
-
View. It is where all (or almost all) your applications programming-logic
|
41
|
-
has its home.
|
42
|
-
|
43
|
-
Common tasks in a Controller are: fetching data from the Model,
|
44
|
-
authentication, processing of POST-requests or GET-parameters,
|
45
|
-
redirection, caching, feed-generation...
|
46
|
-
|
47
|
-
|
48
|
-
= How does Ramaze enforce MVC?
|
49
|
-
|
50
|
-
Now, that one is simple: it doesn't tell you in which way you have to layout
|
51
|
-
your application at all.
|
52
|
-
|
53
|
-
Of course there are many defaults and possible best practices, but you can
|
54
|
-
always change the whole framework to fit your needs.
|
55
|
-
|
56
|
-
|
57
|
-
= Still, What do those 'best practices' say about MVC
|
58
|
-
|
59
|
-
- Model
|
60
|
-
|
61
|
-
First of all, Ramaze doesn't provide a best practice for the Model, it
|
62
|
-
simply assumes that you will have your ORM/database-interface of choice.
|
63
|
-
|
64
|
-
However, it features a simplistic interface to YAML::Store and work on a
|
65
|
-
small wrapper around KirbyBase is in progress.
|
66
|
-
|
67
|
-
For the time being you can use anything you like, currently tested ORMs are
|
68
|
-
ActiveRecord, Kansas and Og.
|
69
|
-
|
70
|
-
- View
|
71
|
-
|
72
|
-
Ramaze offers a plethora of Templating-engines that you can use in your
|
73
|
-
View, including Erubis (ERB), HAML, Liquid, Remarkably, Markaby and
|
74
|
-
the default, called Ezamar.
|
75
|
-
|
76
|
-
The View in Ramaze is tightly coupled with the Controller, that means that
|
77
|
-
your Controller is a subclass of the Templating you will use for the
|
78
|
-
controller.
|
79
|
-
|
80
|
-
- Controller
|
81
|
-
|
82
|
-
That's the smallest but most central part of every Ramaze-application.
|
83
|
-
|
84
|
-
The Controllers act as small dispatcher for your View, by looking up which
|
85
|
-
templating-engine to use and by providing methods that in compound with
|
86
|
-
the templates are called actions.
|
87
|
-
|
88
|
-
the naming and mapping of the controller and its methods will define the
|
89
|
-
layout of your URLs.
|
90
|
-
|
91
|
-
Many helpers provide you pragmatic ways of adding
|
92
|
-
things like aspects, feeds, redirects and the like.
|
data/doc/INSTALL
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
* via RubyGems
|
2
|
-
|
3
|
-
The simplest way of installing Ramaze is via the gem.
|
4
|
-
|
5
|
-
[Rubygems](http://rubygems.org) is the package manager for ruby apps and
|
6
|
-
libraries and provides you with the last tagged version of Ramaze.
|
7
|
-
|
8
|
-
$ gem install ramaze
|
9
|
-
|
10
|
-
Versions are made as we see fit and get an announcment out (usually that's
|
11
|
-
the major obstacle as there is a lot to announce).
|
12
|
-
|
13
|
-
If you want to install the nightly gem of Ramaze you can do this with:
|
14
|
-
|
15
|
-
$ gem install ramaze --source=http://gem.ramaze.net/
|
16
|
-
|
17
|
-
We also use the gem building process on github, which locates gems at
|
18
|
-
http://gems.github.com - so you can get a version from there as well:
|
19
|
-
|
20
|
-
$ gem install manveru-ramaze --source=http://gems.github.com/
|
21
|
-
|
22
|
-
* via git
|
23
|
-
|
24
|
-
To get the latest and sweetest, you can just pull from the repository and run
|
25
|
-
Ramaze that way.
|
26
|
-
|
27
|
-
$ git clone git://github.com/manveru/ramaze.git
|
28
|
-
|
29
|
-
Please read the `man git` or `git help` for more information about updating
|
30
|
-
and creating your own patches.
|
31
|
-
This is at the moment the premier way to use Ramaze, since it is the way I
|
32
|
-
use it.
|
33
|
-
|
34
|
-
Some hints for the usage of Git.
|
35
|
-
|
36
|
-
* use `require 'ramaze'` from everywhere
|
37
|
-
|
38
|
-
Simply add the path to your repository to the RUBYLIB environment variable.
|
39
|
-
If you are using bash you can simply put following line into your .bashrc:
|
40
|
-
|
41
|
-
$ export RUBYLIB="$HOME/path/to/repo/lib/"
|
42
|
-
|
43
|
-
Of course you should put the real path instead, you can also add multiple
|
44
|
-
paths, or create your personal `site_ruby`:
|
45
|
-
|
46
|
-
$ export RUBYLIB="$HOME/ruby/ramaze/lib:$HOME/.site_ruby:$HOME/ruby/bacon/lib"
|
47
|
-
|
48
|
-
* use `require 'ramaze'` systemwide from everywhere
|
49
|
-
|
50
|
-
add a file to your `site_ruby` directory named 'ramaze.rb'
|
51
|
-
the content should be: `require '/path/to/git/repo/ramaze/lib/ramaze'`
|
52
|
-
|
53
|
-
* Pull the latest version
|
54
|
-
|
55
|
-
$ git pull
|
56
|
-
|
57
|
-
* Reset the repo to original state (if you screw up something)
|
58
|
-
|
59
|
-
$ git reset --hard # resets the whole repo
|
60
|
-
|
61
|
-
* Revert changes to (for example) lib/ramaze.rb only
|
62
|
-
|
63
|
-
$ git checkout master lib/ramaze.rb
|
64
|
-
|
65
|
-
* Add and commit all changes.
|
66
|
-
|
67
|
-
$ git commit -a
|
68
|
-
|
69
|
-
* Adding only specific changes.
|
70
|
-
|
71
|
-
# Add hunks you want to commit to the staging area (index)
|
72
|
-
$ git add -p
|
73
|
-
|
74
|
-
* Commit the changes into the history of your repository
|
75
|
-
|
76
|
-
# Create a commit from the hunks added
|
77
|
-
$ git commit
|
78
|
-
|
79
|
-
* output your patches into a bundle ready to be mailed (compress it before
|
80
|
-
sending to make sure it arrives in the way you sent it)
|
81
|
-
|
82
|
-
At the end of this process you will have a tar.bz2 for all your changes
|
83
|
-
that you can mail to ramaze@googlegroups.com
|
84
|
-
|
85
|
-
# make sure you are on latest revision to avoid conflicts
|
86
|
-
$ git pull
|
87
|
-
|
88
|
-
# create 00xx-blah.patch files against the remote repo
|
89
|
-
$ git format-patch origin/HEAD
|
90
|
-
|
91
|
-
# From here on you can use either git-send-email or go the manual route
|
92
|
-
$ tar -cjf ramaze_bundle.tar.bz2 *.patch
|
data/doc/TODO
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
This list is programmaticly generated by `rake todolist`
|
2
|
-
If you want to add/remove items from the list, change them at the
|
3
|
-
position specified in the list.
|
4
|
-
|
5
|
-
/home/manveru/prog/projects/ramaze/lib/ramaze/template/ezamar/morpher.rb
|
6
|
-
- Add pure Ruby implementation as a fall-back.
|
7
|
-
|
8
|
-
/home/manveru/prog/projects/ramaze/lib/ramaze/helper/pager.rb
|
9
|
-
++
|
10
|
-
|
11
|
-
/home/manveru/prog/projects/ramaze/spec/ramaze/action/basics.rb
|
12
|
-
|
13
|
-
/home/manveru/prog/projects/ramaze/lib/ramaze/template/ezamar/engine.rb
|
14
|
-
- provide C version or maybe use erbuis
|
15
|
-
|
16
|
-
/home/manveru/prog/projects/ramaze/lib/ramaze/template/xslt.rb
|
17
|
-
* Error handling
|
18
|
-
* Maybe prevent extFunction to be called by HTTP
|
19
|
-
|
20
|
-
/home/manveru/prog/projects/ramaze/lib/ramaze/helper/identity.rb
|
21
|
-
- maybe using StackHelper, but this is a really minimal overlap?
|
22
|
-
|
23
|
-
/home/manveru/prog/projects/ramaze/spec/snippets/ramaze/caller_info.rb
|
24
|
-
|
25
|
-
/home/manveru/prog/projects/ramaze/lib/ramaze/snippets/dictionary.rb
|
26
|
-
++
|
27
|
-
|
28
|
-
/home/manveru/prog/projects/ramaze/lib/ramaze/helper/redirect.rb
|
29
|
-
- maybe some more options, like a delay
|
data/doc/meta/announcement.txt
DELETED
@@ -1,119 +0,0 @@
|
|
1
|
-
The Ramaze development team is happy to announce version 2009.07 of Ramaze, the
|
2
|
-
light and modular open source web framework that tries to stay out of your way.
|
3
|
-
|
4
|
-
This release contains mostly bug fixes and compatibility improvements.
|
5
|
-
|
6
|
-
Also, thanks to the work of Jeremy Evans, Scaffolding Extensions works with the
|
7
|
-
current version of Ramaze again, giving you a powerful and simple way to
|
8
|
-
provide CRUD and admin interfaces for Sequel and ActiveRecord.
|
9
|
-
|
10
|
-
I also would like to take this opportunity to ask for volunteers that are
|
11
|
-
running on Windows, we are currently working on a major overhaul of the ramaze
|
12
|
-
executable and would like to make sure it behaves correctly.
|
13
|
-
If you are interested, check out the modular-bin branch and report any issues
|
14
|
-
on the bug tracker or hang out on IRC.
|
15
|
-
|
16
|
-
|
17
|
-
== Metadata
|
18
|
-
|
19
|
-
Home page: http://ramaze.net
|
20
|
-
Wiki: http://wiki.ramaze.net
|
21
|
-
|
22
|
-
Repository: http://github.com/manveru/ramaze
|
23
|
-
Bug tracker: http://github.com/manveru/ramaze/issues
|
24
|
-
|
25
|
-
Git clone: git://github.com/manveru/ramaze
|
26
|
-
Current tarball: http://github.com/manveru/ramaze/tarball/master
|
27
|
-
|
28
|
-
IRC: #ramaze on irc.freenode.net
|
29
|
-
|
30
|
-
|
31
|
-
Simple example:
|
32
|
-
|
33
|
-
require 'ramaze'
|
34
|
-
|
35
|
-
class MainController < Ramaze::Controller
|
36
|
-
def index
|
37
|
-
'Hello, World!'
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
Ramaze.start
|
42
|
-
|
43
|
-
|
44
|
-
== Summarized changes with their respective commits
|
45
|
-
|
46
|
-
- Aaron Müller
|
47
|
-
- Update identity helper with new link helper
|
48
|
-
|
49
|
-
- Masahiro Nakagawa
|
50
|
-
- Rewrite localization example
|
51
|
-
|
52
|
-
- Michael Fellinger (manveru)
|
53
|
-
- Adding support for the less CSS templating engine
|
54
|
-
- Adding LRU cache
|
55
|
-
- Fixing problems in paginate
|
56
|
-
- Better defaults for proto specs
|
57
|
-
- The Helper::Cache#cache_value optionally takes a block now
|
58
|
-
- Make sure proto/config.ru points to correct location
|
59
|
-
- Fix annoying behaviour when '/' location is assigned to an app loaded
|
60
|
-
earlier, apps loaded afterwards would overwrite the mapping. This caused
|
61
|
-
some very annoying and hard to debug behaviour.
|
62
|
-
- Fix bacon task dependency
|
63
|
-
- Fix Controller to work properly on Ruby 1.8.6
|
64
|
-
- Fix bug when using localmemcache on Ruby 1.9
|
65
|
-
- Fix the misc/css example
|
66
|
-
- Remove Helper::Cache#cache method
|
67
|
-
- Use absolute paths for requires in all ramaze specs, $LOAD_PATH in Ruby
|
68
|
-
1.9.2 will not include '.'
|
69
|
-
- Remove ContentLength middleware from :live and :dev modes. Rack handlers
|
70
|
-
use it already.
|
71
|
-
- Refactor contrib/addressable_route, it now uses instance variables and can
|
72
|
-
take a mapping on initialize.
|
73
|
-
|
74
|
-
A complete Changelog is available at
|
75
|
-
http://github.com/manveru/ramaze/tree/master/doc/CHANGELOG?raw=true
|
76
|
-
|
77
|
-
|
78
|
-
== Known issues
|
79
|
-
|
80
|
-
- When running on Ruby 1.9.x, Rack 1.0.0 has problems with the encoding, it is
|
81
|
-
recommended to use master HEAD from http://github.com/rack/rack until the
|
82
|
-
next release of Rack.
|
83
|
-
- When running on Ruby 1.9.2dev (ruby trunk), using the thin handler can lead
|
84
|
-
to memory leaks. The cause is yet unknown, please use Ruby 1.9.1 or another
|
85
|
-
handler (mongrel, webrick, and fcgi are known to work well)
|
86
|
-
|
87
|
-
|
88
|
-
== Ramaze Features
|
89
|
-
|
90
|
-
- Builds on top of the Rack library, which provides easy use of adapters like
|
91
|
-
Mongrel, WEBrick, LiteSpeed, Thin, CGI, SCGI, or FCGI.
|
92
|
-
|
93
|
-
- Supports a wide range of templating-engines like: ERB, Erubis, Haml, Less,
|
94
|
-
Liquid, Maruku, Redcloth, Remarkably, Sass, Tagz, Tenjin. And its own engines
|
95
|
-
called Etanni, Ezamar, Gestalt, and Nagoro.
|
96
|
-
|
97
|
-
- Highly modular structure: you can just use the parts you like. This also
|
98
|
-
means that it's very simple to add your own customizations.
|
99
|
-
|
100
|
-
- A variety of helpers is already available, giving you things like advanced
|
101
|
-
caching, OpenID-authentication or aspect-oriented programming for your
|
102
|
-
controllers.
|
103
|
-
|
104
|
-
- It is possible to use the ORM you like, be it Sequel, DataMapper,
|
105
|
-
ActiveRecord, Og, Kansas or something more simplistic like M4DBI.
|
106
|
-
|
107
|
-
- Good documentation: although we don't have 100% documentation right now (dcov
|
108
|
-
says around 75%), just about every part of Ramaze is covered with basic and
|
109
|
-
advanced docs. There are a variety of examples, screencasts and a tutorial
|
110
|
-
available.
|
111
|
-
|
112
|
-
- Friendly community: there are people from all over the world using Ramaze, so
|
113
|
-
you can get plenty of help and information around the clock.
|
114
|
-
|
115
|
-
|
116
|
-
For more information please come to http://ramaze.net or ask directly on IRC
|
117
|
-
irc://irc.freenode.net/#ramaze
|
118
|
-
|
119
|
-
Thank you, Michael 'manveru' Fellinger and the Ramaze community
|