wcc-base 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 5e85c7cb360d749c42fadf9a75976fba7d87c1b1
4
- data.tar.gz: cb77dcfa27a6a85c4407b0c054ce5628eb10be59
3
+ metadata.gz: a0987d6da9e987464ce9a3739be72aec8be50a52
4
+ data.tar.gz: 5dadeb9b32d67e526ee26c11ecac3b34ddced870
5
5
  SHA512:
6
- metadata.gz: 06d1cc00c199b567b627ccd4a32256c24565908b7d983bad4603e90d69da424408e1b83641eaaa68e153b9736fe1bee3509ce0d0b404a7c08516e70e625cbede
7
- data.tar.gz: bae00d02e33622e5484082cfe2c867de983f0779d136e2f045f36c4ea3ba42fc53186566adbd0fbc56612abc1f9ee1f46ae5323f6b844087822b2560c64a20f5
6
+ metadata.gz: 81be2503bbb5fdf744c07fbf46fd07bbbbe7c5a267e35cfd3367257202375bab081206aabb2475b3c9a2bedeea678f2003c54b2c098dbd1bd26f3a63849acd7a
7
+ data.tar.gz: b66eaf78e4b9d1c14f12158f760852572c3c241afd6cba539953cff00666c1c84082250f72b18f2ae83ebb20ceb6693c7833d9f0ec5f63ed143033c2b165804f
@@ -33,7 +33,8 @@ namespace :db do
33
33
  raise "file argument required" unless File.exists?(args[:file])
34
34
  db_config = WCC::RakeHelpers.db_config
35
35
  command = [
36
- "cat #{args[:file]} | psql",
36
+ "cat #{args[:file]} |",
37
+ WCC::RakeHelpers.db_cmd_with_password_string(["psql"], db_config['password']),
37
38
  db_config['username'] ? "--username=#{db_config['username']}" : nil,
38
39
  db_config['host'] ? "--host=#{db_config['host']}" : nil,
39
40
  db_config['database'],
data/lib/tasks/db.rake CHANGED
@@ -6,7 +6,11 @@ module WCC
6
6
  end
7
7
 
8
8
  def self.db_cmd_with_password(cmd, pw)
9
- `PGPASSWORD="#{pw}" #{cmd.join(" ")}`
9
+ `#{db_cmd_with_password_string(cmd, pw)}`
10
+ end
11
+
12
+ def self.db_cmd_with_password_string(cmd, pw)
13
+ %{PGPASSWORD="#{pw}" #{cmd.join(" ")}}
10
14
  end
11
15
 
12
16
  def self.postgresql?
data/lib/wcc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module WCC
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Community Church
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-15 00:00:00.000000000 Z
11
+ date: 2016-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.2.2
81
+ rubygems_version: 2.4.2
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: "# WCC This gem holds the base namespace and default configuration for Watermark