rping 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/rping +1 -1
  2. data/lib/rping.rb +1 -1
  3. metadata +3 -3
data/bin/rping CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
 
4
- Version = '0.1.3'
4
+ Version = '0.1.4'
5
5
 
6
6
  require 'rubygems'
7
7
  require 'lib/rping'
@@ -31,7 +31,7 @@ class RPing
31
31
  end
32
32
 
33
33
  def ping(addr, &block)
34
- unless addr =~ /\A\d{3}\.\d{3}\.\d{3}\.\d{3}\Z/
34
+ unless addr =~ /\A\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\Z/
35
35
  addr = IPSocket.getaddress(addr)
36
36
  end
37
37
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rping
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel