dnssd 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.txt +4 -3
- data/Rakefile +5 -2
- data/ext/dnssd/extconf.rb +1 -1
- data/ext/dnssd/service.c +2 -1
- data/lib/dnssd.rb +2 -2
- data/sample/browse.rb +1 -2
- metadata +20 -28
- data/.gemtest +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3220dfc2db24fdf8c181561d0bd5734a7d08c62e6d5ca5b86987d9fa0cadcecd
|
4
|
+
data.tar.gz: f75f84ca852eee57ddbbd99174ba4e7b017aa6917970baa399952de43dfebbf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df4f7772d22fb7a489937a3d50d92db06ff43e533fafc7986a5141bda40075661e26200dcd774108653dad5ea661a3d3f0da6e6879c2cba6aee15e00f4ab6cd8
|
7
|
+
data.tar.gz: e65b30edf713a735b7514128293341f6e43d038366e36d30feffe411cc0d91d04f9efc13e0a7d22134fe72959c84f3938c7eba2e575267d92cb6b9c083865df1
|
data/README.txt
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
= dnssd
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
home :: https://github.com/tenderlove/dnssd
|
4
|
+
bugs :: https://github.com/tenderlove/dnssd/issues
|
5
|
+
|
6
|
+
* https://developer.apple.com/library/archive/documentation/Networking/Conceptual/dns_discovery_api/Introduction.html
|
6
7
|
|
7
8
|
== DESCRIPTION:
|
8
9
|
|
data/Rakefile
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'hoe'
|
5
|
+
require 'rake/extensiontask'
|
5
6
|
|
6
7
|
Hoe.plugin :minitest
|
7
8
|
Hoe.plugin :email
|
8
9
|
Hoe.plugin :git
|
9
|
-
Hoe.plugin :compiler
|
10
10
|
|
11
11
|
HOE = Hoe.spec 'dnssd' do
|
12
12
|
developer 'Eric Hodel', 'drbrain@segment.net'
|
@@ -16,7 +16,7 @@ HOE = Hoe.spec 'dnssd' do
|
|
16
16
|
developer 'Charles Mills', ''
|
17
17
|
developer 'Rich Kilmer', ''
|
18
18
|
|
19
|
-
|
19
|
+
license "MIT"
|
20
20
|
|
21
21
|
clean_globs << 'lib/dnssd/*.{so,bundle,dll}'
|
22
22
|
|
@@ -26,4 +26,7 @@ HOE = Hoe.spec 'dnssd' do
|
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
|
+
Rake::ExtensionTask.new("dnssd", HOE.spec) do |ext|
|
30
|
+
end
|
31
|
+
|
29
32
|
# vim: syntax=Ruby
|
data/ext/dnssd/extconf.rb
CHANGED
data/ext/dnssd/service.c
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
#include <netinet/in.h>
|
1
2
|
#include "dnssd.h"
|
2
3
|
|
3
4
|
static VALUE mDNSSD;
|
@@ -515,7 +516,7 @@ dnssd_service_register_reply(DNSServiceRef client, DNSServiceFlags flags,
|
|
515
516
|
static VALUE
|
516
517
|
dnssd_service_register(VALUE klass, VALUE _flags, VALUE _interface, VALUE _name,
|
517
518
|
VALUE _type, VALUE _domain, VALUE _host, VALUE _port, VALUE _text_record) {
|
518
|
-
const char *name, *type, *host = NULL, *domain = NULL;
|
519
|
+
const char *name = NULL, *type, *host = NULL, *domain = NULL;
|
519
520
|
uint16_t port;
|
520
521
|
uint16_t txt_len = 0;
|
521
522
|
char *txt_rec = NULL;
|
data/lib/dnssd.rb
CHANGED
@@ -13,7 +13,7 @@ module DNSSD
|
|
13
13
|
##
|
14
14
|
# The version of DNSSD you're using.
|
15
15
|
|
16
|
-
VERSION = '3.0.
|
16
|
+
VERSION = '3.0.2'
|
17
17
|
|
18
18
|
##
|
19
19
|
# Registers +socket+ with DNSSD as +name+. If +service+ is omitted it is
|
@@ -164,7 +164,7 @@ require 'dnssd/text_record'
|
|
164
164
|
ENV['AVAHI_COMPAT_NOWARN'] = '1'
|
165
165
|
|
166
166
|
# The C extension uses above-defined classes
|
167
|
-
require 'dnssd
|
167
|
+
require 'dnssd.so'
|
168
168
|
|
169
169
|
module DNSSD
|
170
170
|
# :stopdoc:
|
data/sample/browse.rb
CHANGED
@@ -4,14 +4,13 @@ Thread.abort_on_exception = true
|
|
4
4
|
trap 'INT' do exit end
|
5
5
|
trap 'TERM' do exit end
|
6
6
|
|
7
|
-
browser = DNSSD::Service.new
|
8
7
|
services = {}
|
9
8
|
|
10
9
|
puts "Browsing for TCP blackjack service"
|
11
10
|
puts "(run sample/register.rb)"
|
12
11
|
puts
|
13
12
|
|
14
|
-
|
13
|
+
DNSSD.browse! '_blackjack._tcp' do |reply|
|
15
14
|
services[reply.fullname] = reply
|
16
15
|
next if reply.flags.more_coming?
|
17
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnssd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -10,10 +10,10 @@ authors:
|
|
10
10
|
- Chad Fowler
|
11
11
|
- Charles Mills
|
12
12
|
- Rich Kilmer
|
13
|
-
autorequire:
|
13
|
+
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2022-10-28 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: minitest
|
@@ -21,56 +21,48 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - "~>"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: '5.
|
24
|
+
version: '5.16'
|
25
25
|
type: :development
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
28
|
requirements:
|
29
29
|
- - "~>"
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version: '5.
|
31
|
+
version: '5.16'
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: rdoc
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
|
-
- - "
|
36
|
+
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: '4.0'
|
39
|
+
- - "<"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '7'
|
39
42
|
type: :development
|
40
43
|
prerelease: false
|
41
44
|
version_requirements: !ruby/object:Gem::Requirement
|
42
45
|
requirements:
|
43
|
-
- - "
|
46
|
+
- - ">="
|
44
47
|
- !ruby/object:Gem::Version
|
45
48
|
version: '4.0'
|
46
|
-
-
|
47
|
-
name: rake-compiler
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
requirements:
|
50
|
-
- - "~>"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '0.7'
|
53
|
-
type: :development
|
54
|
-
prerelease: false
|
55
|
-
version_requirements: !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
57
|
-
- - "~>"
|
49
|
+
- - "<"
|
58
50
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
51
|
+
version: '7'
|
60
52
|
- !ruby/object:Gem::Dependency
|
61
53
|
name: hoe
|
62
54
|
requirement: !ruby/object:Gem::Requirement
|
63
55
|
requirements:
|
64
56
|
- - "~>"
|
65
57
|
- !ruby/object:Gem::Version
|
66
|
-
version: '3.
|
58
|
+
version: '3.25'
|
67
59
|
type: :development
|
68
60
|
prerelease: false
|
69
61
|
version_requirements: !ruby/object:Gem::Requirement
|
70
62
|
requirements:
|
71
63
|
- - "~>"
|
72
64
|
- !ruby/object:Gem::Version
|
73
|
-
version: '3.
|
65
|
+
version: '3.25'
|
74
66
|
description: |-
|
75
67
|
DNS Service Discovery (aka Bonjour, MDNS) API for Ruby. Implements browsing,
|
76
68
|
resolving, registration and domain enumeration. Supports avahi's DNSSD
|
@@ -133,12 +125,13 @@ files:
|
|
133
125
|
- test/test_dnssd_reply_resolve.rb
|
134
126
|
- test/test_dnssd_service.rb
|
135
127
|
- test/test_dnssd_text_record.rb
|
136
|
-
- ".gemtest"
|
137
128
|
homepage: https://github.com/tenderlove/dnssd
|
138
129
|
licenses:
|
139
130
|
- MIT
|
140
|
-
metadata:
|
141
|
-
|
131
|
+
metadata:
|
132
|
+
homepage_uri: https://github.com/tenderlove/dnssd
|
133
|
+
bug_tracker_uri: https://github.com/tenderlove/dnssd/issues
|
134
|
+
post_install_message:
|
142
135
|
rdoc_options:
|
143
136
|
- "--main"
|
144
137
|
- README.txt
|
@@ -155,9 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
148
|
- !ruby/object:Gem::Version
|
156
149
|
version: '0'
|
157
150
|
requirements: []
|
158
|
-
|
159
|
-
|
160
|
-
signing_key:
|
151
|
+
rubygems_version: 3.4.0.dev
|
152
|
+
signing_key:
|
161
153
|
specification_version: 4
|
162
154
|
summary: DNS Service Discovery (aka Bonjour, MDNS) API for Ruby
|
163
155
|
test_files: []
|
data/.gemtest
DELETED
File without changes
|