activerecord-cockroachdb-adapter 7.2.1 → 7.2.2

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: c28f723090995949b4ca82645717432e09a8d71d9c5e714bea958432af87b0cc
4
- data.tar.gz: 4855cb4a35acad52324f86833777b9b9f0f74d5a0fbade33fad8f0f5c5fb67fa
3
+ metadata.gz: 913fb9d4adb774cede984f4e707dab5cd49cea139d2195e11319a12b719b195c
4
+ data.tar.gz: 2d721a7f241acd3e9bf18bca828d493e81b35d327f5601c28fab52a9280dd21f
5
5
  SHA512:
6
- metadata.gz: 9a75bb056071fc5ced4b3df285a74e42d2c4bbfd4ae34a21aa860702e88e5dae51ede402be1ff24664d1cee95f5d9c182a26106473a486f6b65591212a82a067
7
- data.tar.gz: cb96f815a2d9970ca62006bded80d5d57b5ba6b8ce43be5dae0bfe0d9d610cbe5394d7f321c5605df9bc806fd87fb26105a97c448ba58dd1486528bc3409282f
6
+ metadata.gz: 83a959c8c01067449bca7d723c90c2bbaebe15072102e214141204bda3720f9cb9b88ce354af5e084a62759c1da2361276a80e69a09da0d4316e0d8024b38956
7
+ data.tar.gz: c2f2d1e0d28ec926f635495dd840de5a0b288c7828a29bf2d72914f664e80cdb280d1253dc17f107da63df037036dd3145586cc6f4dc54f0a58f68990d1880d8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.2.2 - 2025-08-20
4
+
5
+ - Fixed the handling of column comments that end in a single quote ([#384](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/384))
6
+
3
7
  ## 7.2.1 - 2025-03-26
4
8
 
5
9
  - Fix transaction state on rollback ([#364](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/364))
@@ -407,7 +407,7 @@ module ActiveRecord
407
407
  fields.map do |field|
408
408
  dtype = field[1]
409
409
  field[1] = crdb_fields[field[0]][2].downcase if re.match(dtype)
410
- field[7] = crdb_fields[field[0]][1]&.gsub!(/^\'|\'?$/, '')
410
+ field[7] = crdb_fields[field[0]][1]
411
411
  field[10] = true if crdb_fields[field[0]][3]
412
412
  field
413
413
  end
@@ -438,9 +438,8 @@ module ActiveRecord
438
438
  WHERE c.table_name = #{quote(table)}#{with_schema}
439
439
  SQL
440
440
 
441
- fields.reduce({}) do |a, e|
442
- a[e[0]] = e
443
- a
441
+ fields.to_h do |field|
442
+ [field.first, field]
444
443
  end
445
444
  end
446
445
 
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 = "7.2.1"
18
+ COCKROACH_DB_ADAPTER_VERSION = "7.2.2"
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: 7.2.1
4
+ version: 7.2.2
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-04-25 00:00:00.000000000 Z
11
+ date: 2025-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord