dns-sniper 0.0.1.pre2 → 0.0.1.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e0cfd33b8c953620c67bd40ea77e26ed12f7a9a10716918ee130a87a8617975
4
- data.tar.gz: 9c74827c20d2d3a6cef9ca2876eb9659475401088e05d963778eed19c6d11374
3
+ metadata.gz: eb0e330d2e7c2b4061f4c93ff5825ff09d768a55f57e732e6557f13e822c9436
4
+ data.tar.gz: 6909002d1f80141a9855b917be54c0e2076c0b465f2f8aa6cf143ea93f6eba8d
5
5
  SHA512:
6
- metadata.gz: 57d9eaeeb39531a8ec3a5ca9bc0ea21e4dd8277c97b7ecb01fbd49f3109db725efc58096ce60768fb20585d19de26880e34c97e10f2011d2e4ea4e58d09d8d00
7
- data.tar.gz: e673010ec9e40910411c4cb63f9f018c70faff0704bc96fc060900cf1188d74df37571821509e06bc98b7092c31b6cf0c8fab615f78fe086ecf892f199ddbbd8
6
+ metadata.gz: bbb70cdbbf01ade47a2d6b359fe63fb97e1c577795d979746d93c858b0644313e0285415acf86a79d56a6baaaa6c0cc1b908bc01fb90b8b90d6bb86df2219125
7
+ data.tar.gz: f5773fc187a174a969c4c8953ab3c24e9803a3eba481fb028f300a9886aa09391d85a9f5383c46a726d123b954489f4e6e5a1a613b6300f4cdbdae3ddb353bc2
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'dns-sniper'
5
5
  spec.license = 'MIT'
6
- spec.version = '0.0.1.pre2'
6
+ spec.version = '0.0.1.pre3'
7
7
  spec.date = '2020-11-01'
8
8
 
9
9
  spec.authors = ['Brody Hoskins']
@@ -3,7 +3,6 @@
3
3
  module DNSSniper
4
4
  module Formatters
5
5
  extend self
6
- # module_function
7
6
 
8
7
  attr_reader :registered
9
8
  @registered = []
@@ -12,7 +12,7 @@ module DNSSniper
12
12
 
13
13
  str = ''.dup
14
14
  @hostnames.each do |hostname|
15
- str << "zone \"#{hostname}\" { type master; notify no; file \"#{options[:zone_file]}\"; };#{$INPUT_RECORD_SEPARATOR}"
15
+ str << "zone \"#{hostname}\" { type master; notify no; file \"#{options[:zone_file]}\"; };#{$/}"
16
16
  end
17
17
  str
18
18
  end
@@ -10,7 +10,7 @@ module DNSSniper
10
10
  def output(_options = {})
11
11
  str = ''.dup
12
12
  @hostnames.each do |hostname|
13
- str << "server=/#{hostname}/#{$INPUT_RECORD_SEPARATOR}"
13
+ str << "server=/#{hostname}/#{$/}"
14
14
  end
15
15
  str
16
16
  end
@@ -10,7 +10,7 @@ module DNSSniper
10
10
  def output(_options = {})
11
11
  str = ''.dup
12
12
  @hostnames.each do |hostname|
13
- str << "127.0.0.1\t#{hostname}#{$INPUT_RECORD_SEPARATOR}"
13
+ str << "127.0.0.1\t#{hostname}#{$/}"
14
14
  end
15
15
  str
16
16
  end
@@ -8,7 +8,7 @@ module DNSSniper
8
8
  end
9
9
 
10
10
  def output(_options = {})
11
- @hostnames.to_a.join($INPUT_RECORD_SEPARATOR)
11
+ @hostnames.to_a.join($/)
12
12
  end
13
13
  end
14
14
  end
@@ -9,9 +9,9 @@ module DNSSniper
9
9
 
10
10
  def output(_options = {})
11
11
  str = ''.dup
12
- str << "server:#{$INPUT_RECORD_SEPARATOR}"
12
+ str << "server:#{$/}"
13
13
  @hostnames.each do |hostname|
14
- str << " local-zone: \"#{hostname}\" static#{$INPUT_RECORD_SEPARATOR}"
14
+ str << " local-zone: \"#{hostname}\" static#{$/}"
15
15
  end
16
16
  str
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dns-sniper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre2
4
+ version: 0.0.1.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brody Hoskins