rad_core 0.0.20 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rad/template/_template.rb +2 -3
  2. metadata +20 -20
@@ -18,12 +18,11 @@ class Rad::Template
18
18
  end
19
19
 
20
20
  def read tname, options = {}
21
- file = find_template(tname, options) || raise("no template '#{tname}'!")
21
+ file = find_template(tname, options) || (puts(puts rad.template.paths.inspect) || raise("no template '#{tname}'!"))
22
22
  File.read file
23
23
  end
24
24
 
25
25
  def basic_render options, &block
26
- puts rad.template.paths
27
26
  with_context options do |context|
28
27
  context.content_block ||= block
29
28
 
@@ -32,7 +31,7 @@ class Rad::Template
32
31
  options[:file] ||
33
32
  find_template(options[:template], options.merge(scope)) ||
34
33
  (options[:if_not_exist] && find_template(options[:if_not_exist], options.merge(scope))) ||
35
- raise("no template '#{options[:template]}'!")
34
+ (puts(puts rad.template.paths.inspect) || raise("no template '#{options[:template]}'!"))
36
35
  )
37
36
 
38
37
  scope[:current_dir] = dirname(file)
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rad_core
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.0.21
4
5
  prerelease:
5
- version: 0.0.20
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alexey Petrushin
@@ -15,7 +15,6 @@ default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
18
- prerelease: false
19
18
  requirement: &id001 !ruby/object:Gem::Requirement
20
19
  none: false
21
20
  requirements:
@@ -23,10 +22,10 @@ dependencies:
23
22
  - !ruby/object:Gem::Version
24
23
  version: 0.5.0
25
24
  type: :runtime
25
+ prerelease: false
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: treetop
29
- prerelease: false
30
29
  requirement: &id002 !ruby/object:Gem::Requirement
31
30
  none: false
32
31
  requirements:
@@ -34,10 +33,10 @@ dependencies:
34
33
  - !ruby/object:Gem::Version
35
34
  version: 1.4.9
36
35
  type: :runtime
36
+ prerelease: false
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: polyglot
40
- prerelease: false
41
40
  requirement: &id003 !ruby/object:Gem::Requirement
42
41
  none: false
43
42
  requirements:
@@ -45,10 +44,10 @@ dependencies:
45
44
  - !ruby/object:Gem::Version
46
45
  version: 0.3.1
47
46
  type: :runtime
47
+ prerelease: false
48
48
  version_requirements: *id003
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: mime-types
51
- prerelease: false
52
51
  requirement: &id004 !ruby/object:Gem::Requirement
53
52
  none: false
54
53
  requirements:
@@ -56,10 +55,10 @@ dependencies:
56
55
  - !ruby/object:Gem::Version
57
56
  version: "1.16"
58
57
  type: :runtime
58
+ prerelease: false
59
59
  version_requirements: *id004
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: activesupport
62
- prerelease: false
63
62
  requirement: &id005 !ruby/object:Gem::Requirement
64
63
  none: false
65
64
  requirements:
@@ -67,10 +66,10 @@ dependencies:
67
66
  - !ruby/object:Gem::Version
68
67
  version: 3.0.7
69
68
  type: :runtime
69
+ prerelease: false
70
70
  version_requirements: *id005
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: builder
73
- prerelease: false
74
73
  requirement: &id006 !ruby/object:Gem::Requirement
75
74
  none: false
76
75
  requirements:
@@ -78,10 +77,10 @@ dependencies:
78
77
  - !ruby/object:Gem::Version
79
78
  version: 2.1.2
80
79
  type: :runtime
80
+ prerelease: false
81
81
  version_requirements: *id006
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: haml
84
- prerelease: false
85
84
  requirement: &id007 !ruby/object:Gem::Requirement
86
85
  none: false
87
86
  requirements:
@@ -89,10 +88,10 @@ dependencies:
89
88
  - !ruby/object:Gem::Version
90
89
  version: 3.0.25
91
90
  type: :runtime
91
+ prerelease: false
92
92
  version_requirements: *id007
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: tilt
95
- prerelease: false
96
95
  requirement: &id008 !ruby/object:Gem::Requirement
97
96
  none: false
98
97
  requirements:
@@ -100,10 +99,10 @@ dependencies:
100
99
  - !ruby/object:Gem::Version
101
100
  version: 1.2.1
102
101
  type: :runtime
102
+ prerelease: false
103
103
  version_requirements: *id008
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: json
106
- prerelease: false
107
106
  requirement: &id009 !ruby/object:Gem::Requirement
108
107
  none: false
109
108
  requirements:
@@ -111,10 +110,10 @@ dependencies:
111
110
  - !ruby/object:Gem::Version
112
111
  version: 1.4.6
113
112
  type: :runtime
113
+ prerelease: false
114
114
  version_requirements: *id009
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: addressable
117
- prerelease: false
118
117
  requirement: &id010 !ruby/object:Gem::Requirement
119
118
  none: false
120
119
  requirements:
@@ -122,10 +121,10 @@ dependencies:
122
121
  - !ruby/object:Gem::Version
123
122
  version: 2.2.2
124
123
  type: :runtime
124
+ prerelease: false
125
125
  version_requirements: *id010
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: nokogiri
128
- prerelease: false
129
128
  requirement: &id011 !ruby/object:Gem::Requirement
130
129
  none: false
131
130
  requirements:
@@ -133,10 +132,10 @@ dependencies:
133
132
  - !ruby/object:Gem::Version
134
133
  version: 1.4.4
135
134
  type: :runtime
135
+ prerelease: false
136
136
  version_requirements: *id011
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: dictionary
139
- prerelease: false
140
139
  requirement: &id012 !ruby/object:Gem::Requirement
141
140
  none: false
142
141
  requirements:
@@ -144,10 +143,10 @@ dependencies:
144
143
  - !ruby/object:Gem::Version
145
144
  version: 1.0.0
146
145
  type: :runtime
146
+ prerelease: false
147
147
  version_requirements: *id012
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: rack
150
- prerelease: false
151
150
  requirement: &id013 !ruby/object:Gem::Requirement
152
151
  none: false
153
152
  requirements:
@@ -155,10 +154,10 @@ dependencies:
155
154
  - !ruby/object:Gem::Version
156
155
  version: 1.3.0
157
156
  type: :runtime
157
+ prerelease: false
158
158
  version_requirements: *id013
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: thin
161
- prerelease: false
162
161
  requirement: &id014 !ruby/object:Gem::Requirement
163
162
  none: false
164
163
  requirements:
@@ -166,10 +165,10 @@ dependencies:
166
165
  - !ruby/object:Gem::Version
167
166
  version: 1.2.7
168
167
  type: :runtime
168
+ prerelease: false
169
169
  version_requirements: *id014
170
170
  - !ruby/object:Gem::Dependency
171
171
  name: mail
172
- prerelease: false
173
172
  requirement: &id015 !ruby/object:Gem::Requirement
174
173
  none: false
175
174
  requirements:
@@ -177,10 +176,10 @@ dependencies:
177
176
  - !ruby/object:Gem::Version
178
177
  version: 2.2.14
179
178
  type: :runtime
179
+ prerelease: false
180
180
  version_requirements: *id015
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: ruby_ext
183
- prerelease: false
184
183
  requirement: &id016 !ruby/object:Gem::Requirement
185
184
  none: false
186
185
  requirements:
@@ -188,10 +187,10 @@ dependencies:
188
187
  - !ruby/object:Gem::Version
189
188
  version: "0"
190
189
  type: :runtime
190
+ prerelease: false
191
191
  version_requirements: *id016
192
192
  - !ruby/object:Gem::Dependency
193
193
  name: vfs
194
- prerelease: false
195
194
  requirement: &id017 !ruby/object:Gem::Requirement
196
195
  none: false
197
196
  requirements:
@@ -199,10 +198,10 @@ dependencies:
199
198
  - !ruby/object:Gem::Version
200
199
  version: "0"
201
200
  type: :runtime
201
+ prerelease: false
202
202
  version_requirements: *id017
203
203
  - !ruby/object:Gem::Dependency
204
204
  name: micon
205
- prerelease: false
206
205
  requirement: &id018 !ruby/object:Gem::Requirement
207
206
  none: false
208
207
  requirements:
@@ -210,10 +209,10 @@ dependencies:
210
209
  - !ruby/object:Gem::Version
211
210
  version: "0"
212
211
  type: :runtime
212
+ prerelease: false
213
213
  version_requirements: *id018
214
214
  - !ruby/object:Gem::Dependency
215
215
  name: class_loader
216
- prerelease: false
217
216
  requirement: &id019 !ruby/object:Gem::Requirement
218
217
  none: false
219
218
  requirements:
@@ -221,6 +220,7 @@ dependencies:
221
220
  - !ruby/object:Gem::Version
222
221
  version: "0"
223
222
  type: :runtime
223
+ prerelease: false
224
224
  version_requirements: *id019
225
225
  description:
226
226
  email: