netsnmp 0.7.0 → 0.7.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: dccc7490c2cbc05114eb97dbbf976a500939d3d4ac9d2fd7cc423c140201e809
4
- data.tar.gz: 0b15cf923a202e51d27c000cce1187c4b63d68dd2dc1b354105a27ebb61846b0
3
+ metadata.gz: 60d71ff1aabd1137563ad7f462bf416fe98db72f98b52416bda9e6cfe0270640
4
+ data.tar.gz: f333e7e64a609a586b2482cd7480717fbda6101462f8fdc03ab386f61ca03ac0
5
5
  SHA512:
6
- metadata.gz: da6cc741eee319b0e07c4fd04f5bd55003bd761be7c5598695b4894c3d399e0519d81bbf7ef6c64d3dc355f3b512802372541ea10859aa96f701a29d88a604ad
7
- data.tar.gz: a8b786a99c61cd722a789e06b6810545a54b18de47a08bf090f0251649fe20f22987294da9c54f8875783a29779817276b5368004adc52e80a6122b3cbbfcd9c
6
+ metadata.gz: 5286d1ccebe06b21d60745239026329a75ea605b5bbdbbc1ce1f7dab55d969fde72e4114fc7881a8864526fc8b77a4817d3c11c24c62855de3a1793e98303fa4
7
+ data.tar.gz: e54d184b10b1f53a21a810253332a0262dd62af6a6f9e72d027c9535b9785a0e63efbd74a5e272db29a6f201db7318c32302b02dd7265cb1842900ea2cad92bd
@@ -155,7 +155,7 @@ module NETSNMP
155
155
  retries = @retries
156
156
  begin
157
157
  yield
158
- rescue Timeout::Error, IdNotInTimeWindowError => e
158
+ rescue Timeout::Error, IdNotInTimeWindowError, UnknownEngineIdError => e
159
159
  raise e if retries.zero?
160
160
 
161
161
  retries -= 1
@@ -7,6 +7,8 @@ module NETSNMP
7
7
 
8
8
  class AuthenticationFailed < Error; end
9
9
 
10
+ class UnknownEngineIdError < Error; end
11
+
10
12
  class IdNotInTimeWindowError < Error; end
11
13
 
12
14
  class OidNotFound < StandardError; end
@@ -93,7 +93,7 @@ module NETSNMP
93
93
  when "1.3.6.1.6.3.15.1.1.3.0" # usmStatsUnknownUserNames
94
94
  raise Error, "Unknown user name"
95
95
  when "1.3.6.1.6.3.15.1.1.4.0" # usmStatsUnknownEngineIDs
96
- raise Error, "Unknown engine ID" unless @security_parameters.must_revalidate?
96
+ raise UnknownEngineIdError, "Unknown engine ID" unless @security_parameters.must_revalidate?
97
97
  when "1.3.6.1.6.3.15.1.1.5.0" # usmStatsWrongDigests
98
98
  raise Error, "Authentication failure (incorrect password, community or key)"
99
99
  when "1.3.6.1.6.3.15.1.1.6.0" # usmStatsDecryptionErrors
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NETSNMP
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
data/sig/errors.rbs CHANGED
@@ -8,6 +8,9 @@ module NETSNMP
8
8
  class AuthenticationFailed < Error
9
9
  end
10
10
 
11
+ class UnknownEngineIdError < Error
12
+ end
13
+
11
14
  class IdNotInTimeWindowError < Error
12
15
  end
13
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsnmp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-03 00:00:00.000000000 Z
11
+ date: 2023-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.3.7
101
+ rubygems_version: 3.4.10
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: SNMP Client library