declare_schema 2.2.0.colin.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: ab7ad89a134e904ebe32480e7fba499ecae239b0362eaea45db187567efeab2e
4
- data.tar.gz: d141ca1f92626674d630199ee9f5675f92723950d6844c2c589a1936d42ddb24
3
+ metadata.gz: fd39ae6d5b6fa9f016f8b966ac52e01861bb3924d186d3f7b08b0c6f1c3742b6
4
+ data.tar.gz: aa19567cf7aeba32af69d652af48c9a1f4da173284fe7d5d86cad065ab1439b5
5
5
  SHA512:
6
- metadata.gz: 4e8936a3cf9ff16e2feab21ea3ba8d158bc716dc1944b6be71d36d0138f2f9a2ec6fbace9f4e73d79b08d37367b8d3647cb539d1adedc61fb384b70d449d3fe6
7
- data.tar.gz: 8530622d7d6e7afa7150bb4a94e27bc04010b677acbc25493f8811b1ecbe232cd11f6e8b3490c279967acf43cbe072d8e54d34926a7bf564909dc61b979719f0
6
+ metadata.gz: 7f10c787700a928549c57230ce74f73f005a70885bc186a543ab0f6e840a0599c4ba398ade4b6f97158cae332806cfd86dda4e02910245fc60eafc28f9d23411
7
+ data.tar.gz: f2f9e8ece660106c7fed41e394296958978f42f2cdd3859da40b73c478decda44b64982a87ff6330f6f6ae8ad77cda6c825445e6b44568eb78d334ccce6078b2
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ 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
+
11
+ ## [2.2.1] - 2024-10-11
12
+ ### Changed
13
+ - Re-release after yanking 2.2.0
14
+
7
15
  ## [2.2.0] - 2024-10-09
8
16
  ### Changed
9
17
  - Drop/add index if its settings change (`unique:`, `length:`, etc.)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- declare_schema (2.2.0.colin.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.0.colin.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.0.colin.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-10 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