yampla 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/yampla/build.rb +6 -1
- data/lib/yampla/version.rb +1 -1
- metadata +1 -1
data/lib/yampla/build.rb
CHANGED
@@ -72,6 +72,11 @@ class Yampla::Build
|
|
72
72
|
def parse_template(template)
|
73
73
|
File.read(template).tap { @extname = File.extname(template)[1..-1] }
|
74
74
|
rescue Errno::ENOENT
|
75
|
-
|
75
|
+
#:FIXME: but impl!
|
76
|
+
if template.match(/^\w{1,20}\.\w{1,8}$/) #match only filename but string
|
77
|
+
raise Errno::ENOENT
|
78
|
+
else
|
79
|
+
template
|
80
|
+
end
|
76
81
|
end
|
77
82
|
end
|
data/lib/yampla/version.rb
CHANGED