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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20b85797472c4d0d85b917de1050c4d3172a4a351c321c56713c40827a658917
4
- data.tar.gz: 50a0b34b93960e3ec2119a57e56bcc378d5a76db8df86b67db49ec2c7caebff7
3
+ metadata.gz: 24ed2c70edf15bae48775f619ff637bfa3db00239852fbaf79c8a667b26a961e
4
+ data.tar.gz: 6d0d28395c191a6a7608bc5f563a66d5105cedd072598938056feb9183c64343
5
5
  SHA512:
6
- metadata.gz: e999146f1fe9950dd1b6950edd1a9ab23271da7e9d04d4430aab88b9bf6330eed013dcb11ff93270c0825f0e87580f803ea50fe4cbe358194c48183b1685da8c
7
- data.tar.gz: '077648a8ef6f0e8260a01dc8a0bdeb23c473d7e6006414acf4d253d36184da8e40d76182a4a97725eafa359ab289bf9241b7baf2b13bc76dd4a2302fb72dd8c7'
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 = Rails.cache.fetch('jarvis_teams') { get_teams } if Blazer.settings.key?('teams')
344
- @assignees = Rails.cache.fetch('jarvis_assignees') { get_assignees } if Blazer.settings.key?('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
@@ -1,3 +1,3 @@
1
1
  module Blazer
2
- VERSION = '2.1.3'
2
+ VERSION = '2.1.4'
3
3
  end
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.3
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: 2019-12-09 00:00:00.000000000 Z
11
+ date: 2020-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties