teptris 0.2.3-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aee5c8157880225583d8867226e1d68b68b1318720be95c0888e641877950056
4
- data.tar.gz: 6bb4cf53cf92d88398b55be1da1aaed7c86c037c4763d3703a91ed073dd2c1d3
3
+ metadata.gz: f4d4b37f12f78fe56687537a2abc18b3d2937778138632aa51a59bc20a37d16f
4
+ data.tar.gz: 5d1cdc13f001dd28aaae4ae5e66911a3b54883b3f56e44cec9287af38c58de13
5
5
  SHA512:
6
- metadata.gz: 593680ce4cc130df4e6597b5c2d91e8eabcee96879936cbc52211b4771277b8fed450cf925ac8da9ae01189ec5150ed240bec285b1cb7992ed21ae8f1833c503
7
- data.tar.gz: '048b5931ea7ad0042b406ebc48d7357d252d10f56601e174e2c1e23228a9078b92276c420cd3e3f59a321c6da2d22dff4ef9513a025325ba67de88affe2599d7'
6
+ metadata.gz: 131ead8e92e3fc3a01988d92f4077e9efacf1f5d492e2e9f6a208705bb2b2e0d52d3441e751f03afa27028e6dcfa1585ec1cfc3a79f557272e0d5125a009ee32
7
+ data.tar.gz: b20301666bfced51c7030affc2ec4eacb5663a90b78ff73a0e172ffa41a6a3f7f7ac6296ce7f08255ef53ceabd33c6b1b44d7aa49e03aaaff9bd9c69ed747ff8
@@ -1,3 +1,3 @@
1
1
  module Teptris
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.10"
3
3
  end
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
- require "teptris_ext" # the native extension IS the binding (no fallback)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teptris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.10
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - teptris contributors