formula_eval 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -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.safe_instance_eval(method_str)
53
+ other = obj.to_wrapped.my_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)
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
- safe_instance_eval(fixed_formula).to_unwrapped
48
+ my_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")
@@ -117,3 +117,8 @@ class Object
117
117
  end
118
118
  end
119
119
 
120
+ class Object
121
+ def my_instance_eval(*args,&b)
122
+ instance_eval(*args,&b)
123
+ end
124
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mike Harris