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.
- data/lib/command.rb +7 -1
- data/lib/spec.json +1 -1
- 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
|
-
|
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.
|
1
|
+
{"name":"dev_tasks","version":"1.0.23"}
|