declare_schema 2.2.1 → 2.3.0.pre.is.0

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: 9e92a56ac2a51694dbdea156f3ac05dc7336f524b13fb46351bc186494935d4e
4
- data.tar.gz: 50c34eb09ef428f685ad487de9f98b11751c6b2c1d2ff68e51af2ebae51fb6da
3
+ metadata.gz: fd39ae6d5b6fa9f016f8b966ac52e01861bb3924d186d3f7b08b0c6f1c3742b6
4
+ data.tar.gz: aa19567cf7aeba32af69d652af48c9a1f4da173284fe7d5d86cad065ab1439b5
5
5
  SHA512:
6
- metadata.gz: '079ba4d0d7bdfa362c6bcfa7fc7a6b0db10dee0684b787fc93cf56cbda2909e238e968ab610673563f8159961345b9e2e0565ff82b69105242346f4c4e8d196e'
7
- data.tar.gz: 3a8f164861f95287252fcedf22ff045e692043764ba1701b12e1c2c25db46612af1c273aded8c1e23823aaa3d3123d40e46a3813a7ca75032ced5d409a023a4c
6
+ metadata.gz: 7f10c787700a928549c57230ce74f73f005a70885bc186a543ab0f6e840a0599c4ba398ade4b6f97158cae332806cfd86dda4e02910245fc60eafc28f9d23411
7
+ data.tar.gz: f2f9e8ece660106c7fed41e394296958978f42f2cdd3859da40b73c478decda44b64982a87ff6330f6f6ae8ad77cda6c825445e6b44568eb78d334ccce6078b2
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
5
  Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.3.0] - Unreleased
8
+ ### Updated
9
+ - Updated the `current_adapter` method to use `connection_db_config` for Rails 6.1 and higher, while retaining `connection_config` for earlier versions
10
+
7
11
  ## [2.2.1] - 2024-10-11
8
12
  ### Changed
9
13
  - Re-release after yanking 2.2.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- declare_schema (2.2.1)
4
+ declare_schema (2.3.0.pre.is.0)
5
5
  rails (>= 6.0)
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeclareSchema
4
- VERSION = "2.2.1"
4
+ VERSION = "2.3.0.pre.is.0"
5
5
  end
@@ -162,7 +162,7 @@ module DeclareSchema
162
162
  end
163
163
 
164
164
  def current_adapter(model_class = ActiveRecord::Base)
165
- if Rails::VERSION::MAJOR >= 7
165
+ if Rails::VERSION::MAJOR >= 6.1
166
166
  model_class.connection_db_config.adapter
167
167
  else
168
168
  model_class.connection_config[:adapter]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: declare_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0.pre.is.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Invoca Development adapted from hobo_fields by Tom Locke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-11 00:00:00.000000000 Z
11
+ date: 2024-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails