embulk-input-pcapng-files 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 120f1ab65f0202c727ba0f8e3f8547dcf3af98a0
4
- data.tar.gz: 9dd2cc1269987e67ed3aa1d5b69e73765ae93949
3
+ metadata.gz: d1eead7de2be6923f88401de4639960682f87865
4
+ data.tar.gz: c1c7b1375c2ea0745d0e139fcf3b5a4d234cb9f6
5
5
  SHA512:
6
- metadata.gz: 739689e0e78827e5019294d05a1cca780cc38e45b9da2809475e253011e0c482d8c76525716648ce4fe0b512ebb6d2a794a1da528142b78331cfb3d058600ab9
7
- data.tar.gz: 87cd59be5c9b36e8bd5a61f35bbc952a43f35a498b1eb1c18e10ea63547f0ab91398f79b4f64c85671c077cd431aa7e14f2617aaede73020b8fbd070e8cbba3c
6
+ metadata.gz: ffc3b1efeb947182db40b501c052f8e991cf84f68dfa1a9314c5c5a9b30a3ab0f8b4c511c26b5b8daa2561d86ad05bf94b2126935ac1b9b821b958a0d7158271
7
+ data.tar.gz: 9601c5ed7250a0af2f31a05ba17f16e6c5d4193f09be69f47bf20300aca3969a9c1f4749dafdf039f79672b5ca07eb174018ab9f5c01c1fea605625a12195b47
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-input-pcapng-files"
4
- spec.version = "0.1.1"
4
+ spec.version = "0.1.2"
5
5
  spec.authors = ["enukane"]
6
6
  spec.summary = "Pcapng Files input plugin for Embulk"
7
7
  spec.description = "Pcapng Files input plugin for Embulk"
@@ -87,7 +87,11 @@ module Embulk
87
87
  options = build_options(fields)
88
88
  io = IO.popen("tshark -E separator=, #{options} -T fields -r #{path}")
89
89
  while line = io.gets
90
- array = [fields, CSV.parse(line).flatten].transpose
90
+ begin
91
+ array = [fields, CSV.parse(line).flatten].transpose
92
+ rescue
93
+ next
94
+ end
91
95
  yield(Hash[*array.flatten])
92
96
  end
93
97
  io.close
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-pcapng-files
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - enukane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-24 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler