servedir 0.4 → 0.5

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.
Files changed (3) hide show
  1. data/README.md +2 -2
  2. data/bin/servedir +5 -3
  3. metadata +4 -4
data/README.md CHANGED
@@ -81,9 +81,9 @@ Authors
81
81
  Acknowledgements
82
82
  ----------------
83
83
 
84
- The external IP is retrieved via the [whatismyip.com](http://whatismyip.com)
84
+ The external IP is retrieved via the [ipecho.net](http://ipecho.net)
85
85
  automation service. Please read and follow the
86
- [rules concerning automated retrieval](http://www.whatismyip.com/faq/automation.asp);
86
+ [rules concerning automated retrieval](http://ipecho.net/developers.html);
87
87
  do not abuse their service.
88
88
 
89
89
 
@@ -1,14 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- # This is free and unencumbered software released into the public domain.
4
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
3
+ # This is free software released into the public domain (CC0 license).
4
+ #
5
+ # See the `COPYING` file or <http://creativecommons.org/publicdomain/zero/1.0/>
6
+ # for more details.
5
7
 
6
8
  require 'open-uri'
7
9
  require 'socket'
8
10
  require 'timeout'
9
11
  require 'webrick'
10
12
 
11
- IP_DISCO_SERVICE = 'http://automation.whatismyip.com/n09230945.asp'
13
+ IP_DISCO_SERVICE = 'http://ipecho.net/plain'
12
14
  LAN_IP = '169.254.0.1'
13
15
  PRIVATE_LIST_FILE = '.private'
14
16
  MAX_PORT = 2**16
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servedir
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- version: "0.4"
8
+ - 5
9
+ version: "0.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gioele Barabucci
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-08-23 00:00:00 Z
17
+ date: 2013-02-15 00:00:00 Z
18
18
  dependencies: []
19
19
 
20
20
  description: