dns_mock 1.5.14 → 1.5.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/dns_mock.gemspec +0 -1
- data/lib/dns_mock/server.rb +1 -1
- data/lib/dns_mock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dde2e006cea4b8137662c0ce8d384cb64460a272f32837f515b9d9e60fa6b684
|
4
|
+
data.tar.gz: f9467600c7f31d111ec6fd8791727759ee7b087cc456ab8436c90d02aa67391b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4b457b61fea8487dee89d0dc202bcbb7ac0df033361c4bacfb10efac33631d58afb3a2565ef68211d0fd8b5f67ae69b0907e67bd254ea0af8731b341d89d0c
|
7
|
+
data.tar.gz: fb94b8273b7c2c0281da9f8dc5c3f9b44c71fdf08e6131ff8975d03049cfac34572f9e526e509e5d428f6b70fdb979662168b5f0fd8ccf98476af8cd2d5774f3
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2020-
|
3
|
+
Copyright (c) 2020-2023 Vladislav Trotsenko
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/dns_mock.gemspec
CHANGED
@@ -29,7 +29,6 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_runtime_dependency 'simpleidn', '~> 0.2.1'
|
30
30
|
|
31
31
|
spec.add_development_dependency 'ffaker', '~> 2.21'
|
32
|
-
spec.add_development_dependency 'net-ftp', '~> 0.2.0' if ::Gem::Version.new(::RUBY_VERSION) >= ::Gem::Version.new('3.1.0')
|
33
32
|
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.6'
|
34
33
|
spec.add_development_dependency 'rspec', '~> 3.12'
|
35
34
|
spec.add_development_dependency 'rspec-dns', '~> 0.1.8'
|
data/lib/dns_mock/server.rb
CHANGED
@@ -35,7 +35,7 @@ module DnsMock
|
|
35
35
|
begin
|
36
36
|
loop do
|
37
37
|
packet, addr = socket.recvfrom(DnsMock::Server::PACKET_MAX_BYTES_SIZE)
|
38
|
-
break if packet.
|
38
|
+
break if packet.empty?
|
39
39
|
|
40
40
|
address, port = addr.values_at(3, 1)
|
41
41
|
socket.send(DnsMock::Response::Message.new(packet, records, exception_if_not_found).as_binary_string, 0, address, port)
|
data/lib/dns_mock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dns_mock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladislav Trotsenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simpleidn
|