serialbench 0.9.0 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 814cb0f6d767b00d0b936a40e6d9cdc45ddb185fafd8c6149e67a78454f5cbdd
4
- data.tar.gz: cf269293728af5a4eb3f479af7ed3e41204307e6953c04f8fc08298b4e45473f
3
+ metadata.gz: 7bdffce4061d0423a29fd90e1b8e40d42375f2edb7fc939a07be4211c515d8ee
4
+ data.tar.gz: bcc951356f7189dec61b5beb12d477b5605aa00bf90e4fa9e2486befd7431e7a
5
5
  SHA512:
6
- metadata.gz: 55385f1d7ad647b3e6e11d066276a6f8369f8d218571ecf19c01e8d71af9b8c62c126a980b65cb54c67bf989e22bb278d1c4b659dde046373f95dced12007b09
7
- data.tar.gz: 8e9e38c807063136a6c97fcae14c24575849d044c61660edc85bb9ccdc7dc1ba1f19081cd9a43cd968934731d3c98aa40b28f633f1b84aedb128738fac7ca370
6
+ metadata.gz: 99346a600ad99b956bc9a92f4bdd7601e1cde5183b0b82877548dbd839bdda0aa535bd6c1628335005d0d82456c97dac41dcb4be7ceb3faf131cdbef9daec4b4
7
+ data.tar.gz: 7cfa20bcf32cdf3c100bd2e021fb6bf71239bbcdc99fe09c5b7b50b0ce7bd39bb2d5db8a6b99fc1495c8ca76bc2c103cbb7204162a63cf62419df9b62b773c57
@@ -116,6 +116,21 @@ jobs:
116
116
  - name: Install gems
117
117
  run: bundle install
118
118
 
119
+ - name: Point teptris at its vendored DLL (Windows)
120
+ if: startsWith(matrix.platform, 'windows-')
121
+ shell: bash
122
+ run: |
123
+ # teptris 0.1.0's mingw gem vendors the library as teptris.dll but
124
+ # its FFI loader searches libteptris.dll; TEPTRIS_LIB_PATH (the
125
+ # loader's first candidate) bridges until the ext-based gem ships.
126
+ DLL=$(bundle exec ruby -e "print File.join(Gem::Specification.find_by_name('teptris').gem_dir, 'lib', 'teptris.dll')" 2>/dev/null || true)
127
+ if [ -n "$DLL" ] && [ -f "$DLL" ]; then
128
+ echo "TEPTRIS_LIB_PATH=$DLL" >> "$GITHUB_ENV"
129
+ echo "TEPTRIS_LIB_PATH=$DLL"
130
+ else
131
+ echo "no vendored teptris.dll found — teptris stays unavailable on this leg"
132
+ fi
133
+
119
134
  - name: Create environment config
120
135
  run: |
121
136
  mkdir -p config/environments
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ unless Gem.win_platform? && RUBY_PLATFORM.include?('aarch64')
12
12
  gem 'libxml-ruby'
13
13
  end
14
14
 
15
- gem 'leptris', '1.9.152.1' # precompiled platform gems bundle libleptris (darwin/linux/mingw)
15
+ gem 'leptris', '1.9.156.0' # precompiled platform gems bundle libleptris (darwin/linux/mingw)
16
16
  gem 'yeptris', '0.2.0.1' # precompiled darwin/linux; no windows or darwin-intel gems yet
17
17
  gem 'teptris', '0.1.0' # precompiled all platforms
18
18
  gem 'benchmark' # Removed from stdlib in Ruby 4.0
@@ -27,7 +27,8 @@ module Serialbench
27
27
  require 'yeptris'
28
28
  Yeptris::JSON.load('{"probe":true}')
29
29
  true
30
- rescue StandardError, LoadError
30
+ rescue StandardError, LoadError => e
31
+ warn "#{name} unavailable: #{e.class}: #{e.message}"
31
32
  false
32
33
  end
33
34
  end
@@ -27,7 +27,8 @@ module Serialbench
27
27
  require 'teptris'
28
28
  Teptris::TOML.load("probe = true\n")
29
29
  true
30
- rescue StandardError, LoadError
30
+ rescue StandardError, LoadError => e
31
+ warn "#{name} unavailable: #{e.class}: #{e.message}"
31
32
  false
32
33
  end
33
34
  end
@@ -75,7 +75,8 @@ module Serialbench
75
75
  require 'leptris/xml'
76
76
  Leptris::XML.parse('<probe/>')
77
77
  true
78
- rescue StandardError, LoadError
78
+ rescue StandardError, LoadError => e
79
+ warn "#{name} unavailable: #{e.class}: #{e.message}"
79
80
  false
80
81
  end
81
82
  end
@@ -36,7 +36,8 @@ module Serialbench
36
36
  require 'yeptris'
37
37
  Yeptris::YAML.load('probe: true')
38
38
  true
39
- rescue StandardError, LoadError
39
+ rescue StandardError, LoadError => e
40
+ warn "#{name} unavailable: #{e.class}: #{e.message}"
40
41
  false
41
42
  end
42
43
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Serialbench
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serialbench
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose