activerecord-cockroachdb-adapter 6.1.5 → 6.1.6
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/active_record/connection_adapters/cockroachdb_adapter.rb +11 -11
- data/lib/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55fcba0c750ea29dde5f7a7efcabd35c1c81d1cbabee65ad1aeca9e16ab3e9d6
|
|
4
|
+
data.tar.gz: 1f3b6c480c3430c53f632d11647afc4d76b8d5a05990e3a7b7f21191f093c746
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c29d9e502572a94a2a34ddf43f9cf09aac0aca3c63b6e489844a256cbbce7728ce90280acc8153ab4114dc9721eac37f26752936d5b3418c731fee17a2c1bd98
|
|
7
|
+
data.tar.gz: 68943312caf4a756081d806e7e6bb29a563d396f435226f2dadf595f2068649d1877f8bd79a88f2b65df9cc57ee998b4e2f7f6a81a7589f1ef03198cd3dc3a1d
|
data/CHANGELOG.md
CHANGED
|
@@ -228,25 +228,25 @@ module ActiveRecord
|
|
|
228
228
|
def initialize(connection, logger, conn_params, config)
|
|
229
229
|
super(connection, logger, conn_params, config)
|
|
230
230
|
|
|
231
|
-
crdb_version_string = query_value("SHOW
|
|
232
|
-
if crdb_version_string.
|
|
231
|
+
crdb_version_string = query_value("SHOW CLUSTER SETTING version")
|
|
232
|
+
if crdb_version_string.start_with? "1."
|
|
233
233
|
version_num = 1
|
|
234
|
-
elsif crdb_version_string.
|
|
235
|
-
version_num 2
|
|
236
|
-
elsif crdb_version_string.
|
|
234
|
+
elsif crdb_version_string.start_with? "2."
|
|
235
|
+
version_num = 2
|
|
236
|
+
elsif crdb_version_string.start_with? "19.1"
|
|
237
237
|
version_num = 1910
|
|
238
|
-
elsif crdb_version_string.
|
|
238
|
+
elsif crdb_version_string.start_with? "19.2"
|
|
239
239
|
version_num = 1920
|
|
240
|
-
elsif crdb_version_string.
|
|
240
|
+
elsif crdb_version_string.start_with? "20.1"
|
|
241
241
|
version_num = 2010
|
|
242
|
-
elsif crdb_version_string.
|
|
242
|
+
elsif crdb_version_string.start_with? "20.2"
|
|
243
243
|
version_num = 2020
|
|
244
|
-
elsif crdb_version_string.
|
|
244
|
+
elsif crdb_version_string.start_with? "21.1"
|
|
245
245
|
version_num = 2110
|
|
246
|
-
elsif crdb_version_string.
|
|
246
|
+
elsif crdb_version_string.start_with? "21.2"
|
|
247
247
|
version_num = 2120
|
|
248
248
|
else
|
|
249
|
-
version_num =
|
|
249
|
+
version_num = 2210
|
|
250
250
|
end
|
|
251
251
|
@crdb_version = version_num
|
|
252
252
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-cockroachdb-adapter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.1.
|
|
4
|
+
version: 6.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cockroach Labs
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-02-
|
|
11
|
+
date: 2022-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -101,7 +101,7 @@ licenses:
|
|
|
101
101
|
- Apache-2.0
|
|
102
102
|
metadata:
|
|
103
103
|
allowed_push_host: https://rubygems.org
|
|
104
|
-
post_install_message:
|
|
104
|
+
post_install_message:
|
|
105
105
|
rdoc_options: []
|
|
106
106
|
require_paths:
|
|
107
107
|
- lib
|
|
@@ -116,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
117
|
version: '0'
|
|
118
118
|
requirements: []
|
|
119
|
-
rubygems_version: 3.1
|
|
120
|
-
signing_key:
|
|
119
|
+
rubygems_version: 3.0.3.1
|
|
120
|
+
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: CockroachDB adapter for ActiveRecord.
|
|
123
123
|
test_files: []
|