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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55313ea1a6642173d99b42f50c381593adcaf93e
4
- data.tar.gz: 4500b9b1250ab216871cf0e517b8a1d47f683bed
3
+ metadata.gz: 42cc48b7cd27987ef9bf4a9ab604a7c819ff2dae
4
+ data.tar.gz: c3a38d4e43063ed42a0ce786628e3af6a915504b
5
5
  SHA512:
6
- metadata.gz: e9ac99bdf0c59be35c8934a4376e7a51a6fa54816608395654d2ef40e5892e62809f40154b654297672a686c86b52e0b80330470b62cf29c7c1fdb440709ce53
7
- data.tar.gz: 19f0e812245542f3ba4161287c41960f414ab3cf39b5546d661e415adbe7e76883a2ba01ceea46ea2e3218c85f546e950d24a7da1ca4ed4f471338642c222462
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 { |*args| yield(*args) }
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|
@@ -1,5 +1,5 @@
1
1
  module Snmp
2
2
  module Open
3
- VERSION = '0.1.2'.freeze
3
+ VERSION = '0.1.3'.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.1.2
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-16 00:00:00.000000000 Z
11
+ date: 2017-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler