wcc-base 0.3.5 → 0.3.7

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
  SHA256:
3
- metadata.gz: a13e7d5c8847e58b738bb4fd5a91bdd14589f339ab5fe20e4edd31070ac176a1
4
- data.tar.gz: 9066eb4b31c769fb48565e14ef4a1400e235390c7cb580c83e4fe7a109ce15c1
3
+ metadata.gz: 538474ad8724ec753468035228127cc2b6789791ef6b2aa8c1f8be819f19083c
4
+ data.tar.gz: 956d69bd02854d9bdd39b4b098b7664253427979e0ad25ea78c3f871dfa8cbb9
5
5
  SHA512:
6
- metadata.gz: 87af99d4c1c010c9f3f152c7436d3f305c66764e3ebe699f63c1f4fc7c51ee52967422a5e538c6e1950292345df23e8dbf0c6aa3332e13a4095dcf1985202f6c
7
- data.tar.gz: 3db3517b0e1d4832195ba1aaacb067be5d7343f4ee7e4ddbbb69fde9d6b3d41275d78317c10f4f63d27cc75ff924d4e9d1b68621811d0250059ebd9e6f319165
6
+ metadata.gz: 24e1aebca7cc802fbda6baba9a4e2b68aae62747b6dd82e1322427532a8844f768feb68a581960a6ed2986741ce1ae36a071f4b64ef44a0e7bd853c4982e43ea
7
+ data.tar.gz: a72fea8f54251ac1908ea3eee6e29d35e6f167e8bf057423a21ad0f67e7fea2509c2bd2243870d7266ff9fe5b78b3e613cc7d323410f231f639a51d77b3bccc4
data/lib/tasks/db.rake CHANGED
@@ -30,7 +30,10 @@ module WCC
30
30
  if defined?(ActiveRecord::Base) && ActiveRecord::Base.configurations.present?
31
31
  ActiveRecord::Base.configurations
32
32
  else
33
- @yaml_file ||= YAML.load(ERB.new(File.read('config/database.yml' )).result)
33
+ # We only go down this path if DATABASE_URL is not set, otherwise we would lode the config via ActiveRecord.
34
+ # In psych 3.1 they changed the "aliases" param to be a kwarg instead of a positional argument.
35
+ raise 'Psych version < 3.1.0 not supported' if Psych::VERSION < '3.1.0'
36
+ @yaml_file ||= YAML.safe_load(ERB.new(File.read('config/database.yml' )).result, aliases: true)
34
37
  end
35
38
  rescue SystemCallError
36
39
  {}
data/lib/wcc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module WCC
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.7'
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.3.5
4
+ version: 0.3.7
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: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake