ramaze 2011.01.30 → 2011.07.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (229) hide show
  1. data/.gitignore +2 -1
  2. data/.mailmap +2 -0
  3. data/.rvmrc +1 -0
  4. data/README.md +119 -197
  5. data/Rakefile +14 -97
  6. data/bin/ramaze +6 -14
  7. data/doc/AUTHORS +8 -4
  8. data/doc/CHANGELOG +3784 -3339
  9. data/examples/app/chat/start.rb +2 -2
  10. data/lib/proto/app.rb +2 -3
  11. data/lib/proto/config.ru +4 -5
  12. data/lib/proto/controller/init.rb +11 -4
  13. data/lib/proto/controller/main.rb +12 -7
  14. data/lib/proto/layout/default.xhtml +56 -23
  15. data/lib/proto/model/init.rb +3 -1
  16. data/lib/proto/public/css/grid.css +107 -0
  17. data/lib/proto/public/css/layout.css +81 -0
  18. data/lib/proto/public/css/reset.css +123 -0
  19. data/lib/proto/public/css/text.css +109 -0
  20. data/lib/proto/public/images/bg.png +0 -0
  21. data/lib/proto/spec/main.rb +2 -2
  22. data/lib/proto/start.rb +11 -1
  23. data/lib/proto/view/index.xhtml +27 -23
  24. data/lib/ramaze.rb +0 -1
  25. data/lib/ramaze/app.rb +85 -12
  26. data/lib/ramaze/app_graph.rb +107 -0
  27. data/lib/ramaze/bin/console.rb +87 -0
  28. data/lib/ramaze/bin/create.rb +94 -0
  29. data/lib/ramaze/bin/helper.rb +107 -0
  30. data/lib/ramaze/bin/restart.rb +95 -0
  31. data/lib/ramaze/bin/runner.rb +141 -0
  32. data/lib/ramaze/bin/start.rb +206 -0
  33. data/lib/ramaze/bin/status.rb +152 -0
  34. data/lib/ramaze/bin/stop.rb +112 -0
  35. data/lib/ramaze/cache.rb +9 -4
  36. data/lib/ramaze/cache/localmemcache.rb +10 -13
  37. data/lib/ramaze/cache/lru.rb +49 -7
  38. data/lib/ramaze/cache/memcache.rb +170 -92
  39. data/lib/ramaze/cache/sequel.rb +301 -118
  40. data/lib/ramaze/controller.rb +108 -9
  41. data/lib/ramaze/controller/default.rb +15 -2
  42. data/lib/ramaze/current.rb +14 -2
  43. data/lib/ramaze/dependencies.rb +46 -0
  44. data/lib/ramaze/files.rb +38 -3
  45. data/lib/ramaze/gestalt.rb +12 -12
  46. data/lib/ramaze/helper.rb +0 -2
  47. data/lib/ramaze/helper/auth.rb +30 -23
  48. data/lib/ramaze/helper/blue_form.rb +175 -126
  49. data/lib/ramaze/helper/csrf.rb +76 -91
  50. data/lib/ramaze/helper/email.rb +105 -0
  51. data/lib/ramaze/helper/erector.rb +16 -15
  52. data/lib/ramaze/helper/gestalt.rb +2 -2
  53. data/lib/ramaze/helper/layout.rb +89 -73
  54. data/lib/ramaze/helper/link.rb +7 -6
  55. data/lib/ramaze/helper/localize.rb +6 -5
  56. data/lib/ramaze/helper/markaby.rb +25 -23
  57. data/lib/ramaze/helper/maruku.rb +3 -3
  58. data/lib/ramaze/helper/paginate.rb +19 -27
  59. data/lib/ramaze/helper/remarkably.rb +3 -3
  60. data/lib/ramaze/helper/request_accessor.rb +3 -3
  61. data/lib/ramaze/helper/send_file.rb +12 -8
  62. data/lib/ramaze/helper/simple_captcha.rb +5 -6
  63. data/lib/ramaze/helper/stack.rb +7 -4
  64. data/lib/ramaze/helper/tagz.rb +10 -11
  65. data/lib/ramaze/helper/thread.rb +19 -16
  66. data/lib/ramaze/helper/ultraviolet.rb +7 -4
  67. data/lib/ramaze/helper/user.rb +40 -21
  68. data/lib/ramaze/helper/xhtml.rb +29 -20
  69. data/lib/ramaze/log.rb +3 -11
  70. data/lib/ramaze/log/analogger.rb +5 -4
  71. data/lib/ramaze/log/growl.rb +9 -7
  72. data/lib/ramaze/log/hub.rb +3 -5
  73. data/lib/ramaze/log/informer.rb +15 -12
  74. data/lib/ramaze/log/knotify.rb +3 -5
  75. data/lib/ramaze/log/logger.rb +3 -5
  76. data/lib/ramaze/log/logging.rb +6 -8
  77. data/lib/ramaze/log/rotatinginformer.rb +27 -17
  78. data/lib/ramaze/log/syslog.rb +7 -7
  79. data/lib/ramaze/log/xosd.rb +3 -5
  80. data/lib/ramaze/middleware_compiler.rb +27 -4
  81. data/lib/ramaze/reloader.rb +50 -12
  82. data/lib/ramaze/reloader/watch_inotify.rb +4 -5
  83. data/lib/ramaze/reloader/watch_stat.rb +3 -3
  84. data/lib/ramaze/request.rb +18 -8
  85. data/lib/ramaze/response.rb +38 -7
  86. data/lib/ramaze/rest.rb +36 -0
  87. data/lib/ramaze/setup.rb +101 -31
  88. data/lib/ramaze/spec.rb +1 -1
  89. data/lib/ramaze/spec/bacon.rb +6 -3
  90. data/lib/ramaze/spec/helper/bacon.rb +0 -1
  91. data/lib/ramaze/version.rb +1 -1
  92. data/lib/ramaze/view.rb +2 -11
  93. data/lib/ramaze/view/erector.rb +46 -31
  94. data/lib/ramaze/view/erubis.rb +7 -3
  95. data/lib/ramaze/view/ezamar.rb +7 -3
  96. data/lib/ramaze/view/gestalt.rb +9 -3
  97. data/lib/ramaze/view/haml.rb +7 -3
  98. data/lib/ramaze/view/liquid.rb +3 -3
  99. data/lib/ramaze/view/lokar.rb +7 -3
  100. data/lib/ramaze/view/mustache.rb +11 -5
  101. data/lib/ramaze/view/nagoro.rb +3 -3
  102. data/lib/ramaze/view/sass.rb +1 -1
  103. data/lib/ramaze/view/slippers.rb +40 -13
  104. data/lib/ramaze/view/tagz.rb +9 -5
  105. data/ramaze.gemspec +23 -128
  106. data/spec/helper.rb +5 -0
  107. data/spec/ramaze/bin/app/config.ru +11 -0
  108. data/spec/ramaze/bin/create.rb +28 -0
  109. data/spec/ramaze/bin/runner.rb +30 -0
  110. data/spec/ramaze/bin/start.rb +38 -0
  111. data/spec/ramaze/cache/memcache.rb +10 -3
  112. data/spec/ramaze/cache/sequel.rb +7 -0
  113. data/spec/ramaze/controller/provide_inheritance.rb +0 -10
  114. data/spec/ramaze/dispatcher/file.rb +19 -15
  115. data/spec/ramaze/helper/auth.rb +10 -9
  116. data/spec/ramaze/helper/blue_form.rb +121 -68
  117. data/spec/ramaze/helper/email.rb +69 -0
  118. data/spec/ramaze/helper/layout.rb +12 -15
  119. data/spec/ramaze/helper/layout/alternative.xhtml +5 -0
  120. data/spec/ramaze/helper/user.rb +2 -0
  121. data/spec/ramaze/log/growl.rb +14 -1
  122. data/spec/{contrib → ramaze}/rest.rb +1 -1
  123. data/spec/ramaze/session/memcache.rb +2 -2
  124. data/spec/ramaze/view/sass.rb +1 -1
  125. data/tasks/bacon.rake +3 -3
  126. data/tasks/gem.rake +17 -18
  127. data/tasks/rcov.rake +2 -3
  128. data/tasks/release.rake +8 -65
  129. data/tasks/setup.rake +10 -8
  130. data/tasks/todo.rake +9 -5
  131. data/tasks/yard.rake +3 -2
  132. metadata +105 -397
  133. data/MANIFEST +0 -532
  134. data/TODO.md +0 -19
  135. data/benchmark/bench_templates/bench.rb +0 -67
  136. data/benchmark/bench_templates/view/large.erb +0 -79
  137. data/benchmark/bench_templates/view/large.haml +0 -41
  138. data/benchmark/bench_templates/view/large.lok +0 -79
  139. data/benchmark/bench_templates/view/large.xhtml +0 -79
  140. data/benchmark/bench_templates/view/small.erb +0 -21
  141. data/benchmark/bench_templates/view/small.haml +0 -12
  142. data/benchmark/bench_templates/view/small.lok +0 -21
  143. data/benchmark/bench_templates/view/small.xhtml +0 -21
  144. data/benchmark/results.txt +0 -131
  145. data/benchmark/run.rb +0 -355
  146. data/benchmark/suite/minimal.rb +0 -11
  147. data/benchmark/suite/no_informer.rb +0 -7
  148. data/benchmark/suite/no_sessions.rb +0 -9
  149. data/benchmark/suite/no_template.rb +0 -7
  150. data/benchmark/suite/simple.rb +0 -5
  151. data/benchmark/suite/template_erubis.rb +0 -8
  152. data/benchmark/suite/template_etanni.rb +0 -8
  153. data/benchmark/suite/template_ezamar.rb +0 -8
  154. data/benchmark/suite/template_haml.rb +0 -13
  155. data/benchmark/suite/template_liquid.rb +0 -11
  156. data/benchmark/suite/template_markaby.rb +0 -9
  157. data/benchmark/suite/template_nagoro.rb +0 -8
  158. data/benchmark/suite/template_redcloth.rb +0 -13
  159. data/benchmark/suite/template_tenjin.rb +0 -8
  160. data/benchmark/test.rb +0 -35
  161. data/doc/FAQ +0 -92
  162. data/doc/INSTALL +0 -92
  163. data/doc/TODO +0 -29
  164. data/doc/meta/announcement.txt +0 -119
  165. data/doc/meta/configuration.txt +0 -163
  166. data/doc/meta/internals.txt +0 -278
  167. data/doc/meta/users.kml +0 -64
  168. data/doc/tutorial/todolist.html +0 -1512
  169. data/doc/tutorial/todolist.txt +0 -920
  170. data/examples/app/sourceview/public/coderay.css +0 -104
  171. data/examples/app/sourceview/public/images/file.gif +0 -0
  172. data/examples/app/sourceview/public/images/folder.gif +0 -0
  173. data/examples/app/sourceview/public/images/tv-collapsable-last.gif +0 -0
  174. data/examples/app/sourceview/public/images/tv-collapsable.gif +0 -0
  175. data/examples/app/sourceview/public/images/tv-expandable-last.gif +0 -0
  176. data/examples/app/sourceview/public/images/tv-expandable.gif +0 -0
  177. data/examples/app/sourceview/public/images/tv-item-last.gif +0 -0
  178. data/examples/app/sourceview/public/images/tv-item.gif +0 -0
  179. data/examples/app/sourceview/public/jquery.js +0 -11
  180. data/examples/app/sourceview/public/jquery.treeview.css +0 -48
  181. data/examples/app/sourceview/public/jquery.treeview.js +0 -223
  182. data/examples/app/sourceview/public/sourceview.js +0 -52
  183. data/examples/app/sourceview/start.rb +0 -79
  184. data/examples/app/sourceview/view/index.haml +0 -59
  185. data/examples/helpers/httpdigest.rb +0 -107
  186. data/lib/proto/public/css/screen.css +0 -30
  187. data/lib/proto/public/js/jquery.js +0 -7179
  188. data/lib/ramaze/contrib/addressable_route.rb +0 -56
  189. data/lib/ramaze/contrib/app_graph.rb +0 -64
  190. data/lib/ramaze/contrib/email.rb +0 -88
  191. data/lib/ramaze/contrib/facebook.rb +0 -23
  192. data/lib/ramaze/contrib/facebook/facebook.rb +0 -171
  193. data/lib/ramaze/contrib/gettext.rb +0 -113
  194. data/lib/ramaze/contrib/gettext/mo.rb +0 -155
  195. data/lib/ramaze/contrib/gettext/parser.rb +0 -46
  196. data/lib/ramaze/contrib/gettext/po.rb +0 -109
  197. data/lib/ramaze/contrib/gzip_filter.rb +0 -1
  198. data/lib/ramaze/contrib/maruku_uv.rb +0 -59
  199. data/lib/ramaze/contrib/profiling.rb +0 -36
  200. data/lib/ramaze/contrib/rest.rb +0 -23
  201. data/lib/ramaze/contrib/sequel/create_join.rb +0 -26
  202. data/lib/ramaze/contrib/sequel/form_field.rb +0 -129
  203. data/lib/ramaze/contrib/sequel/image.rb +0 -196
  204. data/lib/ramaze/contrib/sequel/relation.rb +0 -98
  205. data/lib/ramaze/helper/httpdigest.rb +0 -96
  206. data/lib/ramaze/tool/bin.rb +0 -340
  207. data/lib/ramaze/tool/create.rb +0 -48
  208. data/lib/ramaze/tool/project_creator.rb +0 -120
  209. data/lib/ramaze/view/less.rb +0 -12
  210. data/lib/ramaze/view/maruku.rb +0 -15
  211. data/lib/ramaze/view/redcloth.rb +0 -21
  212. data/spec/contrib/addressable_route.rb +0 -30
  213. data/spec/examples/helpers/httpdigest.rb +0 -64
  214. data/spec/examples/templates/template_redcloth.rb +0 -13
  215. data/spec/ramaze/bin/ramaze.rb +0 -96
  216. data/spec/ramaze/helper/httpdigest.rb +0 -176
  217. data/spec/ramaze/view/less.rb +0 -60
  218. data/spec/ramaze/view/less/file.css.less +0 -8
  219. data/spec/ramaze/view/redcloth.rb +0 -66
  220. data/spec/ramaze/view/redcloth/external.redcloth +0 -8
  221. data/tasks/copyright.rake +0 -21
  222. data/tasks/gem_setup.rake +0 -112
  223. data/tasks/git.rake +0 -46
  224. data/tasks/grancher.rake +0 -12
  225. data/tasks/jquery.rake +0 -15
  226. data/tasks/manifest.rake +0 -4
  227. data/tasks/metric_changes.rake +0 -24
  228. data/tasks/reversion.rake +0 -8
  229. data/tasks/traits.rake +0 -21
@@ -1,11 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :None
3
-
4
- def index
5
- "Hello, World!"
6
- end
7
- end
8
-
9
- Ramaze.middleware!(:bench){|m| m.run(Ramaze::AppMap) }
10
- Ramaze.options.mode = :bench
11
- Ramaze::Log.loggers.clear
@@ -1,7 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- def index
3
- "Hello, World!"
4
- end
5
- end
6
-
7
- Ramaze::Log.loggers = []
@@ -1,9 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- def index
3
- "Hello, World!"
4
- end
5
- end
6
-
7
- Ramaze.middleware!(:nosessions){|m| m.run(Ramaze::AppMap) }
8
- Ramaze.options.mode = :nosessions
9
- Ramaze::Log.loggers.clear
@@ -1,7 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :None
3
-
4
- def index
5
- "Hello, World!"
6
- end
7
- end
@@ -1,5 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- def index
3
- "Hello, World!"
4
- end
5
- end
@@ -1,8 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :Erubis
3
-
4
- def index
5
- @hello = "Hello, World!"
6
- '<html><body><% 10.times do %><span><%= @hello %></span><% end %></body></html>'
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :Etanni
3
-
4
- def index
5
- @hello = "Hello, World!"
6
- '<html><body><?r 10.times do ?><span>#{@hello}</span><?r end ?></body></html>'
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :Ezamar
3
-
4
- def index
5
- @hello = "Hello, World!"
6
- '<html><body><?r 10.times do ?><span>#{@hello}</span><?r end ?></body></html>'
7
- end
8
- end
@@ -1,13 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :Haml
3
-
4
- def index
5
- @hello = "Hello, World!"
6
- %{
7
- %html
8
- %body
9
- - 10.times do
10
- %span= @hello
11
- }
12
- end
13
- end
@@ -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
@@ -1,9 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :Markaby
3
- helper :markaby
4
-
5
- def index
6
- @hello = "Hello, World!"
7
- mab { html { body { 10.times { span @hello } } } }
8
- end
9
- end
@@ -1,8 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :Nagoro
3
-
4
- def index
5
- @hello = "Hello, World!"
6
- '<html><body><span times="10">#{@hello}</span></body></html>'
7
- end
8
- end
@@ -1,13 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :RedCloth
3
- layout :layout
4
-
5
- def index
6
- @hello = "Hello, World!"
7
- '<% 10.times do %> %<%= @hello %>% <% end %>'
8
- end
9
-
10
- def layout
11
- '<html><body><%= @content %></body></html>'
12
- end
13
- end
@@ -1,8 +0,0 @@
1
- class MainController < Ramaze::Controller
2
- engine :Tenjin
3
-
4
- def index
5
- @context = {:hello => "Hello, World!"}
6
- '<html><body><?rb 10.times do ?><span>${@hello}</span><?rb end ?></body></html>'
7
- end
8
- 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
@@ -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