uuid_v7 0.1.0 → 0.1.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: 7f2e1977f048847c67027e4d8b3198694649c1f133c2aaa67860f9e4ac2d88f6
4
- data.tar.gz: fc53aad1bee9794d09625d9dacde902740bb64c37cac35880d22303d06ca7c99
3
+ metadata.gz: 94567f6de44869cfa3bd066891e55473aa7f00fa12034eb312d846d848da15b2
4
+ data.tar.gz: afe1f2896353a13a33f35fcd4435e0b1473ea5dcf2aad514fbdd6e7b1442b0cb
5
5
  SHA512:
6
- metadata.gz: 4d190d6665642ad22858d65fb97456eb79de4cce1ac73fc1f93af0fe675685087dfa01d68457f42a21152c816c48bb7393a6bf80df6869d58ac8b305482471ef
7
- data.tar.gz: 4795012dfad57805620ec1527f2226daab4ffea576efc91bcb507467d0f3d5a9fec3542defeae0405b7070844efd431d8443400a6331e8070c1c52ce1d528161
6
+ metadata.gz: 5cae446d157e8da70b4c477f3cb608cdace0503a7bd5888400bc262d3735d6ebc269c0f98fb1cb9f04390cf26d3454bc225d558c8802eea8366bd6f82ba9a490
7
+ data.tar.gz: '0299d71e9c3148a04eda0b2d5cefa4bb1676e945f3db84862a4a7ce3f2c1d891ac4f70f3557caf6603f386b00e71cc1bf4d81d3e85e7eac283033dd798a452a7'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2023-12-11
4
+
5
+ Fix wrong default field name. Change from :uuid to :id
6
+
3
7
  ## [0.1.0] - 2023-11-28
4
8
 
5
9
  - Initial release
data/README.md CHANGED
@@ -5,6 +5,12 @@
5
5
 
6
6
  **Note:** PostgreSQL users do not require this gem as PostgreSQL supports UUID natively.
7
7
 
8
+ ## Supported databases
9
+
10
+ Mysql and SQLite
11
+
12
+ NOTE: Postgresql support natively UUID
13
+
8
14
  ## Features
9
15
  - Converts UUID V7 CHAR(36) to a more efficient CHAR(32) and stores it in BINARY(16) for performance enhancement.
10
16
  - Integrates seamlessly with `ActiveRecord::Base`, enabling UUID as the primary key for models.
@@ -140,4 +146,42 @@ end
140
146
 
141
147
  ## Contributing
142
148
 
143
- Bug reports and pull requests are welcome on GitHub at [https://github.com/alliantist/uuid_v7].
149
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/joel/uuid_v7].
150
+
151
+ ## Development
152
+
153
+ After checking out the repo, run `bin/setup` to install dependencies.
154
+
155
+ Then, run `DEBUG=true bundle exec rake`, this run the code against SQLite.
156
+
157
+ For Mysql, please setup the database as follow:
158
+
159
+ ```shell
160
+ docker run --rm \
161
+ --name mysql-uuid-v7-test \
162
+ --publish 3308:3306 \
163
+ --env MYSQL_ALLOW_EMPTY_PASSWORD=yes \
164
+ --detach mysql:latest
165
+ ```
166
+
167
+ Create the databse:
168
+
169
+ ```shell
170
+ docker exec mysql-uuid-v7-test bash -c "mysql -u root -e 'CREATE DATABASE IF NOT EXISTS uuid_v7_test;'"
171
+ ```
172
+
173
+ and run
174
+
175
+ `DEBUG=true MYSQL_HOST="0.0.0.0" MYSQL_PORT=3308 DATABASE=mysql bundle exec rake`
176
+
177
+ ## Contributing
178
+
179
+ Bug reports and pull requests are welcome on GitHub at https://github.com/joel/uuid_v7. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/joel/uuid_v7/blob/main/CODE_OF_CONDUCT.md).
180
+
181
+ ## License
182
+
183
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
184
+
185
+ ## Code of Conduct
186
+
187
+ Everyone interacting in the UuidV7 project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/joel/uuid_v7/blob/main/CODE_OF_CONDUCT.md).
@@ -5,7 +5,7 @@ module UuidV7
5
5
  attr_accessor :field_name, :implicit_inclusion_strategy
6
6
 
7
7
  def initialize
8
- self.field_name = :uuid
8
+ self.field_name = :id
9
9
  self.implicit_inclusion_strategy = true
10
10
  end
11
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UuidV7
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/uuid_v7.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = "Provides UUID V7 support for Ruby on Rails applications using Mysql and Sqlite."
12
12
  spec.description = "uuid_v7 enables UUID V7 as primary keys in Rails, optimized for Mysql and Sqlite, with efficient migration and integration features."
13
13
 
14
- spec.homepage = "https://github.com/alliantist/uuid_v7"
14
+ spec.homepage = "https://github.com/joel/uuid_v7"
15
15
  spec.license = "MIT"
16
16
  spec.required_ruby_version = ">= 3.2.1"
17
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid_v7
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Azemar
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-07 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -112,7 +112,7 @@ files:
112
112
  - lib/uuid_v7/version.rb
113
113
  - sig/uuid_v7.rbs
114
114
  - uuid_v7.gemspec
115
- homepage: https://github.com/alliantist/uuid_v7
115
+ homepage: https://github.com/joel/uuid_v7
116
116
  licenses:
117
117
  - MIT
118
118
  metadata: