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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a3178829386271597f52e90aa549cac65a04be89049d8f13f4190b291f435cd
4
- data.tar.gz: f17adebeb00e6a0a5d667aff4b9f7233042ea3425c5dac69b7240fb0ba18d89d
3
+ metadata.gz: 5a2d8a1e70bf75a1d8f52df2cb569f8ef2f7680ae8adc242c4f424cb926390dc
4
+ data.tar.gz: 354890004f23aaf192ca65c158acdf96b872cad6234d7d314a43113aaf7889b5
5
5
  SHA512:
6
- metadata.gz: 33c9eca5843b57410c1ccbd6db021124c68ebb01a2595e0fcf73b9e5d91cfbe1f3430fdad241a7690ddde4405536dd9f55826efcd71d2974d489016b407cff95
7
- data.tar.gz: 3fff9eaa0219d1c8a793d03436f48258f9a41688b1d062c6afae380822e263398b5b263801b42bedc54a8d6af45fe0665fcda15b8bf33f544d96d20f1ad4f354
6
+ metadata.gz: 2abea7a328183e62722c6711e4a3451cea559a3e4b578c18f9632fc83cb41731f9241c65a9a28e15913318dc38668710e4257900bff3c32722285ee8cec13d9a
7
+ data.tar.gz: 2a06ce9f7148491dc6e714a98d36384049f4d3f07ca5274b67aee035a14d61a6c4939d10a1cd0ffa975c9f6c20a6f5036ab3b2963c6261daf5b2abf42762cd15
@@ -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" if uri.scheme != "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" if config["adapter"] != "postgresql"
171
+ raise "DB adapter is not postgres" unless config["adapter"].include?("postgres")
172
172
 
173
173
  @conf = {
174
174
  url: nil,
@@ -1,3 +1,3 @@
1
1
  module Postgressor
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
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.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-17 00:00:00.000000000 Z
11
+ date: 2019-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor