brillo 1.1.3 → 1.1.4.pre1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12c5e0eb316fa6e13678691635ad864758881e5b
4
- data.tar.gz: 19dacc12c00f0e780b2e5be766d26712c0b6d5d6
3
+ metadata.gz: 4f0e667a2eda4400bc1ed6bf91680b988177d6c2
4
+ data.tar.gz: 15b12207d1f45109e0abea265ecc607ca188e26e
5
5
  SHA512:
6
- metadata.gz: 6023d8f6eccd9b5882be5aab400a93d4216347b68cdc413078c7abf9249ad89e67f5c581718dfe37e9941ffb77f41518633de63c0e445f019585452ef038400c
7
- data.tar.gz: b3045e4eb617fbb8c6b1114e07f52d2c4eb761100c784283f250e1c29b24f4d8802e2c817cd562ecfad5bdc6343e9a61624df1b472cdb57496aaa983e360d43d
6
+ metadata.gz: 44689d60ef7b4da6ec6cc53fb081d0f1292396bba6878caabf2db9fba1c8a97bdbf06bbd54b819a1976ac0576203b8d14ba4910869d6cbce118c10f8b5004854
7
+ data.tar.gz: 56317fb97566d518aa650313470e9ec544637864871499bfe4597f41de50d45652e1c4fd0c37da7438834cbc81cef7ea88f0a81b0b52aa966738909040e4e799
@@ -3,8 +3,8 @@ module Brillo
3
3
  class Postgres < Base
4
4
  def load_command
5
5
  host = config[:host] ? "--host #{config[:host]}" : ""
6
- password = config[:password] ? "-W#{config[:password]}" : ""
7
- "psql #{host} -U #{config[:username]} #{password} #{config[:database]}"
6
+ password = config[:password] ? "PGPASSWORD=#{config[:password]} " : ""
7
+ "#{password}psql #{host} -U #{config[:username]} #{password} #{config[:database]}"
8
8
  end
9
9
 
10
10
  # pgdump without schema does not set sequences, so we have to do it ourselves, or the first insert
@@ -21,6 +21,7 @@ module Brillo
21
21
  private
22
22
 
23
23
  def log_anonymized command_string
24
+ command_string = command_string.gsub(/PGPASSWORD=[^\s]+/, "PGPASSWORD={FILTERED}")
24
25
  command_string = command_string.gsub(/--password=[^\s]+/, "--password={FILTERED}")
25
26
  command_string = command_string.gsub(/EC2_ACCESS_KEY=[^\s]+/, "EC2_ACCESS_KEY={FILTERED}")
26
27
  command_string = command_string.gsub(/EC2_SECRET_KEY=[^\s]+/, "EC2_SECRET_KEY={FILTERED}")
@@ -1,3 +1,3 @@
1
1
  module Brillo
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4.pre1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brillo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Bessey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-01 00:00:00.000000000 Z
11
+ date: 2016-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -220,9 +220,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
220
  version: '0'
221
221
  required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  requirements:
223
- - - ">="
223
+ - - ">"
224
224
  - !ruby/object:Gem::Version
225
- version: '0'
225
+ version: 1.3.1
226
226
  requirements: []
227
227
  rubyforge_project:
228
228
  rubygems_version: 2.2.2