snmp-open 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snmp/open/file_reader.rb +1 -1
- data/lib/snmp/open/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42cc48b7cd27987ef9bf4a9ab604a7c819ff2dae
|
4
|
+
data.tar.gz: c3a38d4e43063ed42a0ce786628e3af6a915504b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 423425fb07efe8265c9384d1f60ebe18ec12ea5a08f9e58551b6837e817fb84fb9604a63690398d23e21d2b537a23b2c00d958d3b2b00c0e3eb5aca5f23faaa8
|
7
|
+
data.tar.gz: 4af15c0e555126e1015936069aeac4c8aaf9ec3e8b067089f3e9092205609478a30bc566232d1c2c0f3c519b0283dcd4e8b881e4d199101c36ab7e1ccbcae3a7
|
@@ -23,7 +23,7 @@ module SNMP
|
|
23
23
|
def get(oids)
|
24
24
|
return enum_for(:get, oids) unless block_given?
|
25
25
|
texts = oids.map { |o| File.read(File.join(@directory, 'get', o)) }
|
26
|
-
Parser.new(oids).parse(texts).each {
|
26
|
+
Parser.new(oids).parse(texts).each { |arg, *| yield(arg) }
|
27
27
|
rescue Errno::ENOENT => err
|
28
28
|
if @warnings
|
29
29
|
oids.each do |oid|
|
data/lib/snmp/open/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.3
|
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-03-
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|