netsnmp 0.1.7 → 0.1.8

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: 9997bb4fe95f94302f02a8fe7e416806b366e90b68ef9367b17076cbdc8ed3f7
4
- data.tar.gz: 74657115cb07003ba4a62187b0a7970866c6afaab882c667aa4c16f2ed84e931
3
+ metadata.gz: 63503f340ea989e7ea9f123bbb49901852322145256fe06ce44c0244dfeb9300
4
+ data.tar.gz: f3981e9e148338f926428324836436c40ed38e4c84143a10ad0541052d302506
5
5
  SHA512:
6
- metadata.gz: a6e3ea974eef0239bbd8aafdde6930f7696920057f768e968f69c88695513d12518104e2eebf5ab6cb417bdb302184518b7150214a318eab10e157ef39503805
7
- data.tar.gz: a150cc09fd0d6d7dcf6a1117fab67ba7680cdf6c0df7c4f44bd4b4004bc27a3d89483977cf45df13495d6e5d801ff7dd2b624749717b9c7e820624e36097cab2
6
+ metadata.gz: c0b078e30151385ab01d3825431debe83531cf70089536538a372574b3ee40deef8b53c99673a774553b3afed903b3773af2db57a782dffec7a403373cfeb06e
7
+ data.tar.gz: ed3b9b066c6330e1bc4f9367e1c05bcd14f93c9874a492295cac1df29f1e48079aa76225fe16fb35bc7b975a0c66a5208fea0395715603e932dd8d80b5b6cd0c
@@ -118,7 +118,9 @@ module NETSNMP
118
118
  val.prepend("\x00") while val.bytesize < 4
119
119
  val.unpack("N*")[0] || 0
120
120
  when 3 # timeticks
121
- Timetick.new(asn.value.unpack("N*")[0] || 0)
121
+ val = asn.value
122
+ val.prepend("\x00") while val.bytesize < 4
123
+ Timetick.new(val.unpack("N*")[0] || 0)
122
124
  # when 4 # opaque
123
125
  # when 5 # NSAP
124
126
  when 6 # ASN Counter 64
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NETSNMP
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
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.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-03 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  requirements:
144
144
  - net-snmp
145
- rubygems_version: 3.0.1
145
+ rubygems_version: 3.0.6
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: SNMP Client library