uzuuzu-core 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/uzuuzu-core/helper/renderer.rb +5 -3
- data/uzuuzu-core.gemspec +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
@@ -28,10 +28,12 @@ module UzuUzu
|
|
28
28
|
def render(view, options={}, locals={}, &block)
|
29
29
|
view_path = nil
|
30
30
|
catch(:view_finded) do
|
31
|
+
_view_path = "#{application.view_root}#{view}" if view[0] == '/'
|
32
|
+
_view_path ||= "#{application.view_root}#{helper.route}/#{view}"
|
31
33
|
::Tilt.mappings.each_key do |key|
|
32
|
-
|
33
|
-
if ::File.file?(
|
34
|
-
view_path =
|
34
|
+
_path = "#{_view_path}.#{key}"
|
35
|
+
if ::File.file?(_path)
|
36
|
+
view_path = _path
|
35
37
|
throw :view_finded
|
36
38
|
end
|
37
39
|
end
|
data/uzuuzu-core.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{uzuuzu-core}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Takuya Kondo"]
|
12
|
-
s.date = %q{2011-12-
|
12
|
+
s.date = %q{2011-12-25}
|
13
13
|
s.description = %q{uzuuzu core library}
|
14
14
|
s.email = %q{takuya_v_v@uzuuzu.jp}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: uzuuzu-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Takuya Kondo
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-12-
|
13
|
+
date: 2011-12-25 00:00:00 +09:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -196,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
196
196
|
requirements:
|
197
197
|
- - ">="
|
198
198
|
- !ruby/object:Gem::Version
|
199
|
-
hash:
|
199
|
+
hash: 4358867638685412053
|
200
200
|
segments:
|
201
201
|
- 0
|
202
202
|
version: "0"
|