wcc-base 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/db.rake +7 -1
- data/lib/wcc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f48f0ff8ea10a3745e77358d4d9bc3c9579646e
|
4
|
+
data.tar.gz: 52e37c4701d4c6ff8d610a80133acc422998c069
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 672d6882f793c86e6a3b40164ea5812a886d12b1c81d6b3acbb544e4912cbb87658ebf113de988931cfb93a31ffc5185fa47efad551b022dbdf332bd0dabe9e4
|
7
|
+
data.tar.gz: 8b9f83aa1bbdd455850446ac9b13585b0f712006ee5e064207bb5f4a3ad6f7d5af52715e1dc688267d085f5cafabea43c59f4200ec7621452cfeaa2a940383c1
|
data/lib/tasks/db.rake
CHANGED
@@ -2,7 +2,7 @@ module WCC
|
|
2
2
|
module RakeHelpers
|
3
3
|
|
4
4
|
def self.db_config
|
5
|
-
@config ||=
|
5
|
+
@config ||= db_config_file_data[ENV['RAILS_ENV'] || 'development'] || {}
|
6
6
|
end
|
7
7
|
|
8
8
|
def self.db_cmd_with_password(cmd, pw)
|
@@ -21,6 +21,12 @@ module WCC
|
|
21
21
|
db_config["adapter"] == "mysql"
|
22
22
|
end
|
23
23
|
|
24
|
+
def self.db_config_file_data
|
25
|
+
YAML.load_file("config/database.yml")
|
26
|
+
rescue SystemCallError
|
27
|
+
{}
|
28
|
+
end
|
29
|
+
|
24
30
|
end
|
25
31
|
end
|
26
32
|
|
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.3
|
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:
|
11
|
+
date: 2017-02-14 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.
|
81
|
+
rubygems_version: 2.6.8
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: "# WCC This gem holds the base namespace and default configuration for Watermark
|