postgressor 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/postgressor/cli.rb +2 -2
- data/lib/postgressor/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: 5a2d8a1e70bf75a1d8f52df2cb569f8ef2f7680ae8adc242c4f424cb926390dc
|
4
|
+
data.tar.gz: 354890004f23aaf192ca65c158acdf96b872cad6234d7d314a43113aaf7889b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2abea7a328183e62722c6711e4a3451cea559a3e4b578c18f9632fc83cb41731f9241c65a9a28e15913318dc38668710e4257900bff3c32722285ee8cec13d9a
|
7
|
+
data.tar.gz: 2a06ce9f7148491dc6e714a98d36384049f4d3f07ca5274b67aee035a14d61a6c4939d10a1cd0ffa975c9f6c20a6f5036ab3b2963c6261daf5b2abf42762cd15
|
data/lib/postgressor/cli.rb
CHANGED
@@ -155,7 +155,7 @@ module Postgressor
|
|
155
155
|
|
156
156
|
def preload_from_database_url(url)
|
157
157
|
uri = URI.parse(url)
|
158
|
-
raise "DB adapter is not postgres"
|
158
|
+
raise "DB adapter is not postgres" unless uri.scheme.include?("postgres")
|
159
159
|
|
160
160
|
@conf = {
|
161
161
|
url: url,
|
@@ -168,7 +168,7 @@ module Postgressor
|
|
168
168
|
end
|
169
169
|
|
170
170
|
def preload_from_database_yml(config)
|
171
|
-
raise "DB adapter is not postgres"
|
171
|
+
raise "DB adapter is not postgres" unless config["adapter"].include?("postgres")
|
172
172
|
|
173
173
|
@conf = {
|
174
174
|
url: nil,
|
data/lib/postgressor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: postgressor
|
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
|
- Victor Afanasev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|