snmpjr 0.1.2-java → 0.1.3-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDg0ZjZmMzlhOTM4ZjA5Zjk3NzVhOTljN2U3MTI1M2RkZTBkYjNjMg==
4
+ NjVlOTJkNDZhYzNjZGY0Zjk2NDNiYWMzMGUzM2Q0Zjg5NDE0NDRlMA==
5
5
  data.tar.gz: !binary |-
6
- NzhkMWE4OTk2Nzk5MDg3YWJiOTk2ZDY2OTUzMTgwYzVlOWVhYjNjMQ==
6
+ YTQ4ODM1YTQ1NDE2NjlkZmMzMGU5OGE1OTEwMGNiNzYwMWU2NjIwZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmQ2ZGJmMzVlODRhNTJkZmIwN2VkMGIwYjA5MGE3Mzc0Nzc2OWRiOGVmOWYx
10
- OTYwNjU4ZmMwMjE1YzJkYjQzNWRkMjU5ZTljNTc1ODNkYTkzOTA3YTBmOTA3
11
- OTIyZDEzYTNkYTJmM2UwZTdlOTNmZWYxMTRhZDViZmE5NDUwZTc=
9
+ NzZiMzk2ZDJjMWNmNWE2OTg1NjY2YTcwMDAxODE3NGViODJkNzMwMmY0YmJh
10
+ MmNhZTllMWQwM2M4OWVhYWRmMTkzMGM2NjcwNTk1ZjljNjYyMWNkMWZmMTIy
11
+ YWFmNjIzNzMwN2Q4M2UyNTYxNTZiZWE5Mjg4ZDg2MTAyYTUyZTE=
12
12
  data.tar.gz: !binary |-
13
- Mjk1Y2VlZjg4NWZmNWFmZDM4MGNkZWY2NDNkZGQ0OWM4MjEwYjdjMzQ3YTY4
14
- YjJlNjE4NzA5ZjQyYmJlNjRhNzQxMmFmYmMxY2YxMDFmMjA3MmI1NmE2NDAx
15
- MzY4MTg0NGNjY2QwMDA1NzM1MWQyOTlkZTYwYjM0OTI3MDQ3MTg=
13
+ Y2YyYmVhMzBmNTRmYzUzYjdkZGI3ZmI0MzIyMTQ1NjA1ODZmZjk3Y2NiNThl
14
+ ZWQ5YjEzZjVjMjY3MjMxZTQ0NjJjNWNiMzAwZDQ3Y2M2NTUwMmQwM2IzYmUz
15
+ ZWU5OWFjM2Y0NzEwMWUwNGU0NDc1NTA2OWRlMjQ3M2U1MzRlNzI=
data/history.rdoc CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.3 (13 October 2014)
2
+
3
+ * Tweak the wording of the timeouts to show that its an error
4
+
1
5
  == 0.1.2 (13 October 2014)
2
6
 
3
7
  * Refactor the wiring
@@ -15,7 +15,7 @@ class Snmpjr
15
15
  begin
16
16
  result = @snmp.send(pdu, target)
17
17
  if result.response.nil?
18
- "Request timed out"
18
+ "Error: Request timed out"
19
19
  else
20
20
  result.response.variable_bindings.first.variable.to_s
21
21
  end
@@ -1,3 +1,3 @@
1
1
  class Snmpjr
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -29,7 +29,7 @@ describe "snmpjr" do
29
29
  subject { Snmpjr.new(:host => 'example.com', :port => 161, :community => 'public') }
30
30
 
31
31
  it "the request times out after 5 seconds" do
32
- expect(subject.get '1.3.6.1.2.1.1.1.0').to eq 'Request timed out'
32
+ expect(subject.get '1.3.6.1.2.1.1.1.0').to eq 'Error: Request timed out'
33
33
  end
34
34
  end
35
35
 
@@ -48,7 +48,7 @@ describe Snmpjr::Session do
48
48
  end
49
49
 
50
50
  it 'returns a request timeout' do
51
- expect(subject.send(pdu, target)).to eq "Request timed out"
51
+ expect(subject.send(pdu, target)).to eq "Error: Request timed out"
52
52
  end
53
53
  end
54
54
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snmpjr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: java
6
6
  authors:
7
7
  - Zen Kyprianou