airplay 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +83 -25
- data/airplay-cli.gemspec +1 -1
- data/airplay.gemspec +3 -3
- data/lib/airplay/browser.rb +10 -4
- data/lib/airplay/cli/doctor.rb +1 -2
- data/lib/airplay/version.rb +1 -1
- data/lib/airplay/viewer.rb +1 -1
- data/test/integration/fetching_device_information_test.rb +1 -1
- metadata +39 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebaa7cb6b8798eea0338ae3a599f5621802b6bf1
|
4
|
+
data.tar.gz: 576e3bcf3073b8cfa1b8484b3a6a8398d333e51e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8678ea6f770ca701a19616fa505cd7a3f70599369ab305fc76576e24387ada0290bbb79b3d19862ceb209643e513597f13247189dbf0d837663cc7d019be8513
|
7
|
+
data.tar.gz: c4f80aeff75b7d239774c872c96cb4151171f77b294e9d5288707b342b2328b7b58a8d78890e11947212d10710e0bc2f44460458077c231cd269ba6f689491ba
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
airplay (1.0.
|
5
|
-
CFPropertyList (~> 2.2
|
6
|
-
celluloid (>= 0.
|
4
|
+
airplay (1.0.4)
|
5
|
+
CFPropertyList (~> 2.2)
|
6
|
+
celluloid (>= 0.17.0)
|
7
7
|
cuba (~> 3.1.0)
|
8
|
-
dnssd (~>
|
8
|
+
dnssd (~> 3.0)
|
9
9
|
log4r (~> 1.1.10)
|
10
10
|
micromachine (~> 1.0.4)
|
11
11
|
mime-types (>= 1.16)
|
@@ -13,59 +13,114 @@ PATH
|
|
13
13
|
net-ptth (= 0.0.17)
|
14
14
|
reel-rack (~> 0.1.0)
|
15
15
|
airplay-cli (1.0.2)
|
16
|
-
airplay (
|
16
|
+
airplay (>= 1.0.3)
|
17
17
|
clap (~> 1.0.0)
|
18
18
|
ruby-progressbar (~> 1.2.0)
|
19
19
|
|
20
20
|
GEM
|
21
21
|
remote: http://rubygems.org/
|
22
22
|
specs:
|
23
|
-
CFPropertyList (2.
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
celluloid
|
28
|
-
|
23
|
+
CFPropertyList (2.3.1)
|
24
|
+
addressable (2.3.8)
|
25
|
+
celluloid (0.17.0)
|
26
|
+
bundler
|
27
|
+
celluloid-essentials
|
28
|
+
celluloid-extras
|
29
|
+
celluloid-fsm
|
30
|
+
celluloid-pool
|
31
|
+
celluloid-supervision
|
32
|
+
dotenv
|
33
|
+
nenv
|
34
|
+
rspec-logsplit (>= 0.1.2)
|
35
|
+
timers (~> 4.0.0)
|
36
|
+
celluloid-essentials (0.20.1.1)
|
37
|
+
bundler
|
38
|
+
dotenv
|
39
|
+
nenv
|
40
|
+
rspec-logsplit (>= 0.1.2)
|
41
|
+
timers (~> 4.0.0)
|
42
|
+
celluloid-extras (0.20.0)
|
43
|
+
bundler
|
44
|
+
dotenv
|
45
|
+
nenv
|
46
|
+
rspec-logsplit (>= 0.1.2)
|
47
|
+
timers (~> 4.0.0)
|
48
|
+
celluloid-fsm (0.20.0)
|
49
|
+
bundler
|
50
|
+
dotenv
|
51
|
+
nenv
|
52
|
+
rspec-logsplit (>= 0.1.2)
|
53
|
+
timers (~> 4.0.0)
|
54
|
+
celluloid-io (0.16.2)
|
55
|
+
celluloid (>= 0.16.0)
|
56
|
+
nio4r (>= 1.1.0)
|
57
|
+
celluloid-pool (0.20.0)
|
58
|
+
bundler
|
59
|
+
dotenv
|
60
|
+
nenv
|
61
|
+
rspec-logsplit (>= 0.1.2)
|
62
|
+
timers (~> 4.0.0)
|
63
|
+
celluloid-supervision (0.20.0)
|
64
|
+
bundler
|
65
|
+
dotenv
|
66
|
+
nenv
|
67
|
+
rspec-logsplit (>= 0.1.2)
|
68
|
+
timers (~> 4.0.0)
|
29
69
|
clap (1.0.0)
|
30
70
|
cuba (3.1.1)
|
31
71
|
rack
|
32
|
-
dnssd (
|
72
|
+
dnssd (3.0.1)
|
73
|
+
domain_name (0.5.24)
|
74
|
+
unf (>= 0.0.5, < 1.0.0)
|
75
|
+
dotenv (2.0.2)
|
33
76
|
fakeweb (1.3.0)
|
34
77
|
given_core (3.0.0)
|
35
78
|
sorcerer (>= 0.3.7)
|
36
|
-
|
37
|
-
|
79
|
+
hitimes (1.2.2)
|
80
|
+
http (0.9.0)
|
81
|
+
addressable (~> 2.3)
|
82
|
+
http-cookie (~> 1.0)
|
83
|
+
http-form_data (~> 1.0.1)
|
84
|
+
http_parser.rb (~> 0.6.0)
|
85
|
+
http-cookie (1.0.2)
|
86
|
+
domain_name (~> 0.5)
|
87
|
+
http-form_data (1.0.1)
|
38
88
|
http_parser.rb (0.6.0)
|
39
89
|
log4r (1.1.10)
|
40
90
|
micromachine (1.0.4)
|
41
|
-
mime-types (2.
|
91
|
+
mime-types (2.6.1)
|
42
92
|
minitest (4.4.0)
|
43
93
|
minitest-given (3.0.0)
|
44
94
|
given_core (= 3.0.0)
|
45
95
|
minitest (> 4.3)
|
96
|
+
nenv (0.2.0)
|
46
97
|
net-http-digest_auth (1.2.1)
|
47
98
|
net-ptth (0.0.17)
|
48
99
|
celluloid-io (>= 0.15.0)
|
49
100
|
http_parser.rb (>= 0.6.0.beta.2)
|
50
101
|
rack (>= 1.4.5)
|
51
|
-
nio4r (1.
|
52
|
-
rack (1.
|
53
|
-
rake (10.
|
54
|
-
reel (0.
|
102
|
+
nio4r (1.1.1)
|
103
|
+
rack (1.6.4)
|
104
|
+
rake (10.4.2)
|
105
|
+
reel (0.5.0)
|
55
106
|
celluloid (>= 0.15.1)
|
56
107
|
celluloid-io (>= 0.15.0)
|
57
|
-
http (>= 0.
|
58
|
-
http_parser.rb (>= 0.6.0
|
59
|
-
websocket_parser (>= 0.1.
|
108
|
+
http (>= 0.6.0.pre)
|
109
|
+
http_parser.rb (>= 0.6.0)
|
110
|
+
websocket_parser (>= 0.1.6)
|
60
111
|
reel-rack (0.1.0)
|
61
112
|
rack (>= 1.4.0)
|
62
113
|
reel (>= 0.4.0)
|
114
|
+
rspec-logsplit (0.1.3)
|
63
115
|
ruby-progressbar (1.2.0)
|
64
116
|
sorcerer (1.0.2)
|
65
|
-
timers (
|
117
|
+
timers (4.0.1)
|
118
|
+
hitimes
|
119
|
+
unf (0.1.4)
|
120
|
+
unf_ext
|
121
|
+
unf_ext (0.0.7.1)
|
66
122
|
vcr (2.4.0)
|
67
|
-
websocket_parser (0.
|
68
|
-
http
|
123
|
+
websocket_parser (1.0.0)
|
69
124
|
|
70
125
|
PLATFORMS
|
71
126
|
ruby
|
@@ -78,3 +133,6 @@ DEPENDENCIES
|
|
78
133
|
minitest-given (~> 3.0.0)
|
79
134
|
rake
|
80
135
|
vcr (~> 2.4.0)
|
136
|
+
|
137
|
+
BUNDLED WITH
|
138
|
+
1.10.6
|
data/airplay-cli.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.homepage = "http://github.com/elcuervo/airplay"
|
14
14
|
s.files = %w(bin/air lib/airplay/cli.rb)
|
15
15
|
|
16
|
-
s.add_dependency("airplay", "
|
16
|
+
s.add_dependency("airplay", ">= 1.0.3")
|
17
17
|
s.add_dependency("clap", "~> 1.0.0")
|
18
18
|
s.add_dependency("ruby-progressbar", "~> 1.2.0")
|
19
19
|
end
|
data/airplay.gemspec
CHANGED
@@ -13,13 +13,13 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = `git ls-files`.split("\n")
|
14
14
|
s.test_files = `git ls-files test`.split("\n")
|
15
15
|
|
16
|
-
s.add_dependency("dnssd", "~>
|
17
|
-
s.add_dependency("CFPropertyList", "~> 2.2
|
16
|
+
s.add_dependency("dnssd", "~> 3.0")
|
17
|
+
s.add_dependency("CFPropertyList", "~> 2.2")
|
18
18
|
s.add_dependency("mime-types", ">= 1.16")
|
19
19
|
s.add_dependency("log4r", "~> 1.1.10")
|
20
20
|
s.add_dependency("cuba", "~> 3.1.0")
|
21
21
|
s.add_dependency("micromachine", "~> 1.0.4")
|
22
|
-
s.add_dependency("celluloid", ">= 0.
|
22
|
+
s.add_dependency("celluloid", ">= 0.17.0")
|
23
23
|
s.add_dependency("reel-rack", "~> 0.1.0")
|
24
24
|
s.add_dependency("net-ptth", "= 0.0.17")
|
25
25
|
s.add_dependency("net-http-digest_auth", "~> 1.2.1")
|
data/lib/airplay/browser.rb
CHANGED
@@ -22,9 +22,16 @@ module Airplay
|
|
22
22
|
#
|
23
23
|
def browse
|
24
24
|
timeout(5) do
|
25
|
+
nodes = []
|
25
26
|
DNSSD.browse!(SEARCH) do |node|
|
26
|
-
|
27
|
-
|
27
|
+
nodes << node
|
28
|
+
next if node.flags.more_coming?
|
29
|
+
|
30
|
+
nodes.each do |node|
|
31
|
+
resolve(node)
|
32
|
+
end
|
33
|
+
|
34
|
+
break
|
28
35
|
end
|
29
36
|
end
|
30
37
|
rescue Timeout::Error => e
|
@@ -121,8 +128,7 @@ module Airplay
|
|
121
128
|
# Returns nothing
|
122
129
|
#
|
123
130
|
def resolve(node)
|
124
|
-
|
125
|
-
resolver.resolve(node) do |resolved|
|
131
|
+
DNSSD.resolve(node) do |resolved|
|
126
132
|
break unless node_resolver(node, resolved)
|
127
133
|
end
|
128
134
|
end
|
data/lib/airplay/cli/doctor.rb
CHANGED
@@ -45,8 +45,7 @@ module Airplay
|
|
45
45
|
|
46
46
|
def try_resolving(node)
|
47
47
|
timeout(5) do
|
48
|
-
|
49
|
-
resolver.resolve(node) do |resolved|
|
48
|
+
DNSSD.resolve(node) do |resolved|
|
50
49
|
devices << DebugDevice.new(node, resolved)
|
51
50
|
|
52
51
|
break unless resolved.flags.more_coming?
|
data/lib/airplay/version.rb
CHANGED
data/lib/airplay/viewer.rb
CHANGED
metadata
CHANGED
@@ -1,125 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airplay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- elcuervo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dnssd
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: CFPropertyList
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.2
|
33
|
+
version: '2.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.2
|
40
|
+
version: '2.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mime-types
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.16'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.16'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: log4r
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.1.10
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.1.10
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: cuba
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 3.1.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 3.1.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: micromachine
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 1.0.4
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 1.0.4
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: celluloid
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.17.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.17.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: reel-rack
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 0.1.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 0.1.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
@@ -140,70 +140,70 @@ dependencies:
|
|
140
140
|
name: net-http-digest_auth
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: 1.2.1
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - ~>
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 1.2.1
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: minitest
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - ~>
|
157
|
+
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: 4.4.0
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- - ~>
|
164
|
+
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 4.4.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: minitest-given
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - ~>
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: 3.0.0
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - ~>
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: 3.0.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: fakeweb
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - ~>
|
185
|
+
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: 1.3.0
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - ~>
|
192
|
+
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 1.3.0
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: vcr
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- - ~>
|
199
|
+
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: 2.4.0
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - ~>
|
206
|
+
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: 2.4.0
|
209
209
|
description: Send image/video to an airplay enabled device
|
@@ -213,8 +213,8 @@ executables: []
|
|
213
213
|
extensions: []
|
214
214
|
extra_rdoc_files: []
|
215
215
|
files:
|
216
|
-
- .gitignore
|
217
|
-
- .travis.yml
|
216
|
+
- ".gitignore"
|
217
|
+
- ".travis.yml"
|
218
218
|
- Gemfile
|
219
219
|
- Gemfile.lock
|
220
220
|
- HUGS
|
@@ -287,17 +287,17 @@ require_paths:
|
|
287
287
|
- lib
|
288
288
|
required_ruby_version: !ruby/object:Gem::Requirement
|
289
289
|
requirements:
|
290
|
-
- -
|
290
|
+
- - ">="
|
291
291
|
- !ruby/object:Gem::Version
|
292
292
|
version: '0'
|
293
293
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
294
294
|
requirements:
|
295
|
-
- -
|
295
|
+
- - ">="
|
296
296
|
- !ruby/object:Gem::Version
|
297
297
|
version: '0'
|
298
298
|
requirements: []
|
299
299
|
rubyforge_project:
|
300
|
-
rubygems_version: 2.
|
300
|
+
rubygems_version: 2.4.5
|
301
301
|
signing_key:
|
302
302
|
specification_version: 4
|
303
303
|
summary: Airplay client
|