metababel 1.1.1 → 1.1.3

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: fcf5e88ccc5e61854e63063f8bca911bf5ab66b4a73ebc2d19f62d3458e9126b
4
- data.tar.gz: 773927d69d8240bdc04611eef6131d6c6e0a0e583ff67bc8982fc0ade6d13e1d
3
+ metadata.gz: 833addc848667ae6e79f054444feb055f89f6d92a6b5ea06e091c3120e6ae108
4
+ data.tar.gz: 489687cf9d30edf2cbed47696f0c0314fff308ff3527c41c68fbd3ef65c2202b
5
5
  SHA512:
6
- metadata.gz: 7bfccb7ef5b523fee9b91cd078ae3a070506bca1758bf22c10b3304a407513d9f1167718c6aea7b822a7235b13b8773c294e956d04c0cc4af8701d9224320de2
7
- data.tar.gz: 2481d7b5db7fc44247c72f6aaeb9dddc5176af852da2fa6706facd0af89b840b2095b5ff96fd86a6b25859325458e5686b2a185a3013e8a69a926e4e2dcd9b1b
6
+ metadata.gz: 59c42bc311b8ab39e51a87abab2c74aa4d62df0611f2f3c4bcfafe78d1833bb87bb007849e716edf654bc05f658e7ef45dedd6b2778b70e6fe5f3879c5887162
7
+ data.tar.gz: 57049a2e114b394126fe382ed205edf608047e3ce59610fb3acca3d98ec48dad94d1076983a18a11e34ee35cbc78678c66229a76ee4f5747288501ee64b0d9dd
data/bin/metababel CHANGED
@@ -196,7 +196,7 @@ def parse_argv
196
196
  puts File.readlines(path)
197
197
  exit
198
198
  }
199
-
199
+ parser.on('--drop','[Optional] Drop unknow messages')
200
200
 
201
201
  options = { 'disable-callbaks': ['on_downstream'].to_set,
202
202
  'component-name': 'btx',
@@ -792,7 +792,7 @@ module Babeltrace2Gen
792
792
 
793
793
  attr_reader :parent, :name, :field_class
794
794
 
795
- def initialize(parent:, field_class: nil, name: nil)
795
+ def initialize(parent:, field_class: nil, name: nil, metadata: nil)
796
796
  @parent = parent
797
797
  is_match_model = parent.rec_trace_class.match
798
798
  raise ArgumentError, 'missing keyword: :name' unless name || is_match_model
@@ -1,3 +1,3 @@
1
1
  module Metababel
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.3'
3
3
  end
@@ -118,8 +118,15 @@ static inline void filter_message_iterator_next_call_dispatchers(
118
118
  bt_message_put_ref(upstream_message);
119
119
  } else {
120
120
  /* Push upstream message to downstream */
121
- btx_downstream_push_message(message_iterator_private_data,
122
- upstream_message);
121
+ <% if options[:drop] %>
122
+ /* Drop message. Including PACKET_{BEGIN,END} messages.
123
+ * It's ok as ALL message will be drop, so we will never get
124
+ * any EVENT without BEGIN */
125
+ bt_message_put_ref(upstream_message);
126
+ <% else %>
127
+ btx_downstream_push_message(message_iterator_private_data,
128
+ upstream_message);
129
+ <% end %>
123
130
  }
124
131
  }
125
132
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metababel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Applencourt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-04-03 00:00:00.000000000 Z
13
+ date: 2025-08-28 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description:
16
16
  email:
@@ -53,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- version: '0'
56
+ version: 2.7.0
57
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="