old_sql 1.25.0 → 1.26.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -157,7 +157,7 @@ Optionally create a CSV DESIGN file under config/old_sql/report_design:
157
157
  # Tabs or spaces can optionally be used between "cells" for
158
158
  # ease of reading.
159
159
  #
160
- # All uppercase Labels are bolded and converted to capitalized
160
+ # All uppercase labels are bolded and converted to capitalized
161
161
  # words for the jqgrid, and HTML table report views.
162
162
 
163
163
  id, name
@@ -18,9 +18,9 @@
18
18
  # Tabs or spaces can optionally be used between "cells" for
19
19
  # ease of reading.
20
20
  #
21
- # All uppercase Labels are bolded and converted to capitalized
21
+ # All uppercase labels are bolded and converted to capitalized
22
22
  # words for the jqgrid, and HTML table report views.
23
-
23
+ #
24
24
  id, name
25
25
  "EXAMPLE MATH OPERATION", id + id
26
26
  "Totals", "..."
@@ -28,4 +28,11 @@ id, name
28
28
  "Divide by Zero 1", 0 / 0
29
29
  "Divide by Zero 2", 1.0 / 0
30
30
  "Divide by Zero 3", 0.0 / 0.0
31
- "Rounding", 200.0 / 43.0
31
+ "Rounding", 200.0 / 43.0
32
+
33
+ #Spreadsheet Test Data,,
34
+ #,Total, 200
35
+ #,Foo, 35
36
+ #,,
37
+ #,Foo / Total,
38
+ #,=C28 / C29,
@@ -1,3 +1,5 @@
1
+ require 'cgi'
2
+
1
3
  module OldSql
2
4
  class ShellReportFacade
3
5
  def self.run_report(report, env, start_date, end_date, clean)
@@ -9,9 +11,8 @@ module OldSql
9
11
  set_connection(env)
10
12
 
11
13
  base_parser = OldSql::ReportProcessor::Base.new
12
- data = base_parser.execute_query(report_config['report_sql'],start_date,end_date,nil,
13
- report_config['report_design'],report_config['report_processor'])
14
-
14
+ data = base_parser.execute_query(report_config,start_date,end_date,nil)
15
+
15
16
  print_header(report, start_date, end_date, clean)
16
17
  print_data(data, report_config['fields'], clean)
17
18
  print_footer(clean)
@@ -39,7 +40,7 @@ module OldSql
39
40
  first = true
40
41
  row[:cell].each do |cell|
41
42
  line << ", " if !first
42
- line << cell.to_s
43
+ line << OldSql.strip_html(cell.to_s).gsub("\n","")
43
44
  first = false
44
45
  end
45
46
  puts line
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: old_sql
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.25.0
5
+ version: 1.26.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Eddie Gonzales
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-22 00:00:00 Z
13
+ date: 2011-06-24 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: devise
@@ -195,7 +195,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
196
  - - ">="
197
197
  - !ruby/object:Gem::Version
198
- hash: -1326309612636495588
198
+ hash: 2228815052729082356
199
199
  segments:
200
200
  - 0
201
201
  version: "0"