old_sql 0.8.0 → 0.9.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.
|
@@ -160,11 +160,12 @@ module OldSql
|
|
|
160
160
|
field_num+=1
|
|
161
161
|
end
|
|
162
162
|
|
|
163
|
-
@fields.to_json
|
|
163
|
+
@fields.to_json.html_safe
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
def jqgrid_col_names
|
|
167
|
-
@reports[@report_name]['fields'].to_json
|
|
167
|
+
json = @reports[@report_name]['fields'].to_json
|
|
168
|
+
json.html_safe
|
|
168
169
|
end
|
|
169
170
|
|
|
170
171
|
def query_vars report
|
|
@@ -9,11 +9,8 @@ jQuery(document).ready(function(){
|
|
|
9
9
|
url:"http://<%=@host%>:<%=@port%>/sql/reports/query.json/?report=<%=@report_name%>&report_sql=<%=@report_sql%>&generation=<%=@generation%>&start_date=<%=@start_date%>&end_date=<%=@end_date%>",
|
|
10
10
|
datatype: "json",
|
|
11
11
|
pager: false,
|
|
12
|
-
colNames:
|
|
13
|
-
colModel:
|
|
14
|
-
{name:'id',index:'id', width:55},
|
|
15
|
-
{name:'name',index:'name', width:100}
|
|
16
|
-
],
|
|
12
|
+
colNames: <%=jqgrid_col_names%>,
|
|
13
|
+
colModel: <%=jqgrid_col_model%>,
|
|
17
14
|
rowNum:25,
|
|
18
15
|
rowList:[10,20,30],
|
|
19
16
|
width: 777,
|
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.9.0
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Eddie Gonzales
|
|
@@ -159,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
159
159
|
requirements:
|
|
160
160
|
- - ">="
|
|
161
161
|
- !ruby/object:Gem::Version
|
|
162
|
-
hash:
|
|
162
|
+
hash: -772255520100120061
|
|
163
163
|
segments:
|
|
164
164
|
- 0
|
|
165
165
|
version: "0"
|