capng_c 0.2.3 → 0.2.4
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 +4 -4
- data/.github/workflows/apt.yml +3 -3
- data/ext/capng/extconf.rb +4 -0
- data/ext/capng/print.c +10 -4
- data/lib/capng/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bce3b9c0ad260ea018498a3b20f5906b79f8796cb791ba05417071ab9dfa32f4
|
|
4
|
+
data.tar.gz: e324f852c0f4433aa9572b2bfda44f4ab3b59ac0d8afb77fadd13ac9f76f53a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 45162d9090edd42d30626a9832ef1c970c45f78dfa3a77f7fea5a1184881d8a22bfaa0cc3c6e25eaf66e461cf1b09557a655b05b3789dcc9bd5a6f195b31e6b0
|
|
7
|
+
data.tar.gz: 1c4c28132d99e46afc10c49a5dcba7574e904ffa357bfca622da34bdf8e4ed614a8daecbb5144b1d756ba65b857176ede2bbd562c808d8660cd776d635e4ea6d
|
data/.github/workflows/apt.yml
CHANGED
|
@@ -9,12 +9,12 @@ jobs:
|
|
|
9
9
|
fail-fast: false
|
|
10
10
|
matrix:
|
|
11
11
|
label:
|
|
12
|
-
- Debian GNU/Linux
|
|
12
|
+
- Debian GNU/Linux Bookworm amd64
|
|
13
13
|
- Ubuntu Bionic amd64
|
|
14
14
|
- Ubuntu Focal amd64
|
|
15
15
|
include:
|
|
16
|
-
- label: Debian GNU/Linux
|
|
17
|
-
test-docker-image: debian:
|
|
16
|
+
- label: Debian GNU/Linux Bookworm amd64
|
|
17
|
+
test-docker-image: debian:bookworm
|
|
18
18
|
test-script: ci/apt-test.sh
|
|
19
19
|
- label: Ubuntu Bionic amd64
|
|
20
20
|
test-docker-image: ubuntu:bionic
|
data/ext/capng/extconf.rb
CHANGED
|
@@ -20,6 +20,10 @@ includedir = RbConfig::CONFIG["includedir"]
|
|
|
20
20
|
|
|
21
21
|
dir_config("capng", includedir, libdir)
|
|
22
22
|
|
|
23
|
+
unless find_executable("pkg-config")
|
|
24
|
+
raise "Require pkg-config due to install capng_c gem. Please install pkg-config."
|
|
25
|
+
end
|
|
26
|
+
|
|
23
27
|
pkg_config("libcap-ng")
|
|
24
28
|
$CFLAGS << " -Wall -std=c99 -fPIC "
|
|
25
29
|
# $CFLAGS << " -g -O0"
|
data/ext/capng/print.c
CHANGED
|
@@ -129,8 +129,11 @@ rb_capng_print_caps_text(VALUE self, VALUE rb_where_name_or_type,
|
|
|
129
129
|
result = capng_print_caps_text(CAPNG_PRINT_BUFFER, capability_type);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
if (result)
|
|
133
|
-
|
|
132
|
+
if (result) {
|
|
133
|
+
VALUE obj = rb_str_new2(result);
|
|
134
|
+
free(result);
|
|
135
|
+
return obj;
|
|
136
|
+
}
|
|
134
137
|
else
|
|
135
138
|
return rb_str_new2("none");
|
|
136
139
|
}
|
|
@@ -191,8 +194,11 @@ rb_capng_print_caps_numeric(VALUE self, VALUE rb_where_name_or_type,
|
|
|
191
194
|
result = capng_print_caps_numeric(CAPNG_PRINT_BUFFER, select);
|
|
192
195
|
}
|
|
193
196
|
|
|
194
|
-
if (result)
|
|
195
|
-
|
|
197
|
+
if (result) {
|
|
198
|
+
VALUE obj = rb_str_new2(result);
|
|
199
|
+
free(result);
|
|
200
|
+
return obj;
|
|
201
|
+
}
|
|
196
202
|
else
|
|
197
203
|
return rb_str_new2("none");
|
|
198
204
|
}
|
data/lib/capng/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capng_c
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hiroshi Hatake
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -134,7 +133,6 @@ metadata:
|
|
|
134
133
|
allowed_push_host: https://rubygems.org
|
|
135
134
|
homepage_uri: https://github.com/fluent-plugins-nursery/capng_c
|
|
136
135
|
source_code_uri: https://github.com/fluent-plugins-nursery/capng_c
|
|
137
|
-
post_install_message:
|
|
138
136
|
rdoc_options: []
|
|
139
137
|
require_paths:
|
|
140
138
|
- lib
|
|
@@ -149,8 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
149
147
|
- !ruby/object:Gem::Version
|
|
150
148
|
version: '0'
|
|
151
149
|
requirements: []
|
|
152
|
-
rubygems_version: 3.
|
|
153
|
-
signing_key:
|
|
150
|
+
rubygems_version: 3.6.9
|
|
154
151
|
specification_version: 4
|
|
155
152
|
summary: libcap-ng bindings for Ruby.
|
|
156
153
|
test_files: []
|