effective_developer 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/effective_developer/version.rb +1 -1
- data/lib/tasks/pg_pull.rake +3 -0
- 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: 9b699364e669ff684e3f426ba3a61ff3d3ed9033fc5de0d87e47f0525aab757f
|
4
|
+
data.tar.gz: 4c86bfca263befc898633b2d260b9a439da0da12257afeb66cf45413786c714d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 193641e2323b3fb9d68f77e4d429021d2064a142feeb040e6f08ff3fa24ae0452ee6016e42f363746144a9c5ce26f51b9d92af6901a7c1e8987ec508df91bbfb
|
7
|
+
data.tar.gz: 97783809f4dc074280d343b59803e8d1a3d23c5ea49e19cdaebdacfc9575abfe66f32b077435f966887f1270c631bf96f94ee6e9baa06ce3d93584223c8013f8
|
data/lib/tasks/pg_pull.rake
CHANGED
@@ -72,6 +72,7 @@ namespace :pg do
|
|
72
72
|
|
73
73
|
config = ActiveRecord::Base.configurations[Rails.env]
|
74
74
|
db = { username: (config['username'] || `whoami`), password: config['password'], host: config['host'], port: (config['port'] || 5432), database: config['database'] }
|
75
|
+
db.transform_values! { |v| v.respond_to?(:chomp) ? v.chomp : v }
|
75
76
|
|
76
77
|
puts "=== Loading #{args.file_name} into local '#{db[:database]}' database"
|
77
78
|
|
@@ -106,6 +107,8 @@ namespace :pg do
|
|
106
107
|
{ username: (config['username'] || `whoami`.chomp), password: config['password'], host: config['host'], port: (config['port'] || 5432), database: config['database'] }
|
107
108
|
end
|
108
109
|
|
110
|
+
db.transform_values! { |v| v.respond_to?(:chomp) ? v.chomp : v }
|
111
|
+
|
109
112
|
puts "=== Saving local '#{db[:database]}' database to #{args.file_name}"
|
110
113
|
|
111
114
|
if system("export PGPASSWORD=#{db[:password]}; pg_dump -Fc --no-acl --no-owner -h #{db[:host]} -p #{db[:port]} -U #{db[:username]} #{db[:database]} > #{args.file_name}")
|
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.5.
|
4
|
+
version: 0.5.3
|
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: 2020-
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|