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.
@@ -37,6 +37,10 @@ module Blazer
37
37
  settings["variable_defaults"] || {}
38
38
  end
39
39
 
40
+ def select_all_variables
41
+ settings["select_all_variables"] || {}
42
+ end
43
+
40
44
  def timeout
41
45
  settings["timeout"]
42
46
  end
@@ -31,7 +31,7 @@ module Blazer
31
31
  end
32
32
 
33
33
  def save_file!
34
- tmp_file = "tmp/#{filename}"
34
+ tmp_file = Tempfile.new(filename).path
35
35
  excel.serialize(tmp_file)
36
36
  return tmp_file
37
37
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Blazer
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
@@ -61,6 +61,7 @@ audit: true
61
61
  # mapbox_access_token: <%= ENV["MAPBOX_ACCESS_TOKEN"] %>
62
62
 
63
63
  # assignees: 'SELECT id, name FROM users ORDER BY id ASC'
64
+ # teams: 'SELECT id, name FROM teams'
64
65
 
65
66
  check_schedules:
66
67
  - "1 day"
@@ -7,6 +7,8 @@ class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version
7
7
  t.text :statement
8
8
  t.string :data_source
9
9
  t.string :assignee_ids
10
+ t.string :team_ids
11
+ t.text :integration
10
12
  t.timestamps null: false
11
13
  end
12
14
 
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.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-08-27 00:00:00.000000000 Z
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
- rubyforge_project:
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,