activerecord-cockroachdb-adapter 8.0.2 → 8.0.3
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/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/active_record/connection_adapters/cockroachdb_adapter.rb +3 -4
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb3247022d4dd7a36aaf82f09bfe1502c9106f570b14e6d09c9cd1076c2b8dc6
|
4
|
+
data.tar.gz: 0a8deb6f3b4741296899a08c1fc29df3afd0dcaf946538600e4e39e7f5e98170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48c6242571df5e27fa2bc30f5a699c64bbe4d3f37c47d3ab3deedbc39050470636a664df51c1c47b74e970b6950b995746ee715e44818c91bcd1d832b400bb8f
|
7
|
+
data.tar.gz: 82169f6e8946a5c6ecbd82001b7fa2e163bc11f739946c184ca4aedbdb95a700e5522fa304ed302050d70e26fb61a65162cfdc8f4be934f96c31c386b8bca5d5
|
data/.github/workflows/ci.yml
CHANGED
@@ -40,7 +40,7 @@ jobs:
|
|
40
40
|
fail-fast: false
|
41
41
|
matrix:
|
42
42
|
# https://www.cockroachlabs.com/docs/releases/release-support-policy
|
43
|
-
crdb: [
|
43
|
+
crdb: [v24.1, v24.3, v25.1, v25.2]
|
44
44
|
ruby: ["3.4"]
|
45
45
|
name: Test (crdb=${{ matrix.crdb }} ruby=${{ matrix.ruby }})
|
46
46
|
steps:
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## Ongoing
|
4
4
|
|
5
|
+
## 8.0.3 - 2025-08-19
|
6
|
+
|
7
|
+
- Fixed the handling of column comments that end in a single quote ([#382](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/382))
|
8
|
+
|
5
9
|
## 8.0.2 - 2025-07-14
|
6
10
|
|
7
11
|
- Fixed the `db:migrate` command by removing usage of `execute_and_clear` function ([#377](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/377))
|
@@ -427,7 +427,7 @@ module ActiveRecord
|
|
427
427
|
fields.map do |field|
|
428
428
|
dtype = field[f_type]
|
429
429
|
field[f_type] = crdb_fields[field[f_attname]][2].downcase if re.match(dtype)
|
430
|
-
field[f_comment] = crdb_fields[field[f_attname]][1]
|
430
|
+
field[f_comment] = crdb_fields[field[f_attname]][1]
|
431
431
|
field[f_is_hidden] = true if crdb_fields[field[f_attname]][3]
|
432
432
|
field
|
433
433
|
end
|
@@ -455,9 +455,8 @@ module ActiveRecord
|
|
455
455
|
WHERE c.table_name = #{quote(table)}#{with_schema}
|
456
456
|
SQL
|
457
457
|
|
458
|
-
fields.
|
459
|
-
|
460
|
-
a
|
458
|
+
fields.to_h do |field|
|
459
|
+
[field.first, field]
|
461
460
|
end
|
462
461
|
end
|
463
462
|
|
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: 8.0.
|
4
|
+
version: 8.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cockroach Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|