dev_tasks 1.0.22 → 1.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/command.rb +7 -1
  2. data/lib/spec.json +1 -1
  3. metadata +1 -1
data/lib/command.rb CHANGED
@@ -33,7 +33,13 @@ class Command < Hash
33
33
  timer=Timer.new
34
34
  if self[:input].include?('<%') && self[:input].include?('%>')
35
35
  ruby = self[:input].gsub("<%","").gsub("%>","")
36
- self[:output]=eval(ruby)
36
+
37
+ begin
38
+ self[:output]=eval(ruby)
39
+ rescue
40
+ raise "unable to eval(#{ruby})"
41
+ end
42
+
37
43
  #puts " " + timer.elapsed_str
38
44
  self[:elapsed] = timer.elapsed_str
39
45
  self[:end_time] = Time.now
data/lib/spec.json CHANGED
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"1.0.22"}
1
+ {"name":"dev_tasks","version":"1.0.23"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.22
4
+ version: 1.0.23
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: