teptris 0.2.38-s390x-linux → 0.2.39-s390x-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: 19a84c2834e420009ce8875a17d69dbec091f3e3df0d05b0bfeab1146e826a1c
4
- data.tar.gz: 226310fea503f6726807ba6bb6be0ccf3518bd5e32f1b887a2c769039d5d86c1
3
+ metadata.gz: f0dbd76ee4dbc68436d46ca64bbad84924aaa75a34c0b0d77a661f0e600f1443
4
+ data.tar.gz: 7f041bd227fb02a1b1e3d9d180d62b42ee3033f9b30d6461d35492f0adf1d36b
5
5
  SHA512:
6
- metadata.gz: df424cd9ca2c2d562d2c60909a29812a2c70371a952680f22cf81838cae5f454d82d3834e90ab7ac9ecaad04e123e4dc805e5f4c23baa28386968b00fef346cc
7
- data.tar.gz: b4e35a3f55191f0345c4d745829282c5f70cd0faff67e2f7df29edfd18188760c189311749ccba21b7e365dc1e292884f491f796df56ff9bc88ebea99a4fd080
6
+ metadata.gz: 2b6e99ac7fc5ba4953a2cb3713ac474621dec1e0027caaa85b6f323b38ef145321c6142692b749317deaf55b09e274769312ddbaee3690ccd12b15b307bab3e4
7
+ data.tar.gz: 860802e52588b2afcdbb34be3e9716eff2a80a460f68e8f5f7f235320e50dfc256c6114e010cbd1e78bc377c69b7e15830a10191f490e596692c520561db3e86
@@ -1,3 +1,3 @@
1
1
  module Teptris
2
- VERSION = "0.2.38"
2
+ VERSION = "0.2.39"
3
3
  end
data/lib/teptris.rb CHANGED
@@ -5,20 +5,28 @@ require_relative "teptris/error"
5
5
  require_relative "teptris/descriptor"
6
6
  require_relative "teptris/toml"
7
7
 
8
- # Windows ucrt rubies name their DLL per minor (x64-ucrt-ruby330.dll), so
9
- # the mingw gems ship one extension per ruby minor beside a shared
10
- # libteptris.dll (nokogiri's fat-gem layout). The native extension IS the
11
- # binding — no fallback, ever.
8
+ # Fat-gem layout on EVERY platform (nokogiri's shape): one extension
9
+ # per ruby minor under lib/teptris/<minor>/ — ucrt rubies bind a
10
+ # minor-named DLL, and a unix .so built for one minor fails dlopen on
11
+ # another (a 3.3-built ext hard-failed under ruby 4.0 with the gem
12
+ # already installed). The native extension IS the binding — no
13
+ # fallback, ever; minors without a prebuilt cell ship via the source
14
+ # gem, which compiles at install.
15
+ minor = RUBY_VERSION[/\A\d+\.\d+/]
12
16
  begin
13
- if RUBY_PLATFORM =~ /mingw/
14
- require "teptris/#{RUBY_VERSION[/\A\d+\.\d+/]}/teptris_ext"
15
- else
17
+ # fat prebuilt gems: lib/teptris/<minor>/teptris_ext
18
+ require "teptris/#{minor}/teptris_ext"
19
+ rescue LoadError
20
+ begin
21
+ # source-built installs: rubygems puts the compiled ext on the
22
+ # load path under its bare name (no <minor> dir exists)
16
23
  require "teptris_ext"
24
+ rescue LoadError
25
+ raise LoadError,
26
+ "teptris native extension for ruby #{RUBY_VERSION} not found " \
27
+ "(#{RUBY_PLATFORM}; no fallback by design — install the source " \
28
+ "gem: gem install teptris --platform ruby)"
17
29
  end
18
- rescue LoadError
19
- raise LoadError,
20
- "teptris native extension not available for #{RUBY_PLATFORM} " \
21
- "ruby #{RUBY_VERSION} (no fallback by design)"
22
30
  end
23
31
 
24
32
  module Teptris
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teptris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.38
4
+ version: 0.2.39
5
5
  platform: s390x-linux
6
6
  authors:
7
7
  - teptris contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-19 00:00:00.000000000 Z
11
+ date: 2026-09-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A native C extension over libteptris, a C99 TOML 1.1 parser/emitter.
14
14
  API shape mirrors the tomlib gem.
@@ -50,11 +50,11 @@ files:
50
50
  - ext/teptris_ext/extconf.rb
51
51
  - ext/teptris_ext/materialize.c
52
52
  - lib/teptris.rb
53
+ - lib/teptris/3.2/teptris_ext.so
53
54
  - lib/teptris/descriptor.rb
54
55
  - lib/teptris/error.rb
55
56
  - lib/teptris/toml.rb
56
57
  - lib/teptris/version.rb
57
- - lib/teptris_ext.so
58
58
  homepage: https://github.com/leptris/teptris-ruby
59
59
  licenses:
60
60
  - MIT
File without changes