teptris 0.2.8-aarch64-linux → 0.2.10-aarch64-linux
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/lib/teptris/version.rb +1 -1
- data/lib/teptris.rb +16 -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: f4d4b37f12f78fe56687537a2abc18b3d2937778138632aa51a59bc20a37d16f
|
|
4
|
+
data.tar.gz: 5d1cdc13f001dd28aaae4ae5e66911a3b54883b3f56e44cec9287af38c58de13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 131ead8e92e3fc3a01988d92f4077e9efacf1f5d492e2e9f6a208705bb2b2e0d52d3441e751f03afa27028e6dcfa1585ec1cfc3a79f557272e0d5125a009ee32
|
|
7
|
+
data.tar.gz: b20301666bfced51c7030affc2ec4eacb5663a90b78ff73a0e172ffa41a6a3f7f7ac6296ce7f08255ef53ceabd33c6b1b44d7aa49e03aaaff9bd9c69ed747ff8
|
data/lib/teptris/version.rb
CHANGED
data/lib/teptris.rb
CHANGED
|
@@ -3,7 +3,22 @@ require "date"
|
|
|
3
3
|
require_relative "teptris/version"
|
|
4
4
|
require_relative "teptris/error"
|
|
5
5
|
require_relative "teptris/toml"
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
# Windows ucrt rubies name their DLL per minor (x64-ucrt-ruby330.dll), so
|
|
8
|
+
# the mingw gems ship one extension per ruby minor beside a shared
|
|
9
|
+
# libteptris.dll (nokogiri's fat-gem layout). The native extension IS the
|
|
10
|
+
# binding — no fallback, ever.
|
|
11
|
+
begin
|
|
12
|
+
if RUBY_PLATFORM =~ /mingw/
|
|
13
|
+
require "teptris/#{RUBY_VERSION[/\A\d+\.\d+/]}/teptris_ext"
|
|
14
|
+
else
|
|
15
|
+
require "teptris_ext"
|
|
16
|
+
end
|
|
17
|
+
rescue LoadError
|
|
18
|
+
raise LoadError,
|
|
19
|
+
"teptris native extension not available for #{RUBY_PLATFORM} " \
|
|
20
|
+
"ruby #{RUBY_VERSION} (no fallback by design)"
|
|
21
|
+
end
|
|
7
22
|
|
|
8
23
|
module Teptris
|
|
9
24
|
TEPTRIS_OK = 0
|