rbbcc 0.6.0 → 0.6.1

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: 4bfc5d3f19fd4dbfa744a6380055103b5c45a0a72d956ced238154472ae4d7b5
4
- data.tar.gz: 160c2a313f7181c6a9dab665c265fe2760d743ecbcab4797cc25e920e00d7f11
3
+ metadata.gz: ebc0f160a61c94cd58882b81c3c58ecc99dfb6317e407cec2dc762c4babc3889
4
+ data.tar.gz: 36aead215ae4146d841f787939432a7cdb12cb4ad7487c92dd2044b9c5123b47
5
5
  SHA512:
6
- metadata.gz: 9e2f72abd18698c9dca81342474a38e10a2e65d88e4acc7d0bbb3d924d9019d7204639f407a14418664d49ef4eb0666729fda06e3a06f2066dd0c8bfa0cf6701
7
- data.tar.gz: e651213860bacc705b8b3f8c51c962aba9f5f1d67cb041eab850eee64b1c8ab6d7fe71a6bd630cddc224bea2af465323c3b4ef728995d124c954f194e9cd6714
6
+ metadata.gz: 84fe74378f90debecf862251d74b356dc8dde3f1a16da540bdca0255af8b2c7037053a78e0e1abc886014ee481a0320af05eda715976a774bd79dcd7d6d15b47
7
+ data.tar.gz: 91f4de3770052fc2cd23406f41aaef3796facd018d4d746828532b17ccb00acb75f3b38a08920a2ec446381e16cf7642f6331410db8a05f0098fed6834e971ab
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rbbcc (0.6.0)
4
+ rbbcc (0.6.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -218,18 +218,18 @@ module RbBCC
218
218
  text = code + text
219
219
  end
220
220
 
221
- # Util.debug text
222
- cflags_p = if cflags.empty?
223
- nil
224
- else
225
- cflags.pack('p*')
226
- end
221
+
222
+ cflags_safe = if cflags.empty? or !cflags[-1].nil?
223
+ cflags + [nil]
224
+ else
225
+ cflags
226
+ end
227
227
 
228
228
  @module = Clib.bpf_module_create_c_from_string(
229
229
  text,
230
230
  debug,
231
- cflags_p,
232
- cflags.size,
231
+ cflags_safe.pack("p*"),
232
+ cflags_safe.size,
233
233
  allow_rlimit
234
234
  )
235
235
  end
@@ -1,3 +1,3 @@
1
1
  module RbBCC
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbcc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uchio Kondo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-17 00:00:00.000000000 Z
11
+ date: 2020-09-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: BCC port for MRI. See https://github.com/iovisor/bcc
14
14
  email: