wait_pg 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/wait_pg +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c358af783d7c643ac4074597b132c37c889819d7b8ec0c0a2fb8050be1b3f7a
|
4
|
+
data.tar.gz: 85487ea70ccd88851288223428c11fc2e520939e9d6584091e8cc13d3e80a191
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b2d7b51ecfd50049ca6566ebe5ce66f5691163d524ae830e25023191cb58fb6808e82fa5ad5225341e0f604c6db5ac6ee629aeb2c076d673161761632fd97f6
|
7
|
+
data.tar.gz: d89fff8222a758a45ce2eec2cf526aa73c7fc8c884867c14128451846866f87694df1a42c24213f3467c8daa8a57269b77d0cd8fb355d04b3bed653d7e090e64
|
data/bin/wait_pg
CHANGED
@@ -13,7 +13,7 @@ def connection_options
|
|
13
13
|
yaml = YAML.load(ERB.new(File.read(path)).result)[rails_env]
|
14
14
|
|
15
15
|
# Active Record uses it as a default
|
16
|
-
return ENV['DATABASE_URL'] unless yaml&.
|
16
|
+
return ENV['DATABASE_URL'] unless yaml&.present?
|
17
17
|
|
18
18
|
# Set the default adapter (for cases like PostGIS)
|
19
19
|
config = yaml['url'].sub(/^.*:\/\//, 'postgres://')
|