mgparser 0.1.0 → 0.1.1

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.
data/bin/mgparser CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), ".", "lib"))
2
+ $LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), ".", "../lib"))
3
3
  require 'rubygems'
4
4
  require 'bundler/setup'
5
5
  require 'eventmachine'
data/lib/snmp_gw.rb CHANGED
@@ -19,7 +19,10 @@ def initialize(port, ipaddr, snmp)
19
19
  manager.close
20
20
  rescue Errno::EHOSTUNREACH, Errno::EHOSTDOWN
21
21
  puts "Host Unreachable!"
22
- abort""
22
+ abort ""
23
+ rescue SNMP::RequestTimeout
24
+ puts "Host is not responding (a firewall can be active or there is no SNMP network service listening on port: #{snmp})"
25
+ abort ""
23
26
  end
24
27
 
25
28
  end
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Mgparser
2
2
  module VERSION
3
3
  MAJOR = 0 unless defined? MAJOR
4
4
  MINOR = 1 unless defined? MINOR
5
- TINY = 0 unless defined? TINY
5
+ TINY = 1 unless defined? TINY
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.') unless defined? STRING
8
8
  end
data/mgparser.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.authors = ["Dawid Pogorzelski"]
11
11
 
12
12
  s.date = Date.today.to_s
13
- s.description = "MGParser (MGP) is a tool which makes analysis of Mediatrix ISDN gateways debug a much simpler task."
13
+ s.description = "MGParser (MGP) is a tool which makes analysis of Mediatrix ISDN gateways debug a much simpler task"
14
14
  s.email = "dawid.pogorzelski@mybushido.com"
15
15
  s.executables = ["mgparser"]
16
16
 
@@ -25,10 +25,9 @@ Gem::Specification.new do |s|
25
25
  Gemfile
26
26
  }
27
27
 
28
- s.has_rdoc = false
29
28
  s.homepage = "https://github.com/dawid999/MGParser"
30
29
  s.require_paths = ["lib"]
31
- s.summary = "MGParser (MGP) is a tool which makes analysis of Mediatrix ISDN gateways debug a much simpler task."
30
+ s.summary = "Mediatrix ISDN gateways debug utility"
32
31
 
33
32
  # Runtime dependencies
34
33
  s.add_runtime_dependency("bundler", [">= 1.0.10"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mgparser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dawid Pogorzelski
@@ -61,7 +61,7 @@ dependencies:
61
61
  version: "0"
62
62
  type: :runtime
63
63
  version_requirements: *id003
64
- description: MGParser (MGP) is a tool which makes analysis of Mediatrix ISDN gateways debug a much simpler task.
64
+ description: MGParser (MGP) is a tool which makes analysis of Mediatrix ISDN gateways debug a much simpler task
65
65
  email: dawid.pogorzelski@mybushido.com
66
66
  executables:
67
67
  - mgparser
@@ -110,6 +110,6 @@ rubyforge_project:
110
110
  rubygems_version: 1.7.2
111
111
  signing_key:
112
112
  specification_version: 3
113
- summary: MGParser (MGP) is a tool which makes analysis of Mediatrix ISDN gateways debug a much simpler task.
113
+ summary: Mediatrix ISDN gateways debug utility
114
114
  test_files: []
115
115