bard-rake 0.18.1 → 0.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34aae94c85aac3dd082d1ca5a0d67d6647b6c8716fc75d1854634e4039134f1e
4
- data.tar.gz: cb7d590fe36fce04d3220b57454dfffd43cd79d6e88e9e70ffcbbf927645d696
3
+ metadata.gz: ff6a5ba13f2aa38b6355725ada3de72182c9eaf517901cffd1e772f4e898529a
4
+ data.tar.gz: 8552e64f3932f384145a936ff9fa76a939a3821049e3763f4cadf778e4ed22ba
5
5
  SHA512:
6
- metadata.gz: f7de2c724d68c1b6bdee29fd716b4b28426a0cb89fd818706192d0e4555284451cdff046e91c55ff3586a9fe4033de5f7aea69ba2b2bae10f14e12c649d05ef2
7
- data.tar.gz: 000675fc9c72e2490bba5fe7367feb89369f6b339378823ef75709482357525b0024a9a3b59bfc4dae733935c0387fefa6780bb9f4b0d78c47f6b74bef4e2c9a
6
+ metadata.gz: 77ed1b2db7e7006866d0e0bbf4204c155727caa0e608596aa8b707a9732abfe927a69ac403195b560c10170e0bd194625d3a2e72b871b5aaf9a2109154234467
7
+ data.tar.gz: 1a95634e0c298230ab5d43d9396df77cd49da2958bc2d63cfc2d6f52bdc6cd98f5246b93b5f819eaf8ec437e3decf3c0ff8dd9205899253c73085e60108670c7
@@ -56,8 +56,13 @@ if defined?(ActiveRecord)
56
56
 
57
57
  ActiveRecord::Base.configurations.configs_for.each do |db_config|
58
58
  env = db_config.env_name
59
- configuration = db_config.config
60
- database = configuration["database"]
59
+ if Rails.version < "7"
60
+ configuration = db_config.config
61
+ database = configuration["database"]
62
+ else
63
+ configuration = db_config.configuration_hash
64
+ database = configuration[:database]
65
+ end
61
66
 
62
67
  next unless database
63
68
  next unless whitelist.include?(env)
@@ -1,6 +1,6 @@
1
1
  module Bard
2
2
  module Rake
3
- VERSION = "0.18.1"
3
+ VERSION = "0.18.2"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-02 00:00:00.000000000 Z
11
+ date: 2021-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake