declare_schema 2.2.1 → 2.3.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: 31dd49e36793094f670d30211da95c08739c4f0c65d11ef1824ab0cacff6508a
4
+ data.tar.gz: 0f74f11ad7d6a6b6631dbf695cadcae1d59554ba956306ddda0cd26eee1316c4
5
5
  SHA512:
6
- metadata.gz: '079ba4d0d7bdfa362c6bcfa7fc7a6b0db10dee0684b787fc93cf56cbda2909e238e968ab610673563f8159961345b9e2e0565ff82b69105242346f4c4e8d196e'
7
- data.tar.gz: 3a8f164861f95287252fcedf22ff045e692043764ba1701b12e1c2c25db46612af1c273aded8c1e23823aaa3d3123d40e46a3813a7ca75032ced5d409a023a4c
6
+ metadata.gz: 73cec99029586a2e9250848013a86548a14fb64eb46d2f2aecc6c5ed4d1679de8d264e06fde1db9640293ee7e2705d13dfd770c62aecb1f7ab089ca8c805d213
7
+ data.tar.gz: bc61c8db52f1890398dfd663c0e7f0d76441fc1d1713f89d095a2cb40bed654ae14a2dfd40a007013cc762f8ae397368e1a89d210e5b9e853953db595ec9ec1d
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] - 2024-10-31
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)
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"
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
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-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails