SNMP4JR 0.0.17 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/SNMP4JR.gemspec +1 -1
  3. data/lib/SNMP4JR.rb +3 -2
  4. metadata +1 -1
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('SNMP4JR', '0.0.17') do |p|
5
+ Echoe.new('SNMP4JR', '0.0.19') do |p|
6
6
  p.description = "High Performance SNMP Library for JRuby which wraps SNMP4J"
7
7
  p.url = "http://github.com/awksedgreep/SNMP4JR"
8
8
  p.author = "Mark Cotner"
data/SNMP4JR.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{SNMP4JR}
5
- s.version = "0.0.17"
5
+ s.version = "0.0.19"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mark Cotner"]
data/lib/SNMP4JR.rb CHANGED
@@ -76,7 +76,7 @@ end
76
76
 
77
77
  class SNMPTarget
78
78
  attr_accessor :host, :community, :timeout, :version, :max_repetitions, :non_repeaters, :port
79
- attr_reader :request_type, :snmp, :result, :pdus_sent
79
+ attr_reader :request_type, :snmp, :result, :pdus_sent, :pdu
80
80
 
81
81
  DEFAULTS = {:host => '127.0.0.1', :community => 'public', :timeout => 2000,
82
82
  :version => SNMP4JR::MP::Version2c, :transport => 'udp', :port => 161,
@@ -324,7 +324,6 @@ class SNMPTarget
324
324
  output
325
325
  end
326
326
 
327
- private
328
327
  def pdu
329
328
  @pdu = SNMP4JR::PDU.new
330
329
  @oids.each do |oid|
@@ -335,6 +334,8 @@ class SNMPTarget
335
334
  @pdu.type = @request_type
336
335
  @pdu
337
336
  end
337
+
338
+ private
338
339
 
339
340
  def reset_session
340
341
  @pdu = nil unless @oids.nil?
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: SNMP4JR
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.17
5
+ version: 0.0.19
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mark Cotner