uuid_v7 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +45 -1
- data/lib/uuid_v7/configuration.rb +1 -1
- data/lib/uuid_v7/version.rb +1 -1
- data/uuid_v7.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94567f6de44869cfa3bd066891e55473aa7f00fa12034eb312d846d848da15b2
|
4
|
+
data.tar.gz: afe1f2896353a13a33f35fcd4435e0b1473ea5dcf2aad514fbdd6e7b1442b0cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cae446d157e8da70b4c477f3cb608cdace0503a7bd5888400bc262d3735d6ebc269c0f98fb1cb9f04390cf26d3454bc225d558c8802eea8366bd6f82ba9a490
|
7
|
+
data.tar.gz: '0299d71e9c3148a04eda0b2d5cefa4bb1676e945f3db84862a4a7ce3f2c1d891ac4f70f3557caf6603f386b00e71cc1bf4d81d3e85e7eac283033dd798a452a7'
|
data/CHANGELOG.md
CHANGED
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/
|
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).
|
data/lib/uuid_v7/version.rb
CHANGED
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/
|
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.
|
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-
|
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/
|
115
|
+
homepage: https://github.com/joel/uuid_v7
|
116
116
|
licenses:
|
117
117
|
- MIT
|
118
118
|
metadata:
|