uuid_v7 0.1.6 → 0.1.6.1

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: add0de95192ee705489066515929c0517d8747d9ac41acb41e36e6e93df8dcf6
4
- data.tar.gz: 77ecf143cf7a75e1e60c70d04ce6f5f6e05691af4bbe98cd2782a8ce802b8c78
3
+ metadata.gz: 82dc635e5c3c82eefc11db92a77014473d6f3a9e9c881415487a237a3925c86d
4
+ data.tar.gz: ffc8f4a247decfb863c3d11482fb34118c8ff647c9e1e4fa8453ec3248a09e10
5
5
  SHA512:
6
- metadata.gz: 3c36b3c9cb26921762e1acf8b51ff48eeba73c9d4fd0d421f2c866d928be3870615fa114b3339fde19c44075313d6146feea5005f1e92a3f014f6f628850acd0
7
- data.tar.gz: c93d607123e759ebd048058b21ef77e2267e97ec3f4e6010f709b901480f07e137dce15c1398e7112668c60c732b31de3251bce5b00d29af7c55c4c031f3fee7
6
+ metadata.gz: da7aae138eb91b51ff144c953a38eed903b292a3b09f24097097e5989a956af354da96c791885eb3d97ed3b4353d2a539d08221e94ad20a22c962fb6a3fb706e
7
+ data.tar.gz: a96d5823744d3ebead0ea9145f74b5ff7e4be646d072f4adafd47342aec0a00328ca48bcfb954941f1ad88bef44f51785bf42b57b973cd0d68420abf0d02d56f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.6.1] - 2025-03-16
4
+
5
+ - Update the lib/generators/uuid_v7/migrations/templates/create_table_migration.rb.tt to handle Trilogy.
6
+
3
7
  ## [0.1.6] - 2025-03-16
4
8
 
5
9
  - Add the support of the DB adapter Trilogy https://github.com/trilogy-libraries/trilogy
@@ -5,7 +5,7 @@
5
5
  #
6
6
  class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
7
7
  def change
8
- <% if ["SQLite", "Mysql2"].include?(ActiveRecord::Base.connection.adapter_name) -%>
8
+ <% if ["SQLite", "Mysql2", "Trilogy"].include?(ActiveRecord::Base.connection.adapter_name) -%>
9
9
  create_table :<%= table_name %>, id: false do |t|
10
10
  t.binary :<%= UuidV7.configuration.field_name %>, limit: 16, null: false, index: { unique: true }, primary_key: true
11
11
  <% else -%>
@@ -17,7 +17,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Mi
17
17
  <% elsif attribute.token? -%>
18
18
  t.string :<%= attribute.name %><%= attribute.inject_options %>
19
19
  <% elsif attribute.reference? -%>
20
- <% if ["SQLite", "Mysql2"].include?(ActiveRecord::Base.connection.adapter_name) -%>
20
+ <% if ["SQLite", "Mysql2", "Trilogy"].include?(ActiveRecord::Base.connection.adapter_name) -%>
21
21
  <% if UuidV7.configuration.field_name == :id -%>
22
22
  t.references :<%= attribute.name %>, foreign_key: true, index: true, type: :binary, limit: 16, null: false
23
23
  <% else -%>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UuidV7
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.6.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid_v7
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Azemar