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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0987d6da9e987464ce9a3739be72aec8be50a52
4
- data.tar.gz: 5dadeb9b32d67e526ee26c11ecac3b34ddced870
3
+ metadata.gz: 2f48f0ff8ea10a3745e77358d4d9bc3c9579646e
4
+ data.tar.gz: 52e37c4701d4c6ff8d610a80133acc422998c069
5
5
  SHA512:
6
- metadata.gz: 81be2503bbb5fdf744c07fbf46fd07bbbbe7c5a267e35cfd3367257202375bab081206aabb2475b3c9a2bedeea678f2003c54b2c098dbd1bd26f3a63849acd7a
7
- data.tar.gz: b66eaf78e4b9d1c14f12158f760852572c3c241afd6cba539953cff00666c1c84082250f72b18f2ae83ebb20ceb6693c7833d9f0ec5f63ed143033c2b165804f
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 ||= YAML.load_file("config/database.yml")[ENV['RAILS_ENV'] || 'development'] || {}
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
@@ -1,3 +1,3 @@
1
1
  module WCC
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.2
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: 2016-02-22 00:00:00.000000000 Z
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.4.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