dirndl 0.0.1 → 0.0.2alpha1
Sign up to get free protection for your applications and to get access to all the features.
- data/dirndl.gemspec +1 -1
- data/lib/dirndl/resolver.rb +3 -3
- data/lib/dirndl/version.rb +1 -1
- metadata +10 -10
data/dirndl.gemspec
CHANGED
@@ -18,6 +18,6 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_runtime_dependency "latte"
|
21
|
+
s.add_runtime_dependency "latte", ">= 0.0.2"
|
22
22
|
s.add_runtime_dependency "dns-zonefile", ">= 1.0.0"
|
23
23
|
end
|
data/lib/dirndl/resolver.rb
CHANGED
@@ -2,11 +2,11 @@ module Dirndl
|
|
2
2
|
class Resolver
|
3
3
|
initialize_with :zone_db_root_path
|
4
4
|
|
5
|
-
def call
|
6
|
-
zone = load_zone_for
|
5
|
+
def call question, response
|
6
|
+
zone = load_zone_for question.qname
|
7
7
|
return unless zone
|
8
8
|
zone.records_of(DNS::Zonefile::A).each do |rr|
|
9
|
-
next unless rr.host == query.
|
9
|
+
next unless rr.host == query.qname
|
10
10
|
answer = "#{rr.host} #{rr.klass} A #{rr.ttl} #{rr.address}"
|
11
11
|
response.add answer
|
12
12
|
end
|
data/lib/dirndl/version.rb
CHANGED
metadata
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dirndl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2alpha1
|
5
|
+
prerelease: 5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Craig R Webster
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-30 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: latte
|
16
|
-
requirement: &
|
16
|
+
requirement: &70105487137040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.0.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70105487137040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: dns-zonefile
|
27
|
-
requirement: &
|
27
|
+
requirement: &70105487136540 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 1.0.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70105487136540
|
36
36
|
description: Use Latte and DNS::Zonefile to serve text based zonefiles via DNS. This
|
37
37
|
is a toy project, I don't intend to use it in production anywhere.
|
38
38
|
email:
|
@@ -66,9 +66,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|
69
|
-
- - ! '
|
69
|
+
- - ! '>'
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
71
|
+
version: 1.3.1
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project: dirndl
|
74
74
|
rubygems_version: 1.8.10
|