babeltrace 0.1.0 → 0.1.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: b20aa5d5700fbd87542d7f18e28694331d8c40d829b9e0ad21467a324ed967e8
4
- data.tar.gz: 277e12efb46a72d3ee5fb7b9f3f334dfff68afdd90d31140a5269c16a07d977d
3
+ metadata.gz: 3a11c8de93fc93dc21253113b61b0897b09a4030080b5f9dbf5083785f4e0536
4
+ data.tar.gz: 4fda4626f48176e76cafa3a74ed050e71ceed8243345c8b85fbbda1ee33e99bd
5
5
  SHA512:
6
- metadata.gz: 7f554331ae52beb5450495f46280dfdde55b8ebf9d8edc3a079d35e08fcf770aa082c14657731faeaaee5e051e3a5c46c8fabb36a58950d703aaec1679238035
7
- data.tar.gz: 032d750e4ffff78b92489234ef4de4600aefbf97bdab2c1e54ab7ca52cad2cfe764f6f29b4a5606ea6a46bf096e46dd35b7625d5f2fb148e8090f37c536e5061
6
+ metadata.gz: 7e4e16041d38f56ba939de1391ded0f50e4293d788da8b2dc6e1a70a3147030f390bd6dd5bec962941254de265bd0b00a43f2cd49d3cc5eeb148399bff1e5de0
7
+ data.tar.gz: 345f080fcc55a404bd6d79018d6c624fd3502fa9d55803ad9f499e1e6176478f9e4fcba22cd67878b6cc12a2518ad8e38d7d0313db04ab32e8facde3c0c2c240
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'babeltrace'
3
- s.version = "0.1.0"
3
+ s.version = "0.1.1"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "bvideau@anl.gov"
6
6
  s.homepage = "https://github.com/alcf-perfengr/babeltrace-ruby"
@@ -338,13 +338,16 @@ module Babeltrace
338
338
 
339
339
  class EnumDef < Definition
340
340
  def int
341
- IntegerDef::new(@definition.get_enum_int)
341
+ @definition.get_enum_int
342
342
  end
343
343
 
344
344
  def string
345
345
  @definition.get_enum_str
346
346
  end
347
- alias value string
347
+
348
+ def value
349
+ { int.value => string }
350
+ end
348
351
  end
349
352
 
350
353
  class StringDef < Definition
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babeltrace
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
  - Brice Videau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-30 00:00:00.000000000 Z
11
+ date: 2020-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi