specjour 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/specjour.rb +2 -2
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.13
1
+ 0.1.14
data/lib/specjour.rb CHANGED
@@ -23,7 +23,7 @@ module Specjour
23
23
  autoload :RsyncDaemon, 'specjour/rsync_daemon'
24
24
  autoload :Worker, 'specjour/worker'
25
25
 
26
- VERSION = "0.1.13".freeze
26
+ VERSION = "0.1.14".freeze
27
27
 
28
28
  class Error < StandardError; end
29
29
 
@@ -42,6 +42,6 @@ module Specjour
42
42
  end
43
43
 
44
44
  def self.ip_from_hostname(hostname)
45
- Socket.getaddrinfo(hostname, nil).last.fetch(3)
45
+ Socket.getaddrinfo(hostname, nil, Socket::AF_INET, Socket::SOCK_STREAM).first.fetch(3)
46
46
  end
47
47
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 13
9
- version: 0.1.13
8
+ - 14
9
+ version: 0.1.14
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sandro Turriate