smart_proxy_dns_dnsmasq 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b72dfbc8d8bb15ab8e3f82edc199dba5d69be82b
4
- data.tar.gz: a838e866f2e0a211e9b6e0e9dcb2eb92c6cc9de7
3
+ metadata.gz: eb1aac2f3d95b7d541050735d2459b4c32a95331
4
+ data.tar.gz: f4fb0328e7cbf48f03d6ea70533e92c5e237a705
5
5
  SHA512:
6
- metadata.gz: 45411aa5eb6bc6e229c40b4778419387bcd300eb54f1933efaf9385d66c9bcdaf081a3eebb4081d4fc512141c707f45acd09693969b8654309218793e9c57ea3
7
- data.tar.gz: d9f30522bc0aa0c21b1262b437d76c6dc52ccc146754b0f97d92f6a958ca1ec6bce7a44cf95cd0241f0bd61067c3cb0c7a7c6e46583128d9551652d926bea685
6
+ metadata.gz: ad7db5669dd48e3d3826597d45048783766d82d5826b2c17366bc65e15bd0885063346557a910da33b500d8456760fb71b41ba6f20d40337947f621b62262810
7
+ data.tar.gz: 2e3bc42987949e4fce223869f7e286fdc94a227d64f9326bd0a49dd2d6a6d3d316f1f76ba2d5cdb4c952431ed6f84257969ddc93e4372e19bbe6a2016272c27c
@@ -39,7 +39,7 @@ module Proxy::Dns::Dnsmasq
39
39
  when 'A', 'AAAA'
40
40
  e = configuration.find { |entry| entry.is_a?(AddressEntry) && entry.fqdn.include?(fqdn) }
41
41
  when 'PTR'
42
- e = configuration.find { |entry| entry.is_a?(PTREntry) && entry.fqdn == fqdn }
42
+ e = configuration.find { |entry| entry.is_a?(PTREntry) && entry.ip == ip }
43
43
  end
44
44
 
45
45
  configuration.delete e
@@ -95,8 +95,9 @@ module Proxy::Dns::Dnsmasq
95
95
  data = value.split(',')
96
96
 
97
97
  entry = PTREntry.new
98
- entry.ip = data[0]
99
- entry.fqdn = data[1]
98
+ entry.ip = data.shift
99
+ entry.fqdn = data.shift
100
+
100
101
  # TODO: Handle these properly
101
102
  # when 'host-record'
102
103
  # data = value.split(',')
@@ -1,7 +1,7 @@
1
1
  module Proxy
2
2
  module Dns
3
3
  module Dnsmasq
4
- VERSION = '0.4'
4
+ VERSION = '0.5'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_dns_dnsmasq
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Olofsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-19 00:00:00.000000000 Z
11
+ date: 2017-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake