capng_c 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a26ab3bf7c3169172ec3e2c162630f0079b161533ec473984e4d52737d522b91
4
- data.tar.gz: 9f378edbfb74593fc731acb2f4ead7b591207b0f358f9ce4e1caf28e747188d3
3
+ metadata.gz: 2282b438c73cafe667183986b8beef357b3d397eff60249658f94d71326cafc8
4
+ data.tar.gz: 8bb3439b3e3934efe4e83bda4e256780f4c7bb718a7f4883bc33d530483b5813
5
5
  SHA512:
6
- metadata.gz: 92d50ae4dc1c276709d38a2bbac7421ac0ec68d8dee70d8f5d28c4b2aa3e33ef81ae179dafd7f214703d68a8eeda5b4f2220eca786f50fdd77838a88fec754fd
7
- data.tar.gz: 2f2f6cff1a51adeb4fe038871b3e3a5e5ec7b9075b18f31653000a5aea785e610bce39570cc4a2252c4dc4518ecd9f0be20436a28473d3769a4329fa98a912ae
6
+ metadata.gz: d24ec898c4b40f26cee597a369f10c4ada7973fdba6c4cb51e85812702f2d6684b83e69946e4f019d94ff595380663150d4af1833b99e0f84cba99599a579110
7
+ data.tar.gz: d077c6cbbc46950174bbd6e0c2cbf296ac679b69a2231f560de846203718d562c920b53343db7d2dde48bd484cbcf3b50904c763f37ae99d330616bac0c015b1
data/README.md CHANGED
@@ -8,6 +8,9 @@ libcap-ng bindings for Ruby.
8
8
 
9
9
  ## Prerequisites
10
10
 
11
+ * Building C environment
12
+ * build-essential on Debian GNU/Linux and Ubuntu
13
+ * "Development Tools" package group on CentOS 7/8, Fedora 33, AmazonLinux 2
11
14
  * pkg-config package for linking libcap-ng library
12
15
  * libcap-ng and its development packages
13
16
  * libcap-ng-dev on Debian GNU/Linux and Ubuntu
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4".freeze)
30
30
 
31
31
  spec.add_development_dependency "bundler", [">= 1.16", "< 3"]
32
- spec.add_development_dependency "rake", "~> 12.0"
32
+ spec.add_development_dependency "rake", "~> 13.0"
33
33
  spec.add_development_dependency "rake-compiler", "~> 1.0"
34
34
  spec.add_development_dependency "test-unit", "~> 3.3.3"
35
35
  spec.add_development_dependency "yard", "~> 0.9"
@@ -23,7 +23,7 @@ case ${distribution} in
23
23
  USE_SCL=1
24
24
  ;;
25
25
  *)
26
- DNF="dnf --enablerepo=PowerTools"
26
+ DNF="dnf --enablerepo=powertools"
27
27
  ;;
28
28
  esac
29
29
  ;;
@@ -50,6 +50,11 @@ static const rb_data_type_t rb_capng_state_type = { "capng/state",
50
50
  static void
51
51
  capng_state_free(void* ptr)
52
52
  {
53
+ struct CapNGState* state = (struct CapNGState*)ptr;
54
+ if (state) {
55
+ state->state = NULL;
56
+ }
57
+
53
58
  xfree(ptr);
54
59
  }
55
60
 
@@ -1,3 +1,3 @@
1
1
  class CapNG
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capng_c
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Hatake
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-16 00:00:00.000000000 Z
11
+ date: 2020-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '12.0'
39
+ version: '13.0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '12.0'
46
+ version: '13.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake-compiler
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.0.3
152
+ rubygems_version: 3.2.3
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: libcap-ng bindings for Ruby.