standalone_activerecord_boot_loader 0.2.0 → 0.3.0

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: df4b2b206babe944bedc4374b282b192850edd3488be8a8e3f4c1474a240a1a3
4
- data.tar.gz: 5575bf0d8a514583e552ae143714f93a384891ac7880e255d7a88341d0f8e32d
3
+ metadata.gz: de6480e8c275a7ca01626b3d90489eed9ac2cfec80b5a45601a1c2f2d4af2afe
4
+ data.tar.gz: d6f38032e0450e7e2d9f3d0007c9302fbe9b9ba101cb68783df441c860649c3a
5
5
  SHA512:
6
- metadata.gz: 720b7e1078459443e7bf8b68086ba6a56a818d84e07c99390560e27693857fb53fdb2527b8889668ff3d426603fd2102f5371651d5567504462df243da3bcca4
7
- data.tar.gz: 6129f0fa6078c85c3dbf92e4db0e4f8bcb03fb6bfb32650f91d60cdf08bec89dfc7bd411706b31fad69877f0c821d0a98a7ce74a989da1bc8367c517b7a29b43
6
+ metadata.gz: 6e2044e781bf73bae6b5d549bb70847794dafc3b1a6361c93075cd7b93cd599449ba727ec4bbf0eaa93b2de3c60387ec636dca35ed57802cfd0e30d525f3f701
7
+ data.tar.gz: e67a91bf9b93f9028f0f6dc971a8809193ceef24f751976b11c0c3f45c81e10db715dd48d55b1e86e27714436f5a52bbd415ffb376727ee59da1cca944cdd8f2
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StandaloneActiverecordBootLoader
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -70,9 +70,9 @@ module StandaloneActiverecordBootLoader
70
70
  end
71
71
 
72
72
  config = ActiveRecord::DatabaseConfigurations::HashConfig.new(@env, 'primary', database_config[@env])
73
- return database_config[@env] unless config.respond_to?(:merge)
73
+ return config if config.respond_to?(:configuration_hash)
74
74
 
75
- config
75
+ database_config[@env]
76
76
  end
77
77
  end
78
78
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standalone_activerecord_boot_loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Ooishi