wcc-base 0.1.0 → 0.1.1

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: 114acf79a911eff1823b7c97df2be1cbaa9f2ef5
4
- data.tar.gz: 1a64dd498da26937836580bc37d429a9cf9de70e
3
+ metadata.gz: 5e85c7cb360d749c42fadf9a75976fba7d87c1b1
4
+ data.tar.gz: cb77dcfa27a6a85c4407b0c054ce5628eb10be59
5
5
  SHA512:
6
- metadata.gz: 10675d943646e1f201579c9859c87fd0fa6ad07934aefe9e3887e2280a8a794eac9e29b1b3a4ab9754bcf53fe0cecdf3532709a339e571a437fecdea566eb363
7
- data.tar.gz: 394a8ad6a312262a9200f925409cbcac6a3a5f12fd9a5ddcd13e9d874da0f721441947901d6b4c0082eab00ab36bf54789d7b7f02af058b9dbf87afddbe4efbf
6
+ metadata.gz: 06d1cc00c199b567b627ccd4a32256c24565908b7d983bad4603e90d69da424408e1b83641eaaa68e153b9736fe1bee3509ce0d0b404a7c08516e70e625cbede
7
+ data.tar.gz: bae00d02e33622e5484082cfe2c867de983f0779d136e2f045f36c4ea3ba42fc53186566adbd0fbc56612abc1f9ee1f46ae5323f6b844087822b2560c64a20f5
data/README.md CHANGED
@@ -10,7 +10,7 @@ separate gem. This should be a breeding ground for new gems.
10
10
 
11
11
  Add this line to your application's Gemfile:
12
12
 
13
- gem 'wcc'
13
+ gem 'wcc-base'
14
14
 
15
15
  And then execute:
16
16
 
@@ -18,12 +18,11 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install wcc
21
+ $ gem install wcc-base
22
22
 
23
23
  ## Usage
24
24
 
25
- No specific usage instructions. Check out one of the apps to see
26
- example usages.
25
+ No specific usage instructions at this time.
27
26
 
28
27
  ## Contributing
29
28
 
@@ -31,12 +31,18 @@ namespace :db do
31
31
  desc 'Restore the pg datbase from the specified file'
32
32
  task :restore, :file do |t, args|
33
33
  raise "file argument required" unless File.exists?(args[:file])
34
+ db_config = WCC::RakeHelpers.db_config
34
35
  command = [
35
36
  "cat #{args[:file]} | psql",
36
- WCC::RakeHelpers.db_config['database'],
37
- ].join(" ")
37
+ db_config['username'] ? "--username=#{db_config['username']}" : nil,
38
+ db_config['host'] ? "--host=#{db_config['host']}" : nil,
39
+ db_config['database'],
40
+ ].compact.join(" ")
38
41
  `#{command}`
42
+ Rake::Task['db:after_restore'].invoke(args[:file])
39
43
  end
40
44
 
45
+ task :after_restore, :file
46
+
41
47
  end if WCC::RakeHelpers.postgresql?
42
48
 
data/lib/wcc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module WCC
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.0
4
+ version: 0.1.1
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-10 00:00:00.000000000 Z
11
+ date: 2014-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -85,10 +85,10 @@ summary: "# WCC This gem holds the base namespace and default configuration for
85
85
  Community Church's Ruby development. This is kind of the general repository for
86
86
  common code between different apps. As components begin to emerge in this code base
87
87
  they should be extracted into a separate gem. This should be a breeding ground for
88
- new gems. ## Installation Add this line to your application's Gemfile: gem 'wcc'
89
- \ And then execute: $ bundle Or install it yourself as: $ gem install wcc ##
90
- Usage No specific usage instructions. Check out one of the apps to see example
91
- usages. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout
92
- -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`)
93
- 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request"
88
+ new gems. ## Installation Add this line to your application's Gemfile: gem 'wcc-base'
89
+ \ And then execute: $ bundle Or install it yourself as: $ gem install wcc-base
90
+ \ ## Usage No specific usage instructions at this time. ## Contributing 1. Fork
91
+ it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your
92
+ changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin
93
+ my-new-feature`) 5. Create new Pull Request"
94
94
  test_files: []