old_sql 0.58.0 → 0.59.0
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/lib/old_sql/report_processor/base.rb +6 -1
- metadata +2 -2
@@ -110,16 +110,21 @@ module OldSql
|
|
110
110
|
def eval_expression expression
|
111
111
|
result = "0.0"
|
112
112
|
begin
|
113
|
+
Rails.logger.debug "Evalutating Expression: #{expression}"
|
113
114
|
result = eval(expression)
|
115
|
+
Rails.logger.debug "EXPR RESULT #{result.to_s}"
|
116
|
+
Rails.logger.debug "result.to_s!='NaN' #{result.to_s!="NaN"}"
|
114
117
|
if result.to_s!="Infinity" && result.to_s!="NaN"
|
115
118
|
return result
|
116
119
|
end
|
117
120
|
rescue ZeroDivisionError => e
|
118
|
-
Rails.logger.
|
121
|
+
Rails.logger.error e
|
119
122
|
rescue Exception => e
|
120
123
|
Rails.logger.error e
|
121
124
|
end
|
122
125
|
|
126
|
+
Rails.logger.debug "Result of the expression: #{result}"
|
127
|
+
|
123
128
|
result
|
124
129
|
end
|
125
130
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: old_sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.59.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Eddie Gonzales
|
@@ -200,7 +200,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
200
|
requirements:
|
201
201
|
- - ">="
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
hash: -
|
203
|
+
hash: -3171290650995985539
|
204
204
|
segments:
|
205
205
|
- 0
|
206
206
|
version: "0"
|