sql-jarvis 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/blazer/Sortable.js +1489 -1489
- data/app/assets/javascripts/blazer/ace.js +2 -0
- data/app/assets/javascripts/blazer/ace/mode-ruby.js +498 -0
- data/app/assets/javascripts/blazer/ace/theme-ambiance.js +184 -0
- data/app/assets/javascripts/blazer/stupidtable.js +2 -0
- data/app/assets/stylesheets/blazer/application.css +2 -2
- data/app/controllers/blazer/base_controller.rb +11 -2
- data/app/controllers/blazer/queries_controller.rb +157 -146
- data/app/models/blazer/query.rb +9 -0
- data/app/views/blazer/_variables.html.haml +3 -4
- data/app/views/blazer/queries/_chart.html.haml +52 -0
- data/app/views/blazer/queries/_form.html.haml +45 -12
- data/app/views/blazer/queries/run.html.haml +15 -53
- data/app/views/blazer/queries/show.html.haml +48 -25
- data/app/views/layouts/blazer/application.html.haml +1 -1
- data/lib/blazer.rb +9 -0
- data/lib/blazer/adapters/sql_adapter.rb +3 -3
- data/lib/blazer/data_source.rb +4 -0
- data/lib/blazer/excel_parser.rb +1 -1
- data/lib/blazer/run_integration.rb +24 -0
- data/lib/blazer/version.rb +1 -1
- data/lib/generators/blazer/templates/config.yml.tt +1 -0
- data/lib/generators/blazer/templates/install.rb.tt +2 -0
- metadata +7 -4
data/lib/blazer/data_source.rb
CHANGED
data/lib/blazer/excel_parser.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
module Blazer
|
2
|
+
class RunIntegration
|
3
|
+
|
4
|
+
def initialize(results, integration)
|
5
|
+
@results = results
|
6
|
+
@integration = integration
|
7
|
+
end
|
8
|
+
|
9
|
+
def call
|
10
|
+
return if integration.blank?
|
11
|
+
eval integration
|
12
|
+
return {
|
13
|
+
headers: @headers,
|
14
|
+
rows: @rows
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
attr_reader :results
|
21
|
+
attr_reader :integration
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
data/lib/blazer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sql-jarvis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -171,9 +171,11 @@ files:
|
|
171
171
|
- app/assets/javascripts/blazer/ace.js
|
172
172
|
- app/assets/javascripts/blazer/ace/ace.js
|
173
173
|
- app/assets/javascripts/blazer/ace/ext-language_tools.js
|
174
|
+
- app/assets/javascripts/blazer/ace/mode-ruby.js
|
174
175
|
- app/assets/javascripts/blazer/ace/mode-sql.js
|
175
176
|
- app/assets/javascripts/blazer/ace/snippets/sql.js
|
176
177
|
- app/assets/javascripts/blazer/ace/snippets/text.js
|
178
|
+
- app/assets/javascripts/blazer/ace/theme-ambiance.js
|
177
179
|
- app/assets/javascripts/blazer/ace/theme-twilight.js
|
178
180
|
- app/assets/javascripts/blazer/application.js
|
179
181
|
- app/assets/javascripts/blazer/bootstrap.js
|
@@ -227,6 +229,7 @@ files:
|
|
227
229
|
- app/views/blazer/dashboards/edit.html.haml
|
228
230
|
- app/views/blazer/dashboards/new.html.haml
|
229
231
|
- app/views/blazer/dashboards/show.html.haml
|
232
|
+
- app/views/blazer/queries/_chart.html.haml
|
230
233
|
- app/views/blazer/queries/_form.html.haml
|
231
234
|
- app/views/blazer/queries/_tips.html.haml
|
232
235
|
- app/views/blazer/queries/docs.html.haml
|
@@ -255,6 +258,7 @@ files:
|
|
255
258
|
- lib/blazer/engine.rb
|
256
259
|
- lib/blazer/excel_parser.rb
|
257
260
|
- lib/blazer/result.rb
|
261
|
+
- lib/blazer/run_integration.rb
|
258
262
|
- lib/blazer/run_statement.rb
|
259
263
|
- lib/blazer/run_statement_job.rb
|
260
264
|
- lib/blazer/version.rb
|
@@ -281,8 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
281
285
|
- !ruby/object:Gem::Version
|
282
286
|
version: '0'
|
283
287
|
requirements: []
|
284
|
-
|
285
|
-
rubygems_version: 2.7.10
|
288
|
+
rubygems_version: 3.0.6
|
286
289
|
signing_key:
|
287
290
|
specification_version: 4
|
288
291
|
summary: Fork from ankane! Explore your data with SQL. Easily create charts and dashboards,
|