renee-render 0.3.2 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/renee_render.rb +1 -1
- data/renee-render.gemspec +1 -1
- metadata +43 -43
data/lib/renee_render.rb
CHANGED
@@ -157,7 +157,7 @@ module Renee
|
|
157
157
|
def find_template(views, name, engine=nil)
|
158
158
|
lookup_ext = (engine || File.extname(name.to_s)[1..-1] || "*").to_s
|
159
159
|
base_name = name.to_s.chomp(".#{lookup_ext}")
|
160
|
-
file_path = Dir[File.
|
160
|
+
file_path = Dir[File.expand_path("#{base_name}.#{lookup_ext}", views)].first
|
161
161
|
engine ||= File.extname(file_path)[1..-1].to_sym if file_path
|
162
162
|
[file_path, engine]
|
163
163
|
end # find_template
|
data/renee-render.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_runtime_dependency 'rack', "~> 1.3.0"
|
22
22
|
s.add_runtime_dependency 'tilt', "~> 1.3.3"
|
23
23
|
s.add_runtime_dependency 'callsite', '~> 0.0.6'
|
24
|
-
s.add_runtime_dependency 'renee-core', "
|
24
|
+
s.add_runtime_dependency 'renee-core', "#{Renee::Core::VERSION}"
|
25
25
|
s.add_development_dependency 'minitest', "~> 2.6.1"
|
26
26
|
s.add_development_dependency 'rake'
|
27
27
|
s.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: renee-render
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 6
|
10
|
+
version: 0.3.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Hull
|
@@ -17,12 +17,10 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-
|
20
|
+
date: 2011-11-30 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
|
24
|
-
prerelease: false
|
25
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
24
|
none: false
|
27
25
|
requirements:
|
28
26
|
- - ~>
|
@@ -33,12 +31,12 @@ dependencies:
|
|
33
31
|
- 3
|
34
32
|
- 0
|
35
33
|
version: 1.3.0
|
34
|
+
requirement: *id001
|
36
35
|
type: :runtime
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: tilt
|
40
36
|
prerelease: false
|
41
|
-
|
37
|
+
name: rack
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
42
40
|
none: false
|
43
41
|
requirements:
|
44
42
|
- - ~>
|
@@ -49,12 +47,12 @@ dependencies:
|
|
49
47
|
- 3
|
50
48
|
- 3
|
51
49
|
version: 1.3.3
|
50
|
+
requirement: *id002
|
52
51
|
type: :runtime
|
53
|
-
version_requirements: *id002
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
name: callsite
|
56
52
|
prerelease: false
|
57
|
-
|
53
|
+
name: tilt
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
58
56
|
none: false
|
59
57
|
requirements:
|
60
58
|
- - ~>
|
@@ -65,28 +63,28 @@ dependencies:
|
|
65
63
|
- 0
|
66
64
|
- 6
|
67
65
|
version: 0.0.6
|
66
|
+
requirement: *id003
|
68
67
|
type: :runtime
|
69
|
-
version_requirements: *id003
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: renee-core
|
72
68
|
prerelease: false
|
73
|
-
|
69
|
+
name: callsite
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
74
72
|
none: false
|
75
73
|
requirements:
|
76
74
|
- - "="
|
77
75
|
- !ruby/object:Gem::Version
|
78
|
-
hash:
|
76
|
+
hash: 31
|
79
77
|
segments:
|
80
78
|
- 0
|
81
79
|
- 3
|
82
|
-
-
|
83
|
-
version: 0.3.
|
80
|
+
- 6
|
81
|
+
version: 0.3.6
|
82
|
+
requirement: *id004
|
84
83
|
type: :runtime
|
85
|
-
version_requirements: *id004
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
|
-
name: minitest
|
88
84
|
prerelease: false
|
89
|
-
|
85
|
+
name: renee-core
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
90
88
|
none: false
|
91
89
|
requirements:
|
92
90
|
- - ~>
|
@@ -97,12 +95,12 @@ dependencies:
|
|
97
95
|
- 6
|
98
96
|
- 1
|
99
97
|
version: 2.6.1
|
98
|
+
requirement: *id005
|
100
99
|
type: :development
|
101
|
-
version_requirements: *id005
|
102
|
-
- !ruby/object:Gem::Dependency
|
103
|
-
name: rake
|
104
100
|
prerelease: false
|
105
|
-
|
101
|
+
name: minitest
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
106
104
|
none: false
|
107
105
|
requirements:
|
108
106
|
- - ">="
|
@@ -111,12 +109,12 @@ dependencies:
|
|
111
109
|
segments:
|
112
110
|
- 0
|
113
111
|
version: "0"
|
112
|
+
requirement: *id006
|
114
113
|
type: :development
|
115
|
-
version_requirements: *id006
|
116
|
-
- !ruby/object:Gem::Dependency
|
117
|
-
name: bundler
|
118
114
|
prerelease: false
|
119
|
-
|
115
|
+
name: rake
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
120
118
|
none: false
|
121
119
|
requirements:
|
122
120
|
- - ">="
|
@@ -125,12 +123,12 @@ dependencies:
|
|
125
123
|
segments:
|
126
124
|
- 0
|
127
125
|
version: "0"
|
126
|
+
requirement: *id007
|
128
127
|
type: :development
|
129
|
-
version_requirements: *id007
|
130
|
-
- !ruby/object:Gem::Dependency
|
131
|
-
name: rack-test
|
132
128
|
prerelease: false
|
133
|
-
|
129
|
+
name: bundler
|
130
|
+
- !ruby/object:Gem::Dependency
|
131
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
134
132
|
none: false
|
135
133
|
requirements:
|
136
134
|
- - ">="
|
@@ -141,12 +139,12 @@ dependencies:
|
|
141
139
|
- 5
|
142
140
|
- 0
|
143
141
|
version: 0.5.0
|
142
|
+
requirement: *id008
|
144
143
|
type: :development
|
145
|
-
version_requirements: *id008
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: haml
|
148
144
|
prerelease: false
|
149
|
-
|
145
|
+
name: rack-test
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
150
148
|
none: false
|
151
149
|
requirements:
|
152
150
|
- - ">="
|
@@ -157,8 +155,10 @@ dependencies:
|
|
157
155
|
- 2
|
158
156
|
- 0
|
159
157
|
version: 2.2.0
|
158
|
+
requirement: *id009
|
160
159
|
type: :development
|
161
|
-
|
160
|
+
prerelease: false
|
161
|
+
name: haml
|
162
162
|
description: The super-friendly web framework rendering component.
|
163
163
|
email:
|
164
164
|
- joshbuddy@gmail.com
|