sqlite_crypto 1.0.1 → 1.0.3
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/CHANGELOG.md +16 -0
- data/README.md +3 -2
- data/lib/sqlite_crypto/schema_definitions.rb +17 -0
- data/lib/sqlite_crypto/version.rb +1 -1
- data/lib/sqlite_crypto.rb +1 -0
- metadata +3 -100
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12ea964ba36c09b8c7e9744815cdc00c5a01faf12f1c7f59d35b8b7f8c2745d8
|
|
4
|
+
data.tar.gz: f64a0179468f9f080f8cbd73af82cdaaeaa97b32c7dc65bb266332641ea3c602
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c72db90ece738364c5c6474e81adb82a2429b6ec8d41271dadf1666076954ba819c33cbfeacbcc93787cd917aacce5af2b9e381e660f02d348ba8137b3502caf
|
|
7
|
+
data.tar.gz: 49ea138522ab69884e191d9c6e26ad32831c14b719b2f787271d6183dc9e0f06ae513eb909d89bb460174f8944b2343aeeb45847a7ba95bfb1c0a0557288a15e
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.3] - 2025-12-30
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Ruby 4.0.0 Support**: Added compatibility with Ruby 4.0.0 released on December 25, 2025
|
|
12
|
+
- Added `benchmark` gem as test dependency (removed from Ruby 4.0.0 stdlib)
|
|
13
|
+
- Reorganized gemspec to include only runtime dependencies
|
|
14
|
+
- Moved development and test dependencies to Gemfile
|
|
15
|
+
|
|
16
|
+
## [1.0.2] - 2025-12-21
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- **Schema Definitions**: Added global `uuid` and `ulid` helper methods for schema.rb
|
|
20
|
+
- Fixes `NameError: undefined local variable or method 'uuid'` when loading schema.rb
|
|
21
|
+
- Schema dumper now outputs `id: uuid` which correctly resolves to `:uuid` symbol
|
|
22
|
+
- Allows schema.rb to be loaded without errors
|
|
23
|
+
|
|
8
24
|
## [1.0.1] - 2025-12-21
|
|
9
25
|
|
|
10
26
|
### Fixed
|
data/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# SQLite crypto
|
|
2
2
|
|
|
3
|
-
[](https://github.com/bart-oz/sqlite_crypto/releases)
|
|
4
4
|
[](LICENSE.txt)
|
|
5
5
|
[](https://github.com/bart-oz/sqlite_crypto/actions)
|
|
6
|
-
[](https://github.com/bart-oz/sqlite_crypto/actions)
|
|
7
7
|
[](https://github.com/bart-oz/sqlite_crypto)
|
|
8
8
|
|
|
9
9
|
Seamless UUID and ULID primary key support for Rails with SQLite3.
|
|
@@ -37,6 +37,7 @@ ULID: 01ARZ3NDEKTSV4RRFFQ69G5FAV (time-sortable, 26 chars)
|
|
|
37
37
|
| 3.2 | ✅ | ✅ | ✅ | ✅ |
|
|
38
38
|
| 3.3 | ✅ | ✅ | ✅ | ✅ |
|
|
39
39
|
| 3.4 | ✅ | ✅ | ✅ | ✅ |
|
|
40
|
+
| 4.0 | ✅ | ✅ | ✅ | ✅ |
|
|
40
41
|
|
|
41
42
|
**Recommended**: Ruby 3.3+ with Rails 8.0+
|
|
42
43
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Module to add uuid/ulid helper methods to schema loading context
|
|
4
|
+
module SqliteCrypto
|
|
5
|
+
module SchemaDefinitions
|
|
6
|
+
def uuid
|
|
7
|
+
:uuid
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def ulid
|
|
11
|
+
:ulid
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Extend the main object context for schema.rb loading
|
|
17
|
+
Object.include(SqliteCrypto::SchemaDefinitions)
|
data/lib/sqlite_crypto.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sqlite_crypto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BartOz
|
|
@@ -51,104 +51,6 @@ dependencies:
|
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '1.0'
|
|
54
|
-
- !ruby/object:Gem::Dependency
|
|
55
|
-
name: bundler
|
|
56
|
-
requirement: !ruby/object:Gem::Requirement
|
|
57
|
-
requirements:
|
|
58
|
-
- - ">="
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version: '2.0'
|
|
61
|
-
type: :development
|
|
62
|
-
prerelease: false
|
|
63
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
-
requirements:
|
|
65
|
-
- - ">="
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
version: '2.0'
|
|
68
|
-
- !ruby/object:Gem::Dependency
|
|
69
|
-
name: rake
|
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
|
71
|
-
requirements:
|
|
72
|
-
- - ">="
|
|
73
|
-
- !ruby/object:Gem::Version
|
|
74
|
-
version: '12.0'
|
|
75
|
-
type: :development
|
|
76
|
-
prerelease: false
|
|
77
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - ">="
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: '12.0'
|
|
82
|
-
- !ruby/object:Gem::Dependency
|
|
83
|
-
name: rspec-rails
|
|
84
|
-
requirement: !ruby/object:Gem::Requirement
|
|
85
|
-
requirements:
|
|
86
|
-
- - "~>"
|
|
87
|
-
- !ruby/object:Gem::Version
|
|
88
|
-
version: '6.0'
|
|
89
|
-
type: :development
|
|
90
|
-
prerelease: false
|
|
91
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
92
|
-
requirements:
|
|
93
|
-
- - "~>"
|
|
94
|
-
- !ruby/object:Gem::Version
|
|
95
|
-
version: '6.0'
|
|
96
|
-
- !ruby/object:Gem::Dependency
|
|
97
|
-
name: simplecov
|
|
98
|
-
requirement: !ruby/object:Gem::Requirement
|
|
99
|
-
requirements:
|
|
100
|
-
- - "~>"
|
|
101
|
-
- !ruby/object:Gem::Version
|
|
102
|
-
version: '0.22'
|
|
103
|
-
type: :development
|
|
104
|
-
prerelease: false
|
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
-
requirements:
|
|
107
|
-
- - "~>"
|
|
108
|
-
- !ruby/object:Gem::Version
|
|
109
|
-
version: '0.22'
|
|
110
|
-
- !ruby/object:Gem::Dependency
|
|
111
|
-
name: sqlite3
|
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
|
113
|
-
requirements:
|
|
114
|
-
- - ">="
|
|
115
|
-
- !ruby/object:Gem::Version
|
|
116
|
-
version: 1.6.0
|
|
117
|
-
type: :development
|
|
118
|
-
prerelease: false
|
|
119
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
120
|
-
requirements:
|
|
121
|
-
- - ">="
|
|
122
|
-
- !ruby/object:Gem::Version
|
|
123
|
-
version: 1.6.0
|
|
124
|
-
- !ruby/object:Gem::Dependency
|
|
125
|
-
name: standard
|
|
126
|
-
requirement: !ruby/object:Gem::Requirement
|
|
127
|
-
requirements:
|
|
128
|
-
- - "~>"
|
|
129
|
-
- !ruby/object:Gem::Version
|
|
130
|
-
version: '1.30'
|
|
131
|
-
type: :development
|
|
132
|
-
prerelease: false
|
|
133
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
134
|
-
requirements:
|
|
135
|
-
- - "~>"
|
|
136
|
-
- !ruby/object:Gem::Version
|
|
137
|
-
version: '1.30'
|
|
138
|
-
- !ruby/object:Gem::Dependency
|
|
139
|
-
name: appraisal
|
|
140
|
-
requirement: !ruby/object:Gem::Requirement
|
|
141
|
-
requirements:
|
|
142
|
-
- - "~>"
|
|
143
|
-
- !ruby/object:Gem::Version
|
|
144
|
-
version: '2.5'
|
|
145
|
-
type: :development
|
|
146
|
-
prerelease: false
|
|
147
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
148
|
-
requirements:
|
|
149
|
-
- - "~>"
|
|
150
|
-
- !ruby/object:Gem::Version
|
|
151
|
-
version: '2.5'
|
|
152
54
|
description: A lightweight, modular gem providing transparent UUID/ULID primary key
|
|
153
55
|
configuration for Rails applications using SQLite.
|
|
154
56
|
email:
|
|
@@ -164,6 +66,7 @@ files:
|
|
|
164
66
|
- lib/sqlite_crypto/migration_helpers.rb
|
|
165
67
|
- lib/sqlite_crypto/model_extensions.rb
|
|
166
68
|
- lib/sqlite_crypto/railtie.rb
|
|
69
|
+
- lib/sqlite_crypto/schema_definitions.rb
|
|
167
70
|
- lib/sqlite_crypto/schema_dumper.rb
|
|
168
71
|
- lib/sqlite_crypto/sqlite3_adapter_extension.rb
|
|
169
72
|
- lib/sqlite_crypto/type/base.rb
|
|
@@ -189,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
189
92
|
- !ruby/object:Gem::Version
|
|
190
93
|
version: '0'
|
|
191
94
|
requirements: []
|
|
192
|
-
rubygems_version:
|
|
95
|
+
rubygems_version: 4.0.3
|
|
193
96
|
specification_version: 4
|
|
194
97
|
summary: Seamless UUID/ULID support for Rails 8 with SQLite
|
|
195
98
|
test_files: []
|