yampla 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- return template if template.match(/.+?\.[^.]*$/)
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
@@ -1,3 +1,3 @@
1
1
  module Yampla
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yampla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: