rgviz-rails 0.40 → 0.41
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rgviz_rails/tqx.rb +3 -0
- data/rails/init.rb +4 -1
- metadata +4 -4
data/lib/rgviz_rails/tqx.rb
CHANGED
@@ -3,6 +3,8 @@ module Rgviz
|
|
3
3
|
def self.parse(tqx)
|
4
4
|
tqx ||= ''
|
5
5
|
pieces = tqx.split ';'
|
6
|
+
|
7
|
+
p pieces
|
6
8
|
|
7
9
|
map = {
|
8
10
|
'reqId' => '0',
|
@@ -13,6 +15,7 @@ module Rgviz
|
|
13
15
|
|
14
16
|
pieces.each do |p|
|
15
17
|
key_value = p.split ':'
|
18
|
+
p key_value
|
16
19
|
map[key_value[0]] = key_value[1] if key_value.length == 2
|
17
20
|
end
|
18
21
|
|
data/rails/init.rb
CHANGED
@@ -35,8 +35,11 @@ config.after_initialize do
|
|
35
35
|
original_render :text => Rgviz::HtmlRenderer.render(table)
|
36
36
|
when 'csv'
|
37
37
|
csv_output = Rgviz::CsvRenderer.render(table)
|
38
|
+
p "!!!"
|
39
|
+
p tqx
|
40
|
+
p tqx['outFileName']
|
38
41
|
if tqx['outFileName']
|
39
|
-
send_data csv_output, :filename => outFileName, :type => 'text/csv'
|
42
|
+
send_data csv_output, :filename => tqx['outFileName'], :type => 'text/csv'
|
40
43
|
else
|
41
44
|
original_render :text => csv_output
|
42
45
|
end
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rgviz-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 89
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 41
|
9
|
+
version: "0.41"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ary Borenszweig
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-08-
|
17
|
+
date: 2010-08-26 00:00:00 -03:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|