ramaze 2009.04 → 2009.05

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/CHANGELOG +168 -0
  2. data/MANIFEST +16 -6
  3. data/{README.markdown → README.md} +0 -14
  4. data/Rakefile +20 -20
  5. data/benchmark/bench_templates/bench.rb +67 -0
  6. data/benchmark/bench_templates/view/large.erb +79 -0
  7. data/benchmark/bench_templates/view/large.haml +41 -0
  8. data/benchmark/bench_templates/view/large.xhtml +79 -0
  9. data/benchmark/bench_templates/view/small.erb +21 -0
  10. data/benchmark/bench_templates/view/small.haml +12 -0
  11. data/benchmark/bench_templates/view/small.xhtml +21 -0
  12. data/benchmark/run.rb +14 -21
  13. data/benchmark/suite/minimal.rb +3 -5
  14. data/benchmark/suite/no_informer.rb +0 -2
  15. data/benchmark/suite/no_sessions.rb +3 -4
  16. data/benchmark/suite/no_template.rb +1 -3
  17. data/benchmark/suite/simple.rb +1 -3
  18. data/benchmark/suite/template_erubis.rb +0 -2
  19. data/benchmark/suite/template_etanni.rb +8 -0
  20. data/benchmark/suite/template_ezamar.rb +1 -3
  21. data/benchmark/suite/template_haml.rb +0 -2
  22. data/benchmark/suite/template_liquid.rb +0 -2
  23. data/benchmark/suite/template_markaby.rb +0 -2
  24. data/benchmark/suite/template_nagoro.rb +1 -3
  25. data/benchmark/suite/template_redcloth.rb +0 -2
  26. data/benchmark/suite/template_tenjin.rb +0 -2
  27. data/bin/ramaze +7 -300
  28. data/doc/AUTHORS +11 -7
  29. data/examples/app/chat/layout/{default.nag → default.xhtml} +0 -0
  30. data/examples/app/chat/view/{chat.nag → chat.xhtml} +0 -0
  31. data/examples/app/chat/view/{index.nag → index.xhtml} +0 -0
  32. data/examples/helpers/cache.rb +6 -4
  33. data/lib/ramaze.rb +2 -3
  34. data/lib/ramaze/cache/sequel.rb +17 -5
  35. data/lib/ramaze/gestalt.rb +3 -0
  36. data/lib/ramaze/helper/gestalt.rb +32 -0
  37. data/lib/ramaze/helper/paginate.rb +1 -0
  38. data/lib/ramaze/helper/ultraviolet.rb +2 -0
  39. data/lib/ramaze/log/rotatinginformer.rb +10 -10
  40. data/lib/ramaze/request.rb +1 -4
  41. data/lib/ramaze/tool/bin.rb +330 -0
  42. data/lib/ramaze/version.rb +1 -1
  43. data/lib/ramaze/view.rb +3 -13
  44. data/lib/ramaze/view/erubis.rb +2 -2
  45. data/lib/ramaze/view/ezamar.rb +2 -2
  46. data/lib/ramaze/view/gestalt.rb +14 -0
  47. data/lib/ramaze/view/haml.rb +1 -1
  48. data/lib/ramaze/view/liquid.rb +2 -2
  49. data/lib/ramaze/view/maruku.rb +2 -1
  50. data/lib/ramaze/view/sass.rb +1 -1
  51. data/lib/ramaze/view/tenjin.rb +7 -4
  52. data/lib/vendor/route_exceptions.rb +8 -9
  53. data/ramaze.gemspec +6 -9
  54. data/spec/examples/caching.rb +2 -4
  55. data/spec/examples/element.rb +1 -0
  56. data/spec/examples/templates/template_ezamar.rb +1 -0
  57. data/spec/examples/templates/template_nagoro.rb +1 -0
  58. data/spec/ramaze/error.rb +1 -1
  59. data/spec/ramaze/gestalt.rb +22 -16
  60. data/spec/ramaze/helper/localize.rb +10 -8
  61. data/spec/ramaze/helper/sequel_form.rb +2 -0
  62. data/spec/ramaze/helper/user.rb +2 -2
  63. data/spec/ramaze/view/gestalt.rb +94 -0
  64. data/spec/ramaze/view/gestalt/external.ges +8 -0
  65. data/tasks/install_dependencies.rake +1 -1
  66. data/tasks/release.rake +5 -4
  67. metadata +20 -20
  68. data/benchmark/suite/template_builder.rb +0 -12
  69. data/lib/ramaze/snippets/kernel/constant.rb +0 -41
@@ -0,0 +1,8 @@
1
+ html do
2
+ head do
3
+ title 'Gestalt Test'
4
+ end
5
+ body do
6
+ h1 'Gestalt Template'
7
+ end
8
+ end
@@ -1,6 +1,6 @@
1
1
  desc 'install dependencies'
2
2
  task :install_dependencies => [:gem_installer] do
3
3
  GemInstaller.new do
4
- setup_gemspec(GEMSPEC)
4
+ # setup_gemspec(GEMSPEC)
5
5
  end
6
6
  end
@@ -2,7 +2,7 @@ namespace :release do
2
2
  task :all => [:release_github, :release_rubyforge]
3
3
 
4
4
  desc 'Display instructions to release on github'
5
- task :github => [:jquery, :reversion, :gemspec] do
5
+ task :github => [:jquery, :reversion, :authors, :gemspec] do
6
6
  name, version = GEMSPEC.name, GEMSPEC.version
7
7
 
8
8
  puts <<INSTRUCTIONS
@@ -22,14 +22,14 @@ INSTRUCTIONS
22
22
 
23
23
  # TODO: Not tested
24
24
  desc 'Display instructions to release on rubyforge'
25
- task :rubyforge => [:jquery, :reversion, :gemspec, :package] do
25
+ task :rubyforge => [:jquery, :reversion, :authors, :gemspec, :package] do
26
26
  name, version = GEMSPEC.name, GEMSPEC.version
27
27
 
28
28
  puts <<INSTRUCTIONS
29
29
  To publish to rubyforge do following:
30
30
 
31
31
  rubyforge login
32
- rubyforge add_release #{name} '#{version}' pkg/#{name}-#{version}.gem
32
+ rubyforge add_release #{name} #{name} '#{version}' pkg/#{name}-#{version}.gem
33
33
 
34
34
  After you have done these steps, see:
35
35
 
@@ -40,9 +40,10 @@ INSTRUCTIONS
40
40
 
41
41
  desc 'Display instructions to add archives after release:rubyforge'
42
42
  task :rubyforge_archives do
43
+ name, version = GEMSPEC.name, GEMSPEC.version
43
44
  puts "Adding archives for distro packagers is:", ""
44
45
 
45
- Dir["pkg/#{name}-#{version}.{gz,zip}"].each do |file|
46
+ Dir["pkg/#{name}-#{version}.{tgz,zip}"].each do |file|
46
47
  puts "rubyforge add_file #{name} #{name} '#{version}' '#{file}'"
47
48
  end
48
49
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ramaze
3
3
  version: !ruby/object:Gem::Version
4
- version: "2009.04"
4
+ version: "2009.05"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael 'manveru' Fellinger
@@ -9,28 +9,18 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-26 00:00:00 +09:00
12
+ date: 2009-05-07 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rack
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - "="
22
- - !ruby/object:Gem::Version
23
- version: 1.0.0
24
- version:
25
15
  - !ruby/object:Gem::Dependency
26
16
  name: innate
27
17
  type: :runtime
28
18
  version_requirement:
29
19
  version_requirements: !ruby/object:Gem::Requirement
30
20
  requirements:
31
- - - "="
21
+ - - ~>
32
22
  - !ruby/object:Gem::Version
33
- version: "2009.04"
23
+ version: "2009.05"
34
24
  version:
35
25
  description: Ramaze is a simple and modular web framework
36
26
  email: m.fellinger@gmail.com
@@ -44,8 +34,15 @@ files:
44
34
  - .mailmap
45
35
  - CHANGELOG
46
36
  - MANIFEST
47
- - README.markdown
37
+ - README.md
48
38
  - Rakefile
39
+ - benchmark/bench_templates/bench.rb
40
+ - benchmark/bench_templates/view/large.erb
41
+ - benchmark/bench_templates/view/large.haml
42
+ - benchmark/bench_templates/view/large.xhtml
43
+ - benchmark/bench_templates/view/small.erb
44
+ - benchmark/bench_templates/view/small.haml
45
+ - benchmark/bench_templates/view/small.xhtml
49
46
  - benchmark/results.txt
50
47
  - benchmark/run.rb
51
48
  - benchmark/suite/minimal.rb
@@ -53,8 +50,8 @@ files:
53
50
  - benchmark/suite/no_sessions.rb
54
51
  - benchmark/suite/no_template.rb
55
52
  - benchmark/suite/simple.rb
56
- - benchmark/suite/template_builder.rb
57
53
  - benchmark/suite/template_erubis.rb
54
+ - benchmark/suite/template_etanni.rb
58
55
  - benchmark/suite/template_ezamar.rb
59
56
  - benchmark/suite/template_haml.rb
60
57
  - benchmark/suite/template_liquid.rb
@@ -112,15 +109,15 @@ files:
112
109
  - examples/app/blog/view/feed.rss.nag
113
110
  - examples/app/blog/view/index.nag
114
111
  - examples/app/blog/view/tag/index.nag
115
- - examples/app/chat/layout/default.nag
112
+ - examples/app/chat/layout/default.xhtml
116
113
  - examples/app/chat/model/history.rb
117
114
  - examples/app/chat/model/message.rb
118
115
  - examples/app/chat/public/css/chat.css
119
116
  - examples/app/chat/public/js/chat.js
120
117
  - examples/app/chat/public/js/jquery.js
121
118
  - examples/app/chat/start.rb
122
- - examples/app/chat/view/chat.nag
123
- - examples/app/chat/view/index.nag
119
+ - examples/app/chat/view/chat.xhtml
120
+ - examples/app/chat/view/index.xhtml
124
121
  - examples/app/localization/start.rb
125
122
  - examples/app/sourceview/public/coderay.css
126
123
  - examples/app/sourceview/public/images/file.gif
@@ -322,7 +319,6 @@ files:
322
319
  - lib/ramaze/snippets/blankslate.rb
323
320
  - lib/ramaze/snippets/divide.rb
324
321
  - lib/ramaze/snippets/fiber.rb
325
- - lib/ramaze/snippets/kernel/constant.rb
326
322
  - lib/ramaze/snippets/kernel/pretty_inspect.rb
327
323
  - lib/ramaze/snippets/metaid.rb
328
324
  - lib/ramaze/snippets/numeric/filesize_format.rb
@@ -353,12 +349,14 @@ files:
353
349
  - lib/ramaze/spec/helper/pretty_output.rb
354
350
  - lib/ramaze/spec/helper/snippets.rb
355
351
  - lib/ramaze/spec/helper/template_examples.rb
352
+ - lib/ramaze/tool/bin.rb
356
353
  - lib/ramaze/tool/create.rb
357
354
  - lib/ramaze/tool/project_creator.rb
358
355
  - lib/ramaze/version.rb
359
356
  - lib/ramaze/view.rb
360
357
  - lib/ramaze/view/erubis.rb
361
358
  - lib/ramaze/view/ezamar.rb
359
+ - lib/ramaze/view/gestalt.rb
362
360
  - lib/ramaze/view/haml.rb
363
361
  - lib/ramaze/view/liquid.rb
364
362
  - lib/ramaze/view/maruku.rb
@@ -470,6 +468,8 @@ files:
470
468
  - spec/ramaze/view/ezamar.rb
471
469
  - spec/ramaze/view/ezamar/external.zmr
472
470
  - spec/ramaze/view/ezamar/sum.zmr
471
+ - spec/ramaze/view/gestalt.rb
472
+ - spec/ramaze/view/gestalt/external.ges
473
473
  - spec/ramaze/view/haml.rb
474
474
  - spec/ramaze/view/haml/external.haml
475
475
  - spec/ramaze/view/haml/sum.haml
@@ -1,12 +0,0 @@
1
- require 'ramaze'
2
-
3
- class MainController < Ramaze::Controller
4
- engine :Builder
5
-
6
- def index
7
- @hello = "Hello, World!"
8
- %q[
9
- xml.html {|h| h.body {|b| 10.times { b.span @hello } }}
10
- ]
11
- end
12
- end
@@ -1,41 +0,0 @@
1
- # Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
2
- # All files in this distribution are subject to the terms of the Ruby license.
3
-
4
- module Ramaze
5
- module CoreExtensions
6
-
7
- # Extensions for Kernel
8
-
9
- module Object
10
-
11
- # Original from Trans (Facets 1.4.5)
12
- # This is similar to +Module#const_get+ but is accessible at all levels,
13
- # and, unlike +const_get+, can handle module hierarchy.
14
- #
15
- # constant("Fixnum") # -> Fixnum
16
- # constant(:Fixnum) # -> Fixnum
17
- #
18
- # constant("Process::Sys") # -> Process::Sys
19
- # constant("Regexp::MULTILINE") # -> 4
20
- #
21
- # require 'test/unit'
22
- # Test.constant("Unit::Assertions") # -> Test::Unit::Assertions
23
- # Test.constant("::Test::Unit") # -> Test::Unit
24
-
25
- def constant(const)
26
- const = const.to_s.dup
27
-
28
- if const.sub!(/^::/, '')
29
- base = Object
30
- elsif self.kind_of?(Module)
31
- base = self
32
- else
33
- base = self.class
34
- end
35
-
36
- const.split(/::/).inject(base){ |mod, name| mod.const_get(name) }
37
- end
38
- end
39
-
40
- end
41
- end