rad_core 0.0.21 → 0.0.22

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 -2
  2. metadata +1 -1
@@ -18,7 +18,7 @@ class Rad::Template
18
18
  end
19
19
 
20
20
  def read tname, options = {}
21
- file = find_template(tname, options) || (puts(puts rad.template.paths.inspect) || raise("no template '#{tname}'!"))
21
+ file = find_template(tname, options) || raise("no template '#{tname}'!")
22
22
  File.read file
23
23
  end
24
24
 
@@ -31,7 +31,7 @@ class Rad::Template
31
31
  options[:file] ||
32
32
  find_template(options[:template], options.merge(scope)) ||
33
33
  (options[:if_not_exist] && find_template(options[:if_not_exist], options.merge(scope))) ||
34
- (puts(puts rad.template.paths.inspect) || raise("no template '#{options[:template]}'!"))
34
+ raise("no template '#{options[:template]}'!")
35
35
  )
36
36
 
37
37
  scope[:current_dir] = dirname(file)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rad_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: