netsnmp 0.6.2 → 0.6.3

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: aa51b06e1b2a8050faff5e0e347627356bccb462377042dc4fd303e0f41a9b90
4
- data.tar.gz: 5666b59c831b32d4bc8d71c9bccc177c511bd5362fc2ec3c6ac87a8ce72e5df6
3
+ metadata.gz: ff50c7291ee08e73da4c20435990ba7d4699a0489bbb454beb0577184988e865
4
+ data.tar.gz: 77e25540c9816c6c92e8c2783a276426149a468a9ea9c8f21130f260bbfcc1ce
5
5
  SHA512:
6
- metadata.gz: 3ee1ac34cf9edfd646f9ad0a21170dcc8201a1c20632f386214864fadecff851507423454b591bde488c6d2a5e2c56b903d37c5d6c57d8318823bf9a91ebb238
7
- data.tar.gz: efed105215b6bd3e7164221eca63581c69dfe3025a365a5484554b29abb5c8f8ae6ab27f6bc4bfcc096105ec2ff9226b4c008d899bc2de449e71bcbee8c2975a
6
+ metadata.gz: b6b15908f819e3363ebb80d8bb556256025f8ef560abf796336b675cd22e487e5cc65f985ef993e771733dcc738d8b73625e124a2e3b42866bdb743fb9848e46
7
+ data.tar.gz: 9886d5aa5a0de7bbb8f71b1ef8a9eb9aacf29faa5363b09362b1ebb78ad6de8075a60251d2b0891d18fd7f1c6fa6d05a4ba20c91da55eeace0837f3d8a7d4437
@@ -8,4 +8,6 @@ module NETSNMP
8
8
  class AuthenticationFailed < Error; end
9
9
 
10
10
  class IdNotInTimeWindowError < Error; end
11
+
12
+ class OidNotFound < StandardError; end
11
13
  end
@@ -116,6 +116,8 @@ module NETSNMP
116
116
  end
117
117
 
118
118
  def convert_application_asn(asn)
119
+ raise(OidNotFound, "No Such Instance currently exists at this OID") if asn.value.empty?
120
+
119
121
  case asn.tag
120
122
  when 0 # IP Address
121
123
  IPAddr.new_ntoh(asn.value)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NETSNMP
4
- VERSION = "0.6.2"
4
+ VERSION = "0.6.3"
5
5
  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.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-05 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements:
110
110
  - net-snmp
111
- rubygems_version: 3.3.3
111
+ rubygems_version: 3.2.32
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: SNMP Client library