igp 0.0.2 → 0.0.3

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/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ Version 0.0.3 Release: 7th May 2011
2
+ ==================================================
3
+ * more ruby 1.8.7 compatibility fixes:
4
+ - suppress net-ping error on ^C
5
+ - requires rubygems (allows bin/igp to run when not already installed as a gem)
6
+ - don't lazy-evaluate GetOptions hash values
7
+
1
8
  Version 0.0.2 Release: 7th May 2011
2
9
  ==================================================
3
10
  * properly handle time format in 1.8 and 1.9 ruby
data/bin/igp CHANGED
@@ -7,7 +7,7 @@ require 'getoptions'
7
7
  begin
8
8
  options = GetOptions.new(Igp::Shell::OPTIONS)
9
9
  Igp::Shell.new(options,ARGV).run
10
- rescue Interrupt
10
+ rescue Interrupt,NoMethodError
11
11
  $stderr.puts ""
12
12
  rescue Exception => e
13
13
  $stderr.puts "That wasn't meant to happen! #{e.message}"
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{igp}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Gallagher"]
data/lib/igp.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems' if (RUBY_VERSION =~ /^1\.8/)
1
2
  require 'net/ping'
2
3
  require 'igp/version'
3
4
  require 'igp/shell'
@@ -18,7 +18,7 @@ class Igp::Shell
18
18
  defaults = {
19
19
  :interval => 1
20
20
  }
21
- @options = defaults.merge( (options||{}).each{|k|k} )
21
+ @options = defaults.merge( (options||{}).each{|k,v| {k => v} } )
22
22
  return unless args.first
23
23
  resolve_addressing args.first
24
24
  normalise_options
@@ -1,3 +1,3 @@
1
1
  class Igp
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: igp
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul Gallagher
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - ">="
120
120
  - !ruby/object:Gem::Version
121
- hash: -2613847138706563759
121
+ hash: -3110139737320668493
122
122
  segments:
123
123
  - 0
124
124
  version: "0"