snmp-open 0.2.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: eb1bfb86bae4239a253fa4528be54e46a30e770d
4
- data.tar.gz: 0574b00db365565c87e647314b00f34950ba8280
3
+ metadata.gz: '09dd63241e17dc715dc949d0b727f61e777cfade'
4
+ data.tar.gz: a3bf4afbcb4debc166bbc04b0c67292d41a63a12
5
5
  SHA512:
6
- metadata.gz: db49e2407897332554aae593b909bb74db5878a6b2f5f72779bfe6fdd1be116c2579226811bca87814c5f2ae3f55678c4a9ccbfcebd0157ccc918a4b48bea0b4
7
- data.tar.gz: 98f0150f390faf0fe8f8cffb8e60c535aae051cda4bfa964900a4e2172449807c3e85fdcaccf9d2090c1a082084885a872d93402b423e6fa2abb94de797b086e
6
+ metadata.gz: bdf0ce08cdc82f961165108a9ea267011cf65c84c34b9ff944d91650ea9ea13bdc413f83346115041b1e6797509a3bda4a823e34de8b02c912587d071b3856f4
7
+ data.tar.gz: 402b3e552a7c41ffe6f33b48f8c62e42ab79a1775540068304579f3babcaf0309b7d17b8cb4a7b4c195ea0d35ba52d103259e37ec02c54ea6c4c04ea97d6eb8f
@@ -54,6 +54,7 @@ module SNMP
54
54
  else
55
55
  Open3.capture3(cli(cmd, oid, options))
56
56
  end
57
+ raise CommandTimeoutError, err.chomp if err =~ /^timeout/i
57
58
  raise CommandError, err.chomp unless err.empty?
58
59
  out
59
60
  end
@@ -122,5 +123,6 @@ module SNMP
122
123
  end # class CommandReader
123
124
 
124
125
  class CommandError < RuntimeError; end
126
+ class CommandTimeoutError < CommandError; end
125
127
  end # class Open
126
128
  end # module SNMP
@@ -1,5 +1,5 @@
1
1
  module Snmp
2
2
  module Open
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.3.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snmp-open
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Miller
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-06 00:00:00.000000000 Z
11
+ date: 2017-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.5.2
114
+ rubygems_version: 2.6.11
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Wrapper for command-line SNMP utilities