cobhan 0.2.0 → 0.2.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: de115383ac17b1f26cf51d547451b9ac0502406f8247df342d3ae45e350b9fec
4
- data.tar.gz: ea09ce6f5a399abff9d19180d35f4c38526705628d6bdf6f2ab9d502ef5d3424
3
+ metadata.gz: 9db46be416695ae19f78d794bff7d26d5e6f73d03a5c89a35cd7ab6959d501ea
4
+ data.tar.gz: f73725bd8cade9ece9b11d159b3df1eb41482fbfe39d150d0e9ae3c967dc2eac
5
5
  SHA512:
6
- metadata.gz: 0acd4b526b6a827f8fe620a91bb34903cfe1616b618ddf2f9b53995e0b5fc46e575b716d2155f8fdb11fffc0322778fc60c88d3a241df8e88522fdc9d744922c
7
- data.tar.gz: 906ba58beb6a95711a8142f728a9c2a5a01010fee3efdb1565be4168c5386c83d6b566c6a48706c45b86d023b27d21d33b6760961fb47822acd37a5b21e1ece2
6
+ metadata.gz: 1245bb5be6d2a9d22d648a9be179a10444cd02719b937058bfbdee1ee82069b83e5dd4e5cfa554143d177fd0fd05d6be686acd0325e245fb8822829211dbe7ad
7
+ data.tar.gz: 0c32181b11382225ea5ac57951b9b5350574f0a341ccd197cf897041061d2188dee0c96a91b35ea9cd75b848e362b8fa4a14e7844771076df6bd2ab26f4cdc09
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.2.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.1] - 2023-01-25
4
+
5
+ - Support non GNU Lib C library file names with `load_library`
6
+ - Add Ruby 3.2 to the test matrix
7
+
3
8
  ## [0.2.0] - 2022-03-18
4
9
 
5
10
  - Remove default `MINIMUM_ALLOCATION` to allow for smaller buffers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cobhan
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
data/lib/cobhan.rb CHANGED
@@ -23,7 +23,9 @@ module Cobhan
23
23
  cpu_arch = CPU_ARCHS[FFI::Platform::ARCH]
24
24
  raise UnsupportedPlatformError, "Unsupported CPU: #{FFI::Platform::ARCH}" unless cpu_arch
25
25
 
26
- "#{name}-#{cpu_arch}.#{ext}"
26
+ libc_suffix = RbConfig::CONFIG['host_os'] == 'linux-musl' ? '-musl' : ''
27
+
28
+ "#{name}-#{cpu_arch}#{libc_suffix}.#{ext}"
27
29
  end
28
30
 
29
31
  def load_library(lib_root_path, name, functions)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobhan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoDaddy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-18 00:00:00.000000000 Z
11
+ date: 2023-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubygems_version: 3.3.7
131
+ rubygems_version: 3.4.1
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Ruby wrapper library for the Cobhan FFI system