libbpf-ruby 0.1.0 → 0.1.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: 935f86e01757713957956186f9d055ca51561a1305eb7be844d03080a5ae9719
4
- data.tar.gz: ca2450392bd3164e0f50d3d80d6f2ae82b8f013dcea65363f82ee31165d2bb4c
3
+ metadata.gz: 380f5e9be54f279c6211b57cd8401ce93c917203e5b5d6737761b93e67504f18
4
+ data.tar.gz: a1e72cbcde4b31a7d9cf2dbb72fe171638f1b129347026ffc141dbff475f8f36
5
5
  SHA512:
6
- metadata.gz: 14b98694511d9ef4ca3a52e856e5b577a5c5985a9ac2d789c8fb4db56cc6c1650926727007e13cd44e3371a4927d8bb5ef67499b6a2c54417008c6576f12340c
7
- data.tar.gz: d6965a3d87fdefbbce469c047edee897183814bbb927e3542844a37b7a241368f62dfd8ece25b7048a43dcb0a747bb22e6aba94bdb28b2a74eb740ca34732312
6
+ metadata.gz: 5c1fc35aaf5677ccb43ad57abc45905db21b0ef1f74d69df3e3c4cde7855bfd93b6ddb59a9ddd632b21e2aabc236b8e4bd7b069b1c34c0e7293f47db37e9dcdb
7
+ data.tar.gz: 9d5a11b204cc0feff9dd41d97e225ac376f669d5b604dc427b320ac203f38c98b898ace5e781c704239afbc1298566ab08ae99cbe62e08324ecb924de9a21098
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2026-07-05
4
+
5
+ - Skip native extension compilation on non-Linux platforms
6
+
3
7
  ## [0.1.0] - 2026-07-05
4
8
 
5
9
  - Initial release
data/README.md CHANGED
@@ -21,7 +21,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
21
21
  gem install libbpf-ruby
22
22
  ```
23
23
 
24
- The native extension links against [`libbpf`](https://github.com/libbpf/libbpf), which is Linux-only. On unsupported platforms `gem install` aborts with a message about the missing prerequisite.
24
+ The native extension links against [`libbpf`](https://github.com/libbpf/libbpf), which is Linux-only. On unsupported platforms the gem installs without compiling the extension; requiring it at runtime raises `LoadError`.
25
25
 
26
26
  ## Usage
27
27
 
@@ -2,9 +2,9 @@
2
2
 
3
3
  require "mkmf"
4
4
 
5
- abort "libbpf-ruby requires Linux" unless RUBY_PLATFORM.include?("linux")
6
- abort "libbpf-ruby requires libbpf (install libbpf-dev)" unless have_library("bpf")
7
- abort "libbpf-ruby requires libbpf headers (install libbpf-dev)" unless have_header("bpf/libbpf.h")
8
-
9
- append_cflags("-fvisibility=hidden")
10
- create_makefile("libbpf_ruby/libbpf_ruby")
5
+ if RUBY_PLATFORM.include?("linux") && have_library("bpf") && have_header("bpf/libbpf.h")
6
+ append_cflags("-fvisibility=hidden")
7
+ create_makefile("libbpf_ruby/libbpf_ruby")
8
+ else
9
+ File.write("Makefile", "all install clean:\n\t@true\n")
10
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LibBPFRuby
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libbpf-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young