sql-jarvis 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/blazer/queries_controller.rb +4 -2
- data/lib/blazer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24ed2c70edf15bae48775f619ff637bfa3db00239852fbaf79c8a667b26a961e
|
4
|
+
data.tar.gz: 6d0d28395c191a6a7608bc5f563a66d5105cedd072598938056feb9183c64343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b065819fc2940e99088611839aa3e8bb3e985e814d4f7a4abdad7076bf162ba1af07e3c7f0c84b3e7925a201e7834340b72137bfdafdc84b0e87c68c9f8e80
|
7
|
+
data.tar.gz: f820f5fee92e60340df80180829565f8dfc1df8415c2375842c5a834a0bbbe7abbb420936179682314ad9f094ade304fea39a46bc47b089afc1e5efe36d7bd02
|
@@ -340,14 +340,15 @@ module Blazer
|
|
340
340
|
end
|
341
341
|
|
342
342
|
def set_accessible
|
343
|
-
@teams =
|
344
|
-
@assignees
|
343
|
+
@teams = get_teams
|
344
|
+
@assignees ||= get_assignees
|
345
345
|
ensure
|
346
346
|
@teams ||= []
|
347
347
|
@assignees ||= []
|
348
348
|
end
|
349
349
|
|
350
350
|
def get_assignees
|
351
|
+
return [] unless Blazer.settings.key?('assignees')
|
351
352
|
Blazer::RunStatement.new.perform(@data_source, Blazer.settings['assignees'], {}).rows.map do |row|
|
352
353
|
[row.first, row.last.to_s.titleize]
|
353
354
|
end
|
@@ -356,6 +357,7 @@ module Blazer
|
|
356
357
|
end
|
357
358
|
|
358
359
|
def get_teams
|
360
|
+
return [] unless Blazer.settings.key?('teams')
|
359
361
|
Blazer::RunStatement.new.perform(@data_source, Blazer.settings['teams'], {}).rows.map do |row|
|
360
362
|
[row.first, row.last.to_s.titleize]
|
361
363
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|