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 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
@@ -2,11 +2,11 @@ module Dirndl
2
2
  class Resolver
3
3
  initialize_with :zone_db_root_path
4
4
 
5
- def call query, response
6
- zone = load_zone_for query.human_qname
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.human_qname
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
@@ -1,3 +1,3 @@
1
1
  module Dirndl
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2alpha1"
3
3
  end
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.1
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-26 00:00:00.000000000Z
12
+ date: 2011-10-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: latte
16
- requirement: &70207096539080 !ruby/object:Gem::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: '0'
21
+ version: 0.0.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70207096539080
24
+ version_requirements: *70105487137040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: dns-zonefile
27
- requirement: &70207096538580 !ruby/object:Gem::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: *70207096538580
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: '0'
71
+ version: 1.3.1
72
72
  requirements: []
73
73
  rubyforge_project: dirndl
74
74
  rubygems_version: 1.8.10