fast_schema_dumper 0.5.2 → 0.5.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: 318d9557a32b7d943e100a40a1a707842f0f1e7cc9465b95f5294c3e495dd5e3
4
- data.tar.gz: 6fa2494751fe0027a52abeac9e7cdb66dcce881139c855a074eb0cf90e8f11c0
3
+ metadata.gz: 7d3a6108bbb29f59b67eac0c9e06b9e67824e926802366cedf34138fe7fea734
4
+ data.tar.gz: 2c0e7a71656edb9832b024c97094ef0971c5a9ceb836f44225933f85d1821e82
5
5
  SHA512:
6
- metadata.gz: 3fa88e9595021d89571795e8b9c0ce2cdb17f3fed68a3e357cb5572ec1e710f1b29f2c6235942d583a13f2946abb1998544edd18b0ec544587a7b7f3d4f12b7d
7
- data.tar.gz: 935ab57a56740cd0f0fb75b650cae3f258e6e583da5a05e4af357eef6724530c1750b4205fa4e80b9a6bca416ff2e13f4f5738a183341d503d05fcb55a3164ad
6
+ metadata.gz: d4cf177c3a6e7dfa18bbf2018b28555beff7d58fbb2781f3a589850d9deaeb5203577aed31612098e15c5ed79240e3deb9f1de4b5ebbac5b992148f7b96c98d5
7
+ data.tar.gz: 40779b25d4c21165b35af9cdb40900b40f4ad3bb1968d9fc85cc30ec50e4b78eb0b84254cd6e74bc5a504d78e257d33b0659a60aa6d92ebe977c219a55329225
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.3] - 2026-05-18
4
+
5
+ - Add limit handling for binary/varbinary columns in format_column. [#39](https://github.com/smartbank-inc/fast_schema_dumper/pull/39)
6
+
3
7
  ## [0.5.2] - 2026-04-15
4
8
 
5
9
  - Fix generated column dump order to match ActiveRecord::SchemaDumper. [#32](https://github.com/smartbank-inc/fast_schema_dumper/pull/32)
@@ -386,6 +386,11 @@ module FastSchemaDumper
386
386
  col_def += ", limit: 3"
387
387
  end
388
388
 
389
+ # limit (binary, varbinary)
390
+ if ['binary', 'varbinary'].include?(column['DATA_TYPE']) && column['CHARACTER_MAXIMUM_LENGTH']
391
+ col_def += ", limit: #{column['CHARACTER_MAXIMUM_LENGTH']}"
392
+ end
393
+
389
394
  # size (text)
390
395
  if column['DATA_TYPE'] == 'mediumtext'
391
396
  col_def += ", size: :medium"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastSchemaDumper
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_schema_dumper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daisuke Aritomo