is_even_ai 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/CHANGELOG.md +12 -1
- data/lib/is_even_ai/cli.rb +3 -1
- data/lib/is_even_ai/version.rb +1 -1
- data/lib/is_even_ai.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b8984992ac25c71ade16d6e331a389b2cea158d1643fc3035dd768d6b46e6964
|
|
4
|
+
data.tar.gz: 1aef7f1fd3fdf5e0e815901c337e181b6e6e489c1bf88ce2bcac856dce4642d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0aafec7f023584714aaa91202ccc7a73668c29933c6df9cf7f172dff84a97e2f69afb55b70173bd143b9f37bc599ceadf5636f36d270a57f3974f3c3f14153d2
|
|
7
|
+
data.tar.gz: 888d4b2d5419b71ff006094f843a6660d1d0862cef50521aca67bd2377030c7fbec475cfe4de969c399fa4519856fb7bbdeacef4951a8d8e9ea3fd0a9e7455cd
|
data/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,18 @@ All notable changes to this project are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres to
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
-
## [0.1.
|
|
7
|
+
## [0.1.1] - 2026-11-22
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Fail to load on Ruby 4.0 and later: `benchmark` is no longer a default gem. The CLI now times itself with
|
|
12
|
+
`Process.clock_gettime`, so the gem still has zero runtime dependencies.
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- CI now runs against Ruby 4.0 and 4.1 as well as 3.2 to 3.4.
|
|
17
|
+
|
|
18
|
+
## [0.1.0] - 2026-11-22
|
|
8
19
|
|
|
9
20
|
### Added
|
|
10
21
|
|
data/lib/is_even_ai/cli.rb
CHANGED
|
@@ -89,7 +89,9 @@ module IsEvenAI
|
|
|
89
89
|
def native_latency_ms(input)
|
|
90
90
|
return nil unless input.is_a?(Integer)
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
started = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
93
|
+
NATIVE_ITERATIONS.times { input.even? }
|
|
94
|
+
seconds = Process.clock_gettime(Process::CLOCK_MONOTONIC) - started
|
|
93
95
|
seconds * 1000.0 / NATIVE_ITERATIONS
|
|
94
96
|
end
|
|
95
97
|
|
data/lib/is_even_ai/version.rb
CHANGED
data/lib/is_even_ai.rb
CHANGED