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 +4 -4
- data/README.md +3 -4
- data/lib/tasks/db/psql.rake +8 -2
- data/lib/wcc/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e85c7cb360d749c42fadf9a75976fba7d87c1b1
|
4
|
+
data.tar.gz: cb77dcfa27a6a85c4407b0c054ce5628eb10be59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
26
|
-
example usages.
|
25
|
+
No specific usage instructions at this time.
|
27
26
|
|
28
27
|
## Contributing
|
29
28
|
|
data/lib/tasks/db/psql.rake
CHANGED
@@ -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
|
-
|
37
|
-
|
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
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.
|
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-
|
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
|
91
|
-
|
92
|
-
|
93
|
-
|
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: []
|