elesai 0.9.1 → 0.9.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.
@@ -464,19 +464,23 @@ module Elesai
464
464
  line.strip!
465
465
  next if line == ''
466
466
 
467
- case line
468
- when ADAPTER_RE then adapter_match(ADAPTER_RE.match(line))
469
- when BBU_RE then bbu_match(BBU_RE.match(line))
470
- when VIRTUALDRIVE_RE then virtualdrive_match(VIRTUALDRIVE_RE.match(line))
471
- when PHYSICALDRIVE_RE then physicaldrive_match(PHYSICALDRIVE_RE.match(line))
472
- when BBU_FIRMWARESTATUS_RE then bbu_firmwarestatus_match(BBU_FIRMWARESTATUS_RE.match(line))
473
- when BBU_DESIGNINFO_RE then bbu_designinfo_match(BBU_DESIGNINFO_RE.match(line))
474
- when BBU_PROPERTIES_RE then bbu_properties_match(BBU_PROPERTIES_RE.match(line))
475
- when BBU_CAPACITYINFO_RE then bbu_capacityinfo_match(BBU_CAPACITYINFO_RE.match(line))
476
- when BBU_GASGAUGESTATUS_RE then bbu_gasgaugestatus_match(BBU_GASGAUGESTATUS_RE.match(line))
477
- when EXIT_RE then exit_match(EXIT_RE.match(line))
478
- when ATTRIBUTE_RE then attribute_match(ATTRIBUTE_RE.match(line))
479
- else raise StandardError, "cannot parse '#{line}'"
467
+ begin
468
+ case line
469
+ when ADAPTER_RE then adapter_match(ADAPTER_RE.match(line))
470
+ when BBU_RE then bbu_match(BBU_RE.match(line))
471
+ when VIRTUALDRIVE_RE then virtualdrive_match(VIRTUALDRIVE_RE.match(line))
472
+ when PHYSICALDRIVE_RE then physicaldrive_match(PHYSICALDRIVE_RE.match(line))
473
+ when BBU_FIRMWARESTATUS_RE then bbu_firmwarestatus_match(BBU_FIRMWARESTATUS_RE.match(line))
474
+ when BBU_DESIGNINFO_RE then bbu_designinfo_match(BBU_DESIGNINFO_RE.match(line))
475
+ when BBU_PROPERTIES_RE then bbu_properties_match(BBU_PROPERTIES_RE.match(line))
476
+ when BBU_CAPACITYINFO_RE then bbu_capacityinfo_match(BBU_CAPACITYINFO_RE.match(line))
477
+ when BBU_GASGAUGESTATUS_RE then bbu_gasgaugestatus_match(BBU_GASGAUGESTATUS_RE.match(line))
478
+ when EXIT_RE then exit_match(EXIT_RE.match(line))
479
+ when ATTRIBUTE_RE then attribute_match(ATTRIBUTE_RE.match(line))
480
+ else raise StandardError, "cannot parse '#{line}'"
481
+ end
482
+ rescue ArgumentError # ignore lines with invalid byte sequence in UTF-8
483
+ next
480
484
  end
481
485
 
482
486
  @log.debug "\n\n"
@@ -1,3 +1,3 @@
1
1
  module Elesai
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elesai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: