keycard 0.2.2 → 0.2.3

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: 44107d557e8b5860166f61de850f6456640fc115d29e9244e106c8bd340a8659
4
- data.tar.gz: 6b6d0c6770289a5f1bbd53eca870fc16e9cbeba367d47f5e451acaf56ac1e036
3
+ metadata.gz: 11ebd7d6befe9108e42fc03665fad56c487e24d7ae043a3c75ebee3a065cb3da
4
+ data.tar.gz: 3ef4f849ece815de42e85cafe7ce1173493753716ea7cfb481ef41cab7429cad
5
5
  SHA512:
6
- metadata.gz: 62792b7625728352a661ac11a4f2e3b1ed4235ea38b1c313058628ceb6148cdffa3dc3dd957008a6555016fece8adea74078741b44e9e6a2baa36d0cda7f504a
7
- data.tar.gz: 2dcff038ee1c588570593e9a1c7ce30dae473ee2fcf43f289c6df03ceb0d00354692240087f3681a61d81c63176675a74578253f5f40d15d7ac4cb834a5deb8a
6
+ metadata.gz: 84c21531e967ff071a7655df6eefe68691609e08bee68b86c1984d85dce0e5bdf615b57fd6668d406dd91d5a5422d86de04582c1b90088a145da44b6a1d78eb6
7
+ data.tar.gz: fa8d79a2976c0400cb34407237ce9311f5c01556357a021ecf200587d3bb6003a850b9f1addba939bf0578ad7cad19b6cf38bc5c37f0aef0238a8691a4b9208a
@@ -70,8 +70,6 @@ class Keycard::Railtie < Rails::Railtie
70
70
  config[:opts] = { adapter: 'sqlite', database: "db/keycard_development.sqlite3" }
71
71
  when "test"
72
72
  config[:opts] = { adapter: 'sqlite' }
73
- else
74
- raise "Keycard::DB.config must be configured"
75
73
  end
76
74
  end
77
75
 
@@ -83,6 +81,7 @@ class Keycard::Railtie < Rails::Railtie
83
81
  # This runs after everything in 'config/initializers' runs.
84
82
  initializer "keycard.after_initializers", after: :load_config_initializers do
85
83
  config = Keycard::DB.config
84
+ raise "Keycard::DB.config must be configured" unless config.url || config.opts
86
85
  self.class.after_blocks.each do |block|
87
86
  block.call(config.to_h)
88
87
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Keycard
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Botimer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-07-12 00:00:00.000000000 Z
12
+ date: 2018-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel