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 +4 -4
- data/lib/keycard/railtie.rb +1 -2
- data/lib/keycard/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: 11ebd7d6befe9108e42fc03665fad56c487e24d7ae043a3c75ebee3a065cb3da
|
4
|
+
data.tar.gz: 3ef4f849ece815de42e85cafe7ce1173493753716ea7cfb481ef41cab7429cad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84c21531e967ff071a7655df6eefe68691609e08bee68b86c1984d85dce0e5bdf615b57fd6668d406dd91d5a5422d86de04582c1b90088a145da44b6a1d78eb6
|
7
|
+
data.tar.gz: fa8d79a2976c0400cb34407237ce9311f5c01556357a021ecf200587d3bb6003a850b9f1addba939bf0578ad7cad19b6cf38bc5c37f0aef0238a8691a4b9208a
|
data/lib/keycard/railtie.rb
CHANGED
@@ -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
|
data/lib/keycard/version.rb
CHANGED
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.
|
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
|
+
date: 2018-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sequel
|