formula_eval 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/formula_eval.rb +1 -1
- data/lib/formula_eval/multi_eval.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/formula_eval.rb
CHANGED
@@ -45,7 +45,7 @@ class FormulaEval
|
|
45
45
|
MultiEval.fix_str(formula)
|
46
46
|
end
|
47
47
|
def safe_eval_result
|
48
|
-
|
48
|
+
instance_eval(fixed_formula).to_unwrapped
|
49
49
|
rescue => exp
|
50
50
|
t = exp.backtrace.join("\n").gsub("/Users/mharris/.rvm/gems/ruby-1.9.1-p378/gems","gems").gsub("/Users/mharris/Code/smartlist/vendor/mongo_ui","mongo_ui")
|
51
51
|
t = t.gsub("/Users/mharris/Code/smartlist","smartlist")
|
@@ -50,7 +50,7 @@ class MultiEval
|
|
50
50
|
end
|
51
51
|
def self.get_nested(obj,method_str)
|
52
52
|
method_str = fix_str(method_str)
|
53
|
-
other = obj.to_wrapped.
|
53
|
+
other = obj.to_wrapped.instance_eval(method_str)
|
54
54
|
mylog 'get_nested', :obj => obj, :method_str => method_str, :other => other
|
55
55
|
arr = [other,obj]
|
56
56
|
new(:objs => arr)
|