resolv-hosts-dynamic 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 625a6c978f45ec588d4b5711ba9812ff771df9bd
4
- data.tar.gz: d8fe024b406abc13f2b5a673cc7a7966d01259d5
3
+ metadata.gz: 0a09b00f5fb36feb93cc7e35df97f86f42d3b84c
4
+ data.tar.gz: 1e19e5b90ad37b68fd5c8923f50f26e599b9e9e8
5
5
  SHA512:
6
- metadata.gz: ddfc51c87e75e33ae548e17f9dd08ce5423a5a6c765d275419c521ba6cef2d5819547bfd7dcfcd707a622ebc91fb3dd45fa14cda7b24090bb4cd4a8751551b39
7
- data.tar.gz: ccefb782906119fd46b398159d1e1f09d7a5aae83685187cbc2829a0a077634859eff689295312788d91b458aa8c50f97b369ba808367d253e37e50e9a393414
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` function) if we've still got a handle on the object. An
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.1"
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.1
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-08 00:00:00.000000000 Z
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler