hyperuuid 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 +4 -4
- data/LICENSE +21 -0
- data/README.md +3 -0
- data/lib/hyperuuid/native/linux-arm64/libhyperuuid.so +0 -0
- data/lib/hyperuuid/native/linux-x64/libhyperuuid.so +0 -0
- data/lib/hyperuuid/native/osx-arm64/libhyperuuid.dylib +0 -0
- data/lib/hyperuuid/native/osx-x64/libhyperuuid.dylib +0 -0
- data/lib/hyperuuid/native/win-arm64/hyperuuid.dll +0 -0
- data/lib/hyperuuid/native/win-x64/hyperuuid.dll +0 -0
- data/lib/hyperuuid/runtime.rb +1 -1
- data/lib/hyperuuid/uuid.rb +2 -1
- data/lib/hyperuuid.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bb15dbd3d7f4e1f81929493c414d47a6e2120b3d39cb3ed87e67fe129210e1f1
|
|
4
|
+
data.tar.gz: 75242dd27208819b0246e544843ee086932a7faf20d8ae84aacec151ec108054
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71331ba2f44fdb1d02ce53f64ee466214334f159bf311aa2c195dd7659504b9a375c3078987fe87a5b9783a42d95df12aedbe217d52d277c2d1794fa6e42e185
|
|
7
|
+
data.tar.gz: 12df5cf674b5dd28bf7bdcef724963096b2c997cd47657b7952b977c5e27ccc509b328632580bba6520a7392af190210e4771e9cbbd2b595b2571fe96e2ba87d
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Skunk Werkx
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# hyperuuid
|
|
2
2
|
|
|
3
|
+
[](https://github.com/SkunkWerkx/HyperUuid/actions/workflows/ci.yml)
|
|
4
|
+
[](https://rubygems.org/gems/hyperuuid)
|
|
5
|
+
|
|
3
6
|
**Ruby's own stdlib stops at `SecureRandom.uuid` — random v4, full stop. No v5, no v6, no v7. This gem is the whole RFC, with zero gem dependency beyond `Fiddle` (which ships with every Ruby install) — and it's faster than `SecureRandom.uuid` too.**
|
|
4
7
|
|
|
5
8
|
RFC 9562 UUID v4 (random), v5 (deterministic), v6 and v7 (time-sortable) generation, with
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/hyperuuid/runtime.rb
CHANGED
|
@@ -5,7 +5,7 @@ module HyperUuid
|
|
|
5
5
|
# C-ABI call, no runtime bridge (the same "no shim" positioning as the Go/Swift bindings'
|
|
6
6
|
# purego/dlopen approach). Fiddle ships with every Ruby install; it's a plain gem
|
|
7
7
|
# dependency here (see hyperuuid.gemspec) rather than a third-party one — mirroring Go's
|
|
8
|
-
# "no cgo" and Python's
|
|
8
|
+
# "no cgo" and Python's zero-dependency PyO3 wheels.
|
|
9
9
|
#
|
|
10
10
|
# Unlike the Go/Swift bindings, which embed their native builds inside a single compiled
|
|
11
11
|
# archive and must extract to a temp file before dlopen can see a real path, a Ruby gem's
|
data/lib/hyperuuid/uuid.rb
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module HyperUuid
|
|
2
2
|
# A parsed 16-byte RFC 9562 UUID value. Minimal by design — this gem has no runtime
|
|
3
3
|
# dependency on the `uuid` gem, the same "no extra dependency" positioning as the Go
|
|
4
|
-
# binding's purego-only/no-cgo approach and the Python binding's
|
|
4
|
+
# binding's purego-only/no-cgo approach and the Python binding's dependency-free PyO3
|
|
5
|
+
# wheels.
|
|
5
6
|
class Uuid
|
|
6
7
|
include Comparable
|
|
7
8
|
|
data/lib/hyperuuid.rb
CHANGED
|
@@ -13,7 +13,7 @@ require_relative "hyperuuid/runtime"
|
|
|
13
13
|
module HyperUuid
|
|
14
14
|
# This gem's own version — distinct from the RFC 9562 UUID *versions* (v4/v5/v6/v7) the
|
|
15
15
|
# rest of this module generates.
|
|
16
|
-
VERSION = "0.1.
|
|
16
|
+
VERSION = "0.1.1"
|
|
17
17
|
|
|
18
18
|
# Creates a random UUID version 4 (RFC 9562 §5.4).
|
|
19
19
|
def self.new_v4
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hyperuuid
|
|
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
|
- Brian Buvinghausen
|
|
@@ -73,6 +73,7 @@ executables: []
|
|
|
73
73
|
extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
|
75
75
|
files:
|
|
76
|
+
- LICENSE
|
|
76
77
|
- README.md
|
|
77
78
|
- lib/hyperuuid.rb
|
|
78
79
|
- lib/hyperuuid/namespaces.rb
|