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 CHANGED
@@ -1 +1 @@
1
- 0.1.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
- my_instance_eval(fixed_formula).to_unwrapped
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.my_instance_eval(method_str)
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)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mike Harris