resolv-hosts-dynamic 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/resolv-hosts-dynamic.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a09b00f5fb36feb93cc7e35df97f86f42d3b84c
|
4
|
+
data.tar.gz: 1e19e5b90ad37b68fd5c8923f50f26e599b9e9e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a465e79ef198f2b6e12dffa7388e04dfd21bc129e14c29e5c5e72423a41eab6985ce69ac1a35f57d4ae2f84d1ec238460ccc285554fd45540491b8e2f8165f2
|
7
|
+
data.tar.gz: 21cba356d21780ed5b94d1e98a634cc06fa068fb722f595b527ae34ce6516021c7593e2a720e9e2008a3800e3e75c79280198b1136fa0f39185fcad449521e7e
|
data/README.md
CHANGED
@@ -27,7 +27,7 @@ Or install it yourself as:
|
|
27
27
|
### Adding entries to the dynamic host resolver
|
28
28
|
|
29
29
|
Entries can be added during class instantiation or at any point afterwards
|
30
|
-
(via the `add_address`
|
30
|
+
(via the `add_address` method) if we've still got a handle on the object. An
|
31
31
|
entry consists of a hash with the `addr` and `hostname` properties, plus an
|
32
32
|
optional `aliases` property. Entries added during class instantiation can be
|
33
33
|
in the form of a single entry or an array of entries. `add_address` only
|
@@ -60,6 +60,7 @@ res.add_address({
|
|
60
60
|
This class can be used on its own or within the standard ruby Resolv library.
|
61
61
|
|
62
62
|
On its own:
|
63
|
+
|
63
64
|
```ruby
|
64
65
|
require 'resolv-hosts-dynamic'
|
65
66
|
|
@@ -73,6 +74,7 @@ res.getname('127.1.2.3')
|
|
73
74
|
```
|
74
75
|
|
75
76
|
Within the standard ruby Resolv library:
|
77
|
+
|
76
78
|
```ruby
|
77
79
|
require 'resolv-hosts-dynamic'
|
78
80
|
|
@@ -93,6 +95,7 @@ res.getaddresses('rubygems.org')
|
|
93
95
|
|
94
96
|
Replacing the default resolver in the standard ruby Resolv library (using
|
95
97
|
`resolve-replace`):
|
98
|
+
|
96
99
|
```ruby
|
97
100
|
require 'resolv-hosts-dynamic'
|
98
101
|
require 'resolv-replace'
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "resolv-hosts-dynamic"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.2"
|
8
8
|
spec.authors = ["Chris Reeves"]
|
9
9
|
spec.email = ["chris.reeves@york.ac.uk"]
|
10
10
|
spec.summary = %q{Dynamic in-memory 'hosts' file for resolving hostnames.}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resolv-hosts-dynamic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Reeves
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|