effective_developer 0.6.11 → 0.6.13

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: 7c82e5a358ef279b2ccccaaf54c097ca549449b4d7c4c076eea41f88f5646f3e
4
- data.tar.gz: c66fce38e2b60d3796964d51fd718911736c2be3f4f0e0413235b84095e25dd5
3
+ metadata.gz: 3cfed3c4234c2a0daa3fb45b3b236cae324cec1231afd7bc8d93b91ed898ade1
4
+ data.tar.gz: ca49f594afb5fce78e734d7d12b8392e972c69fdcbe068b7d8f6b6e17f66c5e9
5
5
  SHA512:
6
- metadata.gz: d9fc0933cede1643a01fa8000c46d5beb1d8184e5eb74750adf6120cb4747789a65df62079f96b1a2946a78c177739a05880bfd925366e082b3493b2a2c6f1ec
7
- data.tar.gz: f74388c2dd737bf879ff0a3b147c577b20eac0407a8d4b176942716a93cb75292c9ec2376211d176256e9aae0f50484d40adb4fac153f613283f24ed1b84991c
6
+ metadata.gz: 7cc5dc29827ce9f27de5e6693aeecfaf1756892de8673a695b0ada344ae1158a6623f0ec86695d31294215bfe266bcc67d6df26e0f6a3b6c33e227ff14082e4a
7
+ data.tar.gz: 86967b90b6044a4e553f81bb1f7cffb0bb55d4608e97e3fd9b6d5e4a89e3db39cb24a7070b97b31c4b53547f177a346a7769076825ff5a53e39b690b63fa8279
@@ -1,3 +1,3 @@
1
1
  module EffectiveDeveloper
2
- VERSION = '0.6.11'.freeze
2
+ VERSION = '0.6.13'.freeze
3
3
  end
@@ -146,7 +146,7 @@ namespace :pg do
146
146
  keywords = ARGV.map { |a| a.split('=') if a.include?('=') }.compact.inject({}) { |h, (k, v)| h[k.to_sym] = v; h }
147
147
  args.with_defaults(defaults.compact.merge(env_keys.compact).merge(keywords))
148
148
 
149
- db = if ENV['DATABASE_URL'].to_s.length > 0
149
+ db = if ENV['DATABASE_URL'].to_s.length > 0 && args.database.blank?
150
150
  uri = URI.parse(ENV['DATABASE_URL']) rescue nil
151
151
  abort("Invalid DATABASE_URL") unless uri.present?
152
152
 
@@ -174,7 +174,7 @@ namespace :pg do
174
174
  config = config.configuration_hash if config.respond_to?(:configuration_hash)
175
175
  config = config.stringify_keys
176
176
 
177
- { username: (config['username'] || `whoami`.chomp), password: config['password'], host: config['host'], port: (config['port'] || 5432), database: config['database'] }
177
+ { username: (config['username'] || `whoami`.chomp), password: config['password'], host: config['host'], port: (config['port'] || 5432), database: config['database'].to_s.sub('/', '') }
178
178
  end
179
179
 
180
180
  db.transform_values! { |v| v.respond_to?(:chomp) ? v.chomp : v }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_developer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.11
4
+ version: 0.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-13 00:00:00.000000000 Z
11
+ date: 2022-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails