logstash-output-snmptrap-v2 0.9.3 → 0.9.4

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: 8f5c8c3efac1f786b630caca249fcee08595409a5b25ed1f44865eabc4081094
4
- data.tar.gz: f2a554fa7c56fbad6017ab5896e66ac45b7ecd944519a6022c91861e60415707
3
+ metadata.gz: '08028240baa2ddb9fa1bbfc84cbd0fbd622502ed34d136f10fa5e7c0592766ec'
4
+ data.tar.gz: 68d70ff53fc42428fc603d1061ac5261fa321fe4ea3910380d31e052e3c7f89a
5
5
  SHA512:
6
- metadata.gz: f9c594258869f90e87afb7934a9f033d832e13adb818f486ee0c22911ad1013906c7c763c4b175571c4bf33c8f8a90558f54e4d80ee66631a0244fc39a804b3e
7
- data.tar.gz: 27a8e6bc9af655033a01583bd6d19fdf01e8e5d5731d6c5dc144054d11499edb4bd90677727ded50f2f14b871f1fb242eaf4632fd1682c843d61bd372f026cb8
6
+ metadata.gz: 457d44e7d6ee7f29724744b0ddce5a18559bdbab939d5aa0b9845078f269ee5271f9c097ae9125edd1405a524e005fc04cba174fafd8745ef1936eddb12bde15
7
+ data.tar.gz: 1101570d0702870cf5731ffeb6ca1be6e4994c6670119fc170081537d5d1d8fb4824b82182cff85b2a49a0d425483832c5146668a9e4b59f3dcefdacd544db46
@@ -48,10 +48,8 @@ class LogStash::Outputs::Snmptrap < LogStash::Outputs::Base
48
48
  value.delete_prefix!("@")
49
49
  value = event.get(value)
50
50
  end
51
- if value.is_a? String
51
+ unless value.nil?
52
52
  varbinds << SNMP::VarBind.new(key, SNMP::OctetString.new(value.force_encoding('ASCII-8BIT')))
53
- elsif value.is_a? Integer
54
- varbinds << SNMP::VarBind.new(key, SNMP::Integer.new(value))
55
53
  end
56
54
  end
57
55
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-snmptrap-v2'
3
- s.version = '0.9.3'
3
+ s.version = '0.9.4'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'SNMP Output for Logstash'
6
6
  s.description = 'This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-snmptrap-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Vingerling
@@ -89,8 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
- rubyforge_project:
93
- rubygems_version: 2.7.6
92
+ rubygems_version: 3.0.3
94
93
  signing_key:
95
94
  specification_version: 4
96
95
  summary: SNMP Output for Logstash