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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 771e57dca5a537a4264cb80e8418562877580f7784e0c4192ad4055221b04e8d
4
- data.tar.gz: f3f487f3cb99dcfc2b017f2ff1f1356bf736f13f2c6f76f283234ba9a1f26e50
3
+ metadata.gz: bb3247022d4dd7a36aaf82f09bfe1502c9106f570b14e6d09c9cd1076c2b8dc6
4
+ data.tar.gz: 0a8deb6f3b4741296899a08c1fc29df3afd0dcaf946538600e4e39e7f5e98170
5
5
  SHA512:
6
- metadata.gz: fdc2580d710fff2d9ab8285c5fe6e0e693122382790fbaa0122e3f160d45ca72f89247e5eb4166f0128d328d4586562a4b97a3bccae34f565abd01f326cc15f8
7
- data.tar.gz: e362feac38a67040ce888abb7cdd64f0e207972f24d316fa4cabbe2cfe714ae086c39cbcbd7de4cedf330a14d859638da6092555e215cdd233ee0a7cc807752d
6
+ metadata.gz: 48c6242571df5e27fa2bc30f5a699c64bbe4d3f37c47d3ab3deedbc39050470636a664df51c1c47b74e970b6950b995746ee715e44818c91bcd1d832b400bb8f
7
+ data.tar.gz: 82169f6e8946a5c6ecbd82001b7fa2e163bc11f739946c184ca4aedbdb95a700e5522fa304ed302050d70e26fb61a65162cfdc8f4be934f96c31c386b8bca5d5
@@ -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: [v23.2, v24.1, v24.3, v25.1]
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]&.gsub!(/^\'|\'?$/, '')
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.reduce({}) do |a, e|
459
- a[e[0]] = e
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
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module ActiveRecord
18
- COCKROACH_DB_ADAPTER_VERSION = "8.0.2"
18
+ COCKROACH_DB_ADAPTER_VERSION = "8.0.3"
19
19
  end
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.2
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-07-14 00:00:00.000000000 Z
11
+ date: 2025-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord