typelizer 0.4.1 → 0.4.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: 067c0e093a70b8c8273e7504004a687c08272a536367958662e9d7c2fe293151
4
- data.tar.gz: 6dc5ef91af5f50ead351f90ee6cf8026360f1f605d06df5a30e20a9633ec168b
3
+ metadata.gz: a41914a150239acf4de1b43149a0bfaa81c9511a6a5434aa445cfc9dbf3ee343
4
+ data.tar.gz: 82d1616845d782c041466d8500453afb8052a3d4fd8ce4e6f63c045c41a19544
5
5
  SHA512:
6
- metadata.gz: b518818c82709eea2ef5461272c929189d0fa59f53aa3f1cb6309e538ffe586b0bd2117cd520a165def41221f9f05528caf934842584f840f64370ce035488a9
7
- data.tar.gz: c89f29ad82e7fa44f3118385ccbd8a6ffb5fde9bbe1d3e400994704fdb8a709ccb9b22f029332cd36da6bdc3c8b190b5c0cf1c9492fa5e11cda4ad7d082c8898
6
+ metadata.gz: 1f51fef6373b00d177faceccebc84c87e22f428f684990aa3faa762a5cabca853cf609c7476f98cc34ce26d1737ace2f258c47099a23018755f3e595873009d1
7
+ data.tar.gz: fff6bc2ca1844cc45d7d7a2a6bf8ac269078243013acb4e83ead8a902936f62fcfd5e15a96fbcbb1289266c52f53446e4cb3fa74584eeef09ab86882eadcfc43
data/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning].
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.4.2] - 2025-06-23
11
+
12
+ ### Added
13
+
14
+ - Map `uuid` type to `string` by default. ([@ventsislaf])
15
+
16
+ ### Fixed
17
+
18
+ - Alba: fix `has_many` with a custom `key` generates single value type instead of array. ([@skryukov])
19
+
10
20
  ## [0.4.1] - 2025-06-10
11
21
 
12
22
  ### Added
@@ -167,8 +177,10 @@ and this project adheres to [Semantic Versioning].
167
177
  [@okuramasafumi]: https://github.com/okuramasafumi
168
178
  [@patvice]: https://github.com/patvice
169
179
  [@skryukov]: https://github.com/skryukov
180
+ [@ventsislaf]: https://github.com/ventsislaf
170
181
 
171
- [Unreleased]: https://github.com/skryukov/typelizer/compare/v0.4.1...HEAD
182
+ [Unreleased]: https://github.com/skryukov/typelizer/compare/v0.4.2...HEAD
183
+ [0.4.2]: https://github.com/skryukov/typelizer/compare/v0.4.1...v0.4.2
172
184
  [0.4.1]: https://github.com/skryukov/typelizer/compare/v0.4.0...v0.4.1
173
185
  [0.4.0]: https://github.com/skryukov/typelizer/compare/v0.3.0...v0.4.0
174
186
  [0.3.0]: https://github.com/skryukov/typelizer/compare/v0.2.0...v0.3.0
@@ -7,7 +7,8 @@ module Typelizer
7
7
  integer: :number,
8
8
  string: :string,
9
9
  text: :string,
10
- citext: :string
10
+ citext: :string,
11
+ uuid: :string
11
12
  }.tap do |types|
12
13
  types.default = :unknown
13
14
  end
@@ -98,7 +98,7 @@ module Typelizer
98
98
  optional: false,
99
99
  nullable: false,
100
100
  multi: false, # we override this in typelize_method_transform
101
- column_name: column_name,
101
+ column_name: attr.name.is_a?(Symbol) ? attr.name.name : attr.name,
102
102
  **options
103
103
  )
104
104
  when ::Alba::TypedAttribute
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Typelizer
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typelizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svyatoslav Kryukov