ramaze 2009.05 → 2009.06
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/MANIFEST +11 -7
- data/README.md +3 -3
- data/Rakefile +17 -15
- data/bin/ramaze +7 -2
- data/doc/AUTHORS +6 -5
- data/doc/CHANGELOG +10057 -12259
- data/doc/meta/announcement.txt +93 -46
- data/doc/tutorial/todolist.html +22 -58
- data/doc/tutorial/todolist.txt +20 -39
- data/examples/app/wikore/src/model.rb +7 -1
- data/examples/app/wiktacular/template/html_layout.xhtml +1 -1
- data/lib/proto/config.ru +5 -1
- data/lib/ramaze/cache/localmemcache.rb +1 -1
- data/lib/ramaze/cache/memcache.rb +26 -1
- data/lib/ramaze/cache/sequel.rb +9 -6
- data/lib/ramaze/contrib/addressable_route.rb +55 -0
- data/lib/ramaze/contrib/facebook/facebook.rb +4 -4
- data/lib/ramaze/controller.rb +28 -18
- data/lib/ramaze/gestalt.rb +1 -1
- data/lib/ramaze/helper/auth.rb +0 -5
- data/lib/ramaze/helper/cache.rb +0 -9
- data/lib/ramaze/helper/form.rb +14 -2
- data/lib/ramaze/helper/formatting.rb +1 -1
- data/lib/ramaze/helper/layout.rb +97 -0
- data/lib/ramaze/helper/link.rb +6 -25
- data/lib/ramaze/helper/paginate.rb +2 -2
- data/lib/ramaze/helper/user.rb +3 -3
- data/lib/ramaze/helper.rb +1 -0
- data/lib/ramaze/setup.rb +22 -9
- data/lib/ramaze/spec/bacon.rb +34 -0
- data/lib/ramaze/spec/helper/template_examples.rb +13 -23
- data/lib/ramaze/spec.rb +8 -9
- data/lib/ramaze/tool/bin.rb +16 -6
- data/lib/ramaze/tool/project_creator.rb +1 -1
- data/lib/ramaze/version.rb +1 -1
- data/lib/ramaze.rb +8 -8
- data/lib/vendor/etag.rb +4 -2
- data/lib/vendor/route_exceptions.rb +6 -11
- data/ramaze.gemspec +52 -8
- data/spec/contrib/addressable_route.rb +32 -0
- data/spec/contrib/rest.rb +1 -1
- data/spec/examples/caching.rb +1 -1
- data/spec/examples/css.rb +1 -1
- data/spec/examples/element.rb +1 -1
- data/spec/examples/hello.rb +1 -1
- data/spec/examples/helpers/httpdigest.rb +1 -1
- data/spec/examples/linking.rb +1 -1
- data/spec/examples/simple.rb +1 -1
- data/spec/examples/templates/template_erubis.rb +3 -2
- data/spec/examples/templates/template_ezamar.rb +3 -2
- data/spec/examples/templates/template_haml.rb +3 -2
- data/spec/examples/templates/template_liquid.rb +3 -2
- data/spec/examples/templates/template_markaby.rb +5 -4
- data/spec/examples/templates/template_nagoro.rb +3 -3
- data/spec/examples/templates/template_redcloth.rb +3 -2
- data/spec/examples/templates/template_remarkably.rb +3 -2
- data/spec/examples/templates/template_tenjin.rb +3 -2
- data/spec/helper.rb +1 -2
- data/spec/ramaze/app.rb +1 -1
- data/spec/ramaze/bin/ramaze.rb +91 -0
- data/spec/ramaze/cache/memcache.rb +6 -0
- data/spec/ramaze/controller/actionless_templates.rb +1 -1
- data/spec/ramaze/controller/lonely_mapping.rb +16 -0
- data/spec/ramaze/controller/mapping.rb +0 -14
- data/spec/ramaze/controller/provide_inheritance.rb +1 -1
- data/spec/ramaze/controller/resolve.rb +1 -1
- data/spec/ramaze/controller/subclass.rb +1 -1
- data/spec/ramaze/controller/template_resolving.rb +1 -1
- data/spec/ramaze/dispatcher/directory.rb +1 -1
- data/spec/ramaze/dispatcher/file.rb +7 -7
- data/spec/ramaze/error.rb +2 -2
- data/spec/ramaze/files.rb +1 -1
- data/spec/ramaze/helper/auth.rb +1 -1
- data/spec/ramaze/helper/bench.rb +2 -1
- data/spec/ramaze/helper/cache.rb +1 -1
- data/spec/ramaze/helper/flash.rb +1 -1
- data/spec/ramaze/helper/form.rb +2 -2
- data/spec/ramaze/helper/httpdigest.rb +3 -3
- data/spec/ramaze/helper/layout/default.xhtml +5 -0
- data/spec/ramaze/helper/layout.rb +79 -0
- data/spec/ramaze/helper/link.rb +32 -11
- data/spec/ramaze/helper/localize.rb +1 -1
- data/spec/ramaze/helper/maruku.rb +1 -1
- data/spec/ramaze/helper/pager.rb +1 -1
- data/spec/ramaze/helper/paginate.rb +1 -1
- data/spec/ramaze/helper/request_accessor.rb +1 -1
- data/spec/ramaze/helper/sequel_form.rb +1 -1
- data/spec/ramaze/helper/simple_captcha.rb +1 -1
- data/spec/ramaze/helper/stack.rb +1 -1
- data/spec/ramaze/helper/user.rb +1 -1
- data/spec/ramaze/params.rb +4 -5
- data/spec/ramaze/session/memcache.rb +66 -0
- data/spec/ramaze/view/erubis.rb +1 -1
- data/spec/ramaze/view/ezamar.rb +1 -1
- data/spec/ramaze/view/gestalt.rb +1 -1
- data/spec/ramaze/view/haml.rb +1 -1
- data/spec/ramaze/view/liquid.rb +1 -1
- data/spec/ramaze/view/nagoro.rb +1 -1
- data/spec/ramaze/view/redcloth.rb +1 -1
- data/spec/ramaze/view/remarkably.rb +1 -1
- data/spec/ramaze/view/sass.rb +1 -1
- data/spec/ramaze/view/tagz.rb +1 -1
- data/spec/ramaze/view/tenjin.rb +1 -1
- data/spec/ramaze/view.rb +1 -1
- data/tasks/changelog.rake +3 -1
- data/tasks/{gem_installer.rake → gem_setup.rake} +45 -22
- data/tasks/release.rake +6 -4
- data/tasks/setup.rake +3 -21
- data/tasks/todo.rake +2 -4
- metadata +164 -10
- data/CHANGELOG +0 -16918
- data/doc/tutorial/todolist.mkd +0 -787
- data/lib/ramaze/snippets/divide.rb +0 -22
- data/lib/ramaze/snippets/object/acquire.rb +0 -37
- data/spec/snippets/kernel/constant.rb +0 -23
- data/tasks/install_dependencies.rake +0 -6
@@ -1,22 +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
|
-
class String
|
5
|
-
# A convenient way to do File.join
|
6
|
-
# Usage:
|
7
|
-
# 'a' / 'b' # => 'a/b'
|
8
|
-
def / obj
|
9
|
-
Ramaze.deprecated('String#/', 'File::join')
|
10
|
-
File.join(self, obj.to_s)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
class Symbol
|
15
|
-
# A convenient way to do File.join
|
16
|
-
# Usage:
|
17
|
-
# :dir/:file # => 'dir/file'
|
18
|
-
def / obj
|
19
|
-
Ramaze.deprecated('Symbol#/', 'File::join(sym.to_s)')
|
20
|
-
self.to_s / obj
|
21
|
-
end
|
22
|
-
end
|
@@ -1,37 +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
|
-
# Require all .rb and .so files on the given globs, utilizes Dir::[].
|
12
|
-
#
|
13
|
-
# Examples:
|
14
|
-
# # Given following directory structure:
|
15
|
-
# # src/foo.rb
|
16
|
-
# # src/bar.so
|
17
|
-
# # src/foo.yaml
|
18
|
-
# # src/foobar/baz.rb
|
19
|
-
# # src/foobar/README
|
20
|
-
#
|
21
|
-
# # requires all files in 'src':
|
22
|
-
# acquire 'src/*'
|
23
|
-
#
|
24
|
-
# # requires all files in 'src' recursive:
|
25
|
-
# acquire 'src/**/*'
|
26
|
-
#
|
27
|
-
# # require 'src/foo.rb' and 'src/bar.so' and 'src/foobar/baz.rb'
|
28
|
-
# acquire 'src/*', 'src/foobar/*'
|
29
|
-
|
30
|
-
def acquire(*globs)
|
31
|
-
Ramaze.deprecated('Object#acquire', 'Ramaze::acquire')
|
32
|
-
Ramaze.acquire(*globs)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
end
|
37
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'lib/ramaze/spec/helper/snippets'
|
2
|
-
|
3
|
-
describe 'constant' do
|
4
|
-
it 'should load from string' do
|
5
|
-
constant('Fixnum').should == Fixnum
|
6
|
-
end
|
7
|
-
|
8
|
-
it 'should load from symbol' do
|
9
|
-
constant(:Fixnum).should == Fixnum
|
10
|
-
end
|
11
|
-
|
12
|
-
it 'should handle hierarchy' do
|
13
|
-
constant('Math::PI').should == Math::PI
|
14
|
-
end
|
15
|
-
|
16
|
-
it 'should be callable with explicit self' do
|
17
|
-
Math.constant('PI').should == Math::PI
|
18
|
-
end
|
19
|
-
|
20
|
-
it 'should be callable with explicit self' do
|
21
|
-
Math.constant('::Math').should == Math
|
22
|
-
end
|
23
|
-
end
|