uuid_v7 0.1.5 → 0.1.6
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 +4 -4
- data/.rubocop_todo.yml +16 -4
- data/CHANGELOG.md +4 -0
- data/lib/uuid_v7/railtie.rb +7 -0
- data/lib/uuid_v7/types/trilogy_type.rb +10 -0
- data/lib/uuid_v7/version.rb +1 -1
- data/uuid_v7.gemspec +1 -1
- metadata +14 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: add0de95192ee705489066515929c0517d8747d9ac41acb41e36e6e93df8dcf6
|
4
|
+
data.tar.gz: 77ecf143cf7a75e1e60c70d04ce6f5f6e05691af4bbe98cd2782a8ce802b8c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c36b3c9cb26921762e1acf8b51ff48eeba73c9d4fd0d421f2c866d928be3870615fa114b3339fde19c44075313d6146feea5005f1e92a3f014f6f628850acd0
|
7
|
+
data.tar.gz: c93d607123e759ebd048058b21ef77e2267e97ec3f4e6010f709b901480f07e137dce15c1398e7112668c60c732b31de3251bce5b00d29af7c55c4c031f3fee7
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2025-03-16 06:02:08 UTC using RuboCop version 1.74.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -11,6 +11,12 @@
|
|
11
11
|
Metrics/AbcSize:
|
12
12
|
Max: 23
|
13
13
|
|
14
|
+
# Offense count: 1
|
15
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
|
16
|
+
# AllowedMethods: refine
|
17
|
+
Metrics/BlockLength:
|
18
|
+
Max: 28
|
19
|
+
|
14
20
|
# Offense count: 3
|
15
21
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
16
22
|
Metrics/MethodLength:
|
@@ -37,7 +43,7 @@ RSpec/ExampleLength:
|
|
37
43
|
RSpec/MultipleExpectations:
|
38
44
|
Max: 2
|
39
45
|
|
40
|
-
# Offense count:
|
46
|
+
# Offense count: 6
|
41
47
|
# Configuration parameters: AllowedGroups.
|
42
48
|
RSpec/NestedGroups:
|
43
49
|
Max: 6
|
@@ -47,9 +53,15 @@ RSpec/SubjectStub:
|
|
47
53
|
Exclude:
|
48
54
|
- 'spec/integrations/migrations/mysql/fx_migration_spec.rb'
|
49
55
|
|
50
|
-
# Offense count:
|
56
|
+
# Offense count: 1
|
57
|
+
# This cop supports safe autocorrection (--autocorrect).
|
58
|
+
Style/RedundantParentheses:
|
59
|
+
Exclude:
|
60
|
+
- 'lib/uuid_v7/patches/mysql/fx_migration.rb'
|
61
|
+
|
62
|
+
# Offense count: 10
|
51
63
|
# This cop supports safe autocorrection (--autocorrect).
|
52
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
64
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
53
65
|
# URISchemes: http, https
|
54
66
|
Layout/LineLength:
|
55
67
|
Max: 155
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.1.6] - 2025-03-16
|
4
|
+
|
5
|
+
- Add the support of the DB adapter Trilogy https://github.com/trilogy-libraries/trilogy
|
6
|
+
|
3
7
|
## [0.1.5] - 2024-07-15
|
4
8
|
|
5
9
|
- Rails 8.0 brings some changes, the data is correctly recorded as BINARY in SQLite, so we can simplify the code, but too stay compatible the code is less simple.
|
data/lib/uuid_v7/railtie.rb
CHANGED
@@ -14,6 +14,13 @@ module UuidV7
|
|
14
14
|
require_relative "types/mysql_type"
|
15
15
|
ActiveRecord::Type.register(:uuid_v7, UuidV7::Types::MysqlType, adapter: :mysql2)
|
16
16
|
|
17
|
+
ActiveSupport.on_load(:active_record) do
|
18
|
+
ActiveRecord::Migration.include(Patches::Mysql::FxMigration) unless ActiveRecord::Migration.include?(Patches::Mysql::FxMigration)
|
19
|
+
end
|
20
|
+
when "Trilogy"
|
21
|
+
require_relative "types/trilogy_type"
|
22
|
+
ActiveRecord::Type.register(:uuid_v7, UuidV7::Types::TrilogyType, adapter: :trilogy)
|
23
|
+
|
17
24
|
ActiveSupport.on_load(:active_record) do
|
18
25
|
ActiveRecord::Migration.include(Patches::Mysql::FxMigration) unless ActiveRecord::Migration.include?(Patches::Mysql::FxMigration)
|
19
26
|
end
|
data/lib/uuid_v7/version.rb
CHANGED
data/uuid_v7.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency "activemodel", ">= 7.0" # 7 and above
|
33
33
|
spec.add_dependency "activesupport", ">= 7.0" # 7 and above
|
34
34
|
spec.add_dependency "base58", "~> 0.2.3" # Used to convert between integers and base58 strings.
|
35
|
-
spec.add_dependency "securerandom", "
|
35
|
+
spec.add_dependency "securerandom", ">= 0.3", "< 0.5" # Needed for SecureRandom.uuid_v7 until we upgrade to Ruby 3.3
|
36
36
|
spec.add_dependency "zeitwerk", "~> 2.5" # Used to autoload classes
|
37
37
|
|
38
38
|
# spec.add_dependency "example-gem", "~> 1.0"
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Azemar
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-16 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activemodel
|
@@ -56,16 +55,22 @@ dependencies:
|
|
56
55
|
name: securerandom
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
|
-
- - "
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0.3'
|
61
|
+
- - "<"
|
60
62
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
63
|
+
version: '0.5'
|
62
64
|
type: :runtime
|
63
65
|
prerelease: false
|
64
66
|
version_requirements: !ruby/object:Gem::Requirement
|
65
67
|
requirements:
|
66
|
-
- - "
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0.3'
|
71
|
+
- - "<"
|
67
72
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
73
|
+
version: '0.5'
|
69
74
|
- !ruby/object:Gem::Dependency
|
70
75
|
name: zeitwerk
|
71
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,6 +115,7 @@ files:
|
|
110
115
|
- lib/uuid_v7/types/base.rb
|
111
116
|
- lib/uuid_v7/types/mysql_type.rb
|
112
117
|
- lib/uuid_v7/types/sqlite_type.rb
|
118
|
+
- lib/uuid_v7/types/trilogy_type.rb
|
113
119
|
- lib/uuid_v7/version.rb
|
114
120
|
- sig/uuid_v7.rbs
|
115
121
|
- uuid_v7.gemspec
|
@@ -118,7 +124,6 @@ licenses:
|
|
118
124
|
- MIT
|
119
125
|
metadata:
|
120
126
|
rubygems_mfa_required: 'true'
|
121
|
-
post_install_message:
|
122
127
|
rdoc_options: []
|
123
128
|
require_paths:
|
124
129
|
- lib
|
@@ -133,8 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
138
|
- !ruby/object:Gem::Version
|
134
139
|
version: '0'
|
135
140
|
requirements: []
|
136
|
-
rubygems_version: 3.5
|
137
|
-
signing_key:
|
141
|
+
rubygems_version: 3.6.5
|
138
142
|
specification_version: 4
|
139
143
|
summary: Provides UUID V7 support for Ruby on Rails applications using Mysql and Sqlite.
|
140
144
|
test_files: []
|