wcc-base 0.2.0 → 0.2.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: 25e00dba3489248a44d4207066b5fa01991e3fa6
4
- data.tar.gz: f103d41dfe6881cc08b817327b431a55f3f95a04
3
+ metadata.gz: b315171b9971db51111de42a8765ea911c174554
4
+ data.tar.gz: 4e01c9bc609bbda1536c50e8f694081174c37893
5
5
  SHA512:
6
- metadata.gz: b629f11aee75a8c05f5791fd5ef300d947a492a63ee8cdfff22601257e36cc379d0baf7c25c93ecdb4dfa227fa4d5f1398bb6ea731f539e6adb988dfe978b905
7
- data.tar.gz: ef9bc249289288925605192504840dd259c46537abf608a8018b3d39c503c16be69b6874f5a9b09a64407b2cf44d351b79f5dd289e59c9df3e77dc8816e9be9c
6
+ metadata.gz: 50c8c8805c6ed40b0df94c01f9de2da3d67e463790bc0aeabe13f8cbeb0c10825ed5267cee161db076875d49fea0ed5c660c52fb1a47ac5a8abbeb6b5608576f
7
+ data.tar.gz: 2b9c223e56fb34ca0b42da8cabb2efd825bcfc34a76549571d3a219c4c2b3b10ed9b487461041117e9534dc946d87dbbdbf27fd52f8a5d6e88640e92af291ea5
@@ -22,7 +22,11 @@ module WCC
22
22
  end
23
23
 
24
24
  def self.db_config_file_data
25
- YAML.load_file("config/database.yml")
25
+ if defined?(ActiveRecord::Base)
26
+ ActiveRecord::Base.configurations
27
+ else
28
+ YAML.load_file("config/database.yml")
29
+ end
26
30
  rescue SystemCallError
27
31
  {}
28
32
  end
@@ -1,3 +1,3 @@
1
1
  module WCC
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.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.2.0
4
+ version: 0.2.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: 2017-03-10 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler