airplayer 0.1.0 → 1.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tachikoma.yml +1 -0
- data/.travis.yml +1 -2
- data/Gemfile.lock +46 -38
- data/README.md +3 -3
- data/airplayer.gemspec +7 -4
- data/lib/airplayer/media.rb +5 -5
- data/lib/airplayer/version.rb +1 -1
- metadata +57 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e00f0f71103b71a986d06040bcce7ba42bd3d1e
|
4
|
+
data.tar.gz: 43b6540a420bedbdbc5a901cf355c6f82e4cfc26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aefca703f1a6b3238c0d2f29123514b04c6a2e67026cd252bd158bb20b31eb265cf7a66456fa2cba7b1201390885f1b8d46fa3ef87f6ead171be96e309c4699
|
7
|
+
data.tar.gz: 407096022eed589db9be0ebae36e5f86f8db2e7c91d2badcdd03d6b4ca0f12b60226e6d35c61a02013fac388ffa8c609bf4c5de8cd26f3d79bff80ee1d210d89
|
data/.tachikoma.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
strategy: 'bundler'
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
airplayer (0.
|
4
|
+
airplayer (1.0.0.pre)
|
5
5
|
airplay (~> 1.0.2)
|
6
|
-
|
7
|
-
|
6
|
+
celluloid (= 0.15.2)
|
7
|
+
celluloid-io (= 0.15.0)
|
8
|
+
cuba (= 3.1.1)
|
9
|
+
http (= 0.5.0)
|
10
|
+
mime-types (~> 2.4.0)
|
8
11
|
rack
|
9
|
-
reel (
|
10
|
-
reel-rack (
|
12
|
+
reel (= 0.4.0)
|
13
|
+
reel-rack (= 0.1.0)
|
11
14
|
ruby-progressbar
|
12
15
|
thor
|
13
16
|
|
14
17
|
GEM
|
15
18
|
remote: https://rubygems.org/
|
16
19
|
specs:
|
17
|
-
CFPropertyList (2.2.
|
20
|
+
CFPropertyList (2.2.8)
|
18
21
|
airplay (1.0.3)
|
19
22
|
CFPropertyList (~> 2.2.0)
|
20
23
|
celluloid (>= 0.15.0)
|
@@ -32,7 +35,7 @@ GEM
|
|
32
35
|
celluloid (>= 0.15.0)
|
33
36
|
nio4r (>= 0.5.0)
|
34
37
|
coderay (1.1.0)
|
35
|
-
coveralls (0.7.
|
38
|
+
coveralls (0.7.1)
|
36
39
|
multi_json (~> 1.3)
|
37
40
|
rest-client
|
38
41
|
simplecov (>= 0.7)
|
@@ -42,47 +45,47 @@ GEM
|
|
42
45
|
rack
|
43
46
|
diff-lcs (1.2.5)
|
44
47
|
dnssd (2.0)
|
45
|
-
docile (1.1.
|
46
|
-
fakefs (0.
|
47
|
-
ffi (1.9.
|
48
|
-
formatador (0.2.
|
48
|
+
docile (1.1.5)
|
49
|
+
fakefs (0.6.0)
|
50
|
+
ffi (1.9.6)
|
51
|
+
formatador (0.2.5)
|
49
52
|
guard (2.6.1)
|
50
53
|
formatador (>= 0.2.4)
|
51
54
|
listen (~> 2.7)
|
52
55
|
lumberjack (~> 1.0)
|
53
56
|
pry (>= 0.9.12)
|
54
57
|
thor (>= 0.18.1)
|
55
|
-
guard-rspec (4.
|
58
|
+
guard-rspec (4.3.1)
|
56
59
|
guard (~> 2.1)
|
57
60
|
rspec (>= 2.14, < 4.0)
|
58
61
|
http (0.5.0)
|
59
62
|
http_parser.rb
|
60
63
|
http_parser.rb (0.6.0)
|
61
|
-
listen (2.7.
|
64
|
+
listen (2.7.11)
|
62
65
|
celluloid (>= 0.15.2)
|
63
|
-
celluloid-io (>= 0.15.0)
|
64
66
|
rb-fsevent (>= 0.9.3)
|
65
67
|
rb-inotify (>= 0.9)
|
66
68
|
log4r (1.1.10)
|
67
|
-
lumberjack (1.0.
|
69
|
+
lumberjack (1.0.9)
|
68
70
|
method_source (0.8.2)
|
69
71
|
micromachine (1.0.4)
|
70
|
-
mime-types (2.
|
71
|
-
multi_json (1.10.
|
72
|
+
mime-types (2.4.3)
|
73
|
+
multi_json (1.10.1)
|
72
74
|
net-http-digest_auth (1.2.1)
|
73
75
|
net-ptth (0.0.17)
|
74
76
|
celluloid-io (>= 0.15.0)
|
75
77
|
http_parser.rb (>= 0.6.0.beta.2)
|
76
78
|
rack (>= 1.4.5)
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
79
|
+
netrc (0.8.0)
|
80
|
+
nio4r (1.0.1)
|
81
|
+
pry (0.10.1)
|
82
|
+
coderay (~> 1.1.0)
|
83
|
+
method_source (~> 0.8.1)
|
81
84
|
slop (~> 3.4)
|
82
85
|
rack (1.5.2)
|
83
|
-
rake (10.3.
|
86
|
+
rake (10.3.2)
|
84
87
|
rb-fsevent (0.9.4)
|
85
|
-
rb-inotify (0.9.
|
88
|
+
rb-inotify (0.9.5)
|
86
89
|
ffi (>= 0.5.0)
|
87
90
|
reel (0.4.0)
|
88
91
|
celluloid (>= 0.15.1)
|
@@ -93,28 +96,33 @@ GEM
|
|
93
96
|
reel-rack (0.1.0)
|
94
97
|
rack (>= 1.4.0)
|
95
98
|
reel (>= 0.4.0)
|
96
|
-
rest-client (1.
|
97
|
-
mime-types (>= 1.16)
|
98
|
-
|
99
|
-
|
100
|
-
rspec-
|
101
|
-
rspec-
|
102
|
-
|
103
|
-
rspec-
|
104
|
-
|
105
|
-
rspec-
|
106
|
-
|
107
|
-
|
99
|
+
rest-client (1.7.2)
|
100
|
+
mime-types (>= 1.16, < 3.0)
|
101
|
+
netrc (~> 0.7)
|
102
|
+
rspec (3.1.0)
|
103
|
+
rspec-core (~> 3.1.0)
|
104
|
+
rspec-expectations (~> 3.1.0)
|
105
|
+
rspec-mocks (~> 3.1.0)
|
106
|
+
rspec-core (3.1.7)
|
107
|
+
rspec-support (~> 3.1.0)
|
108
|
+
rspec-expectations (3.1.2)
|
109
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
110
|
+
rspec-support (~> 3.1.0)
|
111
|
+
rspec-mocks (3.1.3)
|
112
|
+
rspec-support (~> 3.1.0)
|
113
|
+
rspec-support (3.1.2)
|
114
|
+
ruby-progressbar (1.6.0)
|
115
|
+
simplecov (0.9.1)
|
108
116
|
docile (~> 1.1.0)
|
109
|
-
multi_json
|
117
|
+
multi_json (~> 1.0)
|
110
118
|
simplecov-html (~> 0.8.0)
|
111
119
|
simplecov-html (0.8.0)
|
112
|
-
slop (3.
|
120
|
+
slop (3.6.0)
|
113
121
|
term-ansicolor (1.3.0)
|
114
122
|
tins (~> 1.0)
|
115
123
|
thor (0.19.1)
|
116
124
|
timers (1.1.0)
|
117
|
-
tins (1.
|
125
|
+
tins (1.3.3)
|
118
126
|
websocket_parser (0.1.6)
|
119
127
|
|
120
128
|
PLATFORMS
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ Requirements
|
|
18
18
|
-------------------------------------------------------------------------------
|
19
19
|
|
20
20
|
- OS X or Ubuntu
|
21
|
-
- Ruby 1.9.3, 2.
|
21
|
+
- Ruby 1.9.3, 2.1.3 or later
|
22
22
|
- AppleTV 2G or later
|
23
23
|
- [youtube-dl](http://rg3.github.com/youtube-dl/) (If you want to watch YouTube)
|
24
24
|
|
@@ -163,9 +163,9 @@ Supported MIME types
|
|
163
163
|
|
164
164
|
File extension | MIME type | Ruby `mime-types`
|
165
165
|
-------------- | --------------- | -----------------------------
|
166
|
-
.ts | video/MP2T | video/
|
166
|
+
.ts | video/MP2T | video/mp2t
|
167
167
|
.mov | video/quicktime | video/quicktime
|
168
|
-
.m4v | video/mpeg4 | video/
|
168
|
+
.m4v | video/mpeg4 | video/m4v
|
169
169
|
.mp4 | video/mpeg4 | application/mp4, video/mp4
|
170
170
|
|
171
171
|
|
data/airplayer.gemspec
CHANGED
@@ -20,11 +20,14 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.add_runtime_dependency 'thor'
|
21
21
|
spec.add_runtime_dependency 'ruby-progressbar'
|
22
22
|
spec.add_runtime_dependency 'rack'
|
23
|
-
spec.add_runtime_dependency 'http', '
|
24
|
-
spec.add_runtime_dependency 'reel', '
|
25
|
-
spec.add_runtime_dependency 'reel-rack', '
|
23
|
+
spec.add_runtime_dependency 'http', '= 0.5.0'
|
24
|
+
spec.add_runtime_dependency 'reel', '= 0.4.0'
|
25
|
+
spec.add_runtime_dependency 'reel-rack', '= 0.1.0'
|
26
|
+
spec.add_runtime_dependency 'celluloid', '= 0.15.2'
|
27
|
+
spec.add_runtime_dependency 'celluloid-io', '= 0.15.0'
|
28
|
+
spec.add_runtime_dependency 'cuba', '= 3.1.1'
|
26
29
|
spec.add_runtime_dependency 'airplay', '~> 1.0.2'
|
27
|
-
spec.add_runtime_dependency 'mime-types', '
|
30
|
+
spec.add_runtime_dependency 'mime-types', '~> 2.4.0'
|
28
31
|
|
29
32
|
spec.add_development_dependency 'bundler'
|
30
33
|
spec.add_development_dependency 'rake'
|
data/lib/airplayer/media.rb
CHANGED
@@ -6,15 +6,15 @@ module AirPlayer
|
|
6
6
|
#
|
7
7
|
# File Extension | MIME type | Ruby `mime-types`
|
8
8
|
# -------------- | --------------- | -----------------------------
|
9
|
-
# .ts | video/MP2T | video/
|
9
|
+
# .ts | video/MP2T | video/mp2t
|
10
10
|
# .mov | video/quicktime | video/quicktime
|
11
|
-
# .m4v | video/mpeg4 | video/
|
11
|
+
# .m4v | video/mpeg4 | video/m4v
|
12
12
|
# .mp4 | video/mpeg4 | application/mp4, video/mp4
|
13
13
|
SUPPORTED_MIME_TYPES = %w(
|
14
14
|
application/mp4
|
15
15
|
video/mp4
|
16
|
-
video/
|
17
|
-
video/
|
16
|
+
video/m4v
|
17
|
+
video/mp2t
|
18
18
|
video/quicktime
|
19
19
|
video/mpeg4
|
20
20
|
)
|
@@ -43,7 +43,7 @@ module AirPlayer
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def self.playable?(path)
|
46
|
-
MIME::Types.
|
46
|
+
MIME::Types.of(path).map(&:simplified).each do |mimetype|
|
47
47
|
return SUPPORTED_MIME_TYPES.include?(mimetype)
|
48
48
|
end
|
49
49
|
|
data/lib/airplayer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airplayer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomohiro TAIRA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -56,44 +56,86 @@ dependencies:
|
|
56
56
|
name: http
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.5.0
|
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: 0.5.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: reel
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.4.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: 0.4.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: reel-rack
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 0.1.0
|
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: 0.1.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: celluloid
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.15.2
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.15.2
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: celluloid-io
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.15.0
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.15.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: cuba
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.1.1
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.1.1
|
97
139
|
- !ruby/object:Gem::Dependency
|
98
140
|
name: airplay
|
99
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,16 +154,16 @@ dependencies:
|
|
112
154
|
name: mime-types
|
113
155
|
requirement: !ruby/object:Gem::Requirement
|
114
156
|
requirements:
|
115
|
-
- -
|
157
|
+
- - "~>"
|
116
158
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
159
|
+
version: 2.4.0
|
118
160
|
type: :runtime
|
119
161
|
prerelease: false
|
120
162
|
version_requirements: !ruby/object:Gem::Requirement
|
121
163
|
requirements:
|
122
|
-
- -
|
164
|
+
- - "~>"
|
123
165
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
166
|
+
version: 2.4.0
|
125
167
|
- !ruby/object:Gem::Dependency
|
126
168
|
name: bundler
|
127
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,6 +258,7 @@ extra_rdoc_files: []
|
|
216
258
|
files:
|
217
259
|
- ".gitignore"
|
218
260
|
- ".rspec"
|
261
|
+
- ".tachikoma.yml"
|
219
262
|
- ".travis.yml"
|
220
263
|
- Gemfile
|
221
264
|
- Gemfile.lock
|
@@ -252,9 +295,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
252
295
|
version: '0'
|
253
296
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
254
297
|
requirements:
|
255
|
-
- - "
|
298
|
+
- - ">"
|
256
299
|
- !ruby/object:Gem::Version
|
257
|
-
version:
|
300
|
+
version: 1.3.1
|
258
301
|
requirements: []
|
259
302
|
rubyforge_project:
|
260
303
|
rubygems_version: 2.2.2
|