airplayer 0.0.9 → 0.1.0

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
  SHA1:
3
- metadata.gz: 8498cbf608d7722d098753117793a825b4f65e04
4
- data.tar.gz: 67b89490ab729572c54f0d3d259b86d0a62183b5
3
+ metadata.gz: 3bda80dde2fcd4d17e038ba2a1fcd0822b14112d
4
+ data.tar.gz: 787b2ac256b81d9a543f4576447475afd650db28
5
5
  SHA512:
6
- metadata.gz: 95a6c703fd68fe8975ae9bf567956a13f333dec5cef75cb79e59b5e066a15b812fb5396a934cdb339af5e423e355a62c94db091f736b101cb8f82653b6cd6365
7
- data.tar.gz: dfe225b835b481d59d6df7dd5416e1b710f58221d42f9ac29b34213d59a7014b88619f0be2c5fd9809c42101637ed82decbab4ccfa757f033912031fa465c377
6
+ metadata.gz: 6cf0dc1945cf024bc7da607be66496f2a3a8de958f7235593dca7d8e296424c32ec6cca70c28fdbfc45ba4eac0dad683b83933b546d7858e910f4e91c0666aac
7
+ data.tar.gz: 88294ccf0627094f4c977b31b0df18657b7f87b1b571c67d499c4d52fe0134978220dbe979ed957474c971d8e46d9c0278b83844fa4d3b0a3d523e21f134d992
@@ -2,6 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
+ - 2.1.0
5
6
  before_install:
6
7
  - 'sudo apt-get -qq update'
7
8
  - 'sudo apt-get -qq install youtube-dl rdnssd libavahi-compat-libdnssd-dev'
@@ -1,19 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- airplayer (0.0.9)
5
- airplay (= 1.0.2)
6
- mime-types
7
- nokogiri
4
+ airplayer (0.1.0)
5
+ airplay (~> 1.0.2)
6
+ http (~> 0.5.0)
7
+ mime-types (= 2.0)
8
8
  rack
9
+ reel (~> 0.4.0)
10
+ reel-rack (~> 0.1.0)
9
11
  ruby-progressbar
10
12
  thor
11
13
 
12
14
  GEM
13
15
  remote: https://rubygems.org/
14
16
  specs:
15
- CFPropertyList (2.2.6)
16
- airplay (1.0.2)
17
+ CFPropertyList (2.2.7)
18
+ airplay (1.0.3)
17
19
  CFPropertyList (~> 2.2.0)
18
20
  celluloid (>= 0.15.0)
19
21
  cuba (~> 3.1.0)
@@ -36,53 +38,51 @@ GEM
36
38
  simplecov (>= 0.7)
37
39
  term-ansicolor
38
40
  thor
39
- cuba (3.1.0)
41
+ cuba (3.1.1)
40
42
  rack
41
43
  diff-lcs (1.2.5)
42
44
  dnssd (2.0)
43
- docile (1.1.2)
44
- fakefs (0.5.0)
45
+ docile (1.1.3)
46
+ fakefs (0.5.2)
45
47
  ffi (1.9.3)
46
48
  formatador (0.2.4)
47
- guard (2.3.0)
49
+ guard (2.6.1)
48
50
  formatador (>= 0.2.4)
49
- listen (~> 2.1)
51
+ listen (~> 2.7)
50
52
  lumberjack (~> 1.0)
51
53
  pry (>= 0.9.12)
52
54
  thor (>= 0.18.1)
53
- guard-rspec (4.2.4)
55
+ guard-rspec (4.2.8)
54
56
  guard (~> 2.1)
55
57
  rspec (>= 2.14, < 4.0)
56
58
  http (0.5.0)
57
59
  http_parser.rb
58
60
  http_parser.rb (0.6.0)
59
- listen (2.4.0)
61
+ listen (2.7.4)
60
62
  celluloid (>= 0.15.2)
63
+ celluloid-io (>= 0.15.0)
61
64
  rb-fsevent (>= 0.9.3)
62
65
  rb-inotify (>= 0.9)
63
66
  log4r (1.1.10)
64
- lumberjack (1.0.4)
67
+ lumberjack (1.0.5)
65
68
  method_source (0.8.2)
66
69
  micromachine (1.0.4)
67
70
  mime-types (2.0)
68
- mini_portile (0.5.2)
69
- multi_json (1.8.4)
71
+ multi_json (1.10.0)
70
72
  net-http-digest_auth (1.2.1)
71
73
  net-ptth (0.0.17)
72
74
  celluloid-io (>= 0.15.0)
73
75
  http_parser.rb (>= 0.6.0.beta.2)
74
76
  rack (>= 1.4.5)
75
77
  nio4r (1.0.0)
76
- nokogiri (1.6.1)
77
- mini_portile (~> 0.5.0)
78
- pry (0.9.12.4)
78
+ pry (0.9.12.6)
79
79
  coderay (~> 1.0)
80
80
  method_source (~> 0.8)
81
81
  slop (~> 3.4)
82
82
  rack (1.5.2)
83
- rake (10.1.1)
83
+ rake (10.3.1)
84
84
  rb-fsevent (0.9.4)
85
- rb-inotify (0.9.3)
85
+ rb-inotify (0.9.4)
86
86
  ffi (>= 0.5.0)
87
87
  reel (0.4.0)
88
88
  celluloid (>= 0.15.1)
@@ -99,24 +99,23 @@ GEM
99
99
  rspec-core (~> 2.14.0)
100
100
  rspec-expectations (~> 2.14.0)
101
101
  rspec-mocks (~> 2.14.0)
102
- rspec-core (2.14.7)
103
- rspec-expectations (2.14.4)
102
+ rspec-core (2.14.8)
103
+ rspec-expectations (2.14.5)
104
104
  diff-lcs (>= 1.1.3, < 2.0)
105
- rspec-mocks (2.14.4)
106
- ruby-progressbar (1.4.0)
105
+ rspec-mocks (2.14.6)
106
+ ruby-progressbar (1.4.2)
107
107
  simplecov (0.8.2)
108
108
  docile (~> 1.1.0)
109
109
  multi_json
110
110
  simplecov-html (~> 0.8.0)
111
111
  simplecov-html (0.8.0)
112
- slop (3.4.7)
113
- term-ansicolor (1.2.2)
114
- tins (~> 0.8)
115
- thor (0.18.1)
112
+ slop (3.5.0)
113
+ term-ansicolor (1.3.0)
114
+ tins (~> 1.0)
115
+ thor (0.19.1)
116
116
  timers (1.1.0)
117
- tins (0.13.1)
118
- websocket_parser (0.1.5)
119
- http
117
+ tins (1.1.0)
118
+ websocket_parser (0.1.6)
120
119
 
121
120
  PLATFORMS
122
121
  ruby
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 - 2013 Tomohiro TAIRA
1
+ Copyright (c) 2012 - 2014 Tomohiro TAIRA
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
- AirPlayer [![Stillmaintained](http://stillmaintained.com/Tomohiro/airplayer.png)](http://stillmaintained.com/Tomohiro/airplayer)
1
+ AirPlayer
2
2
  ================================================================================
3
3
 
4
4
  Command-line AirPlay video client for Apple TV
5
5
 
6
+ [![Stillmaintained](http://stillmaintained.com/Tomohiro/airplayer.png)](http://stillmaintained.com/Tomohiro/airplayer)
6
7
  [![Gem Version](https://badge.fury.io/rb/airplayer.png)](http://badge.fury.io/rb/airplayer)
7
8
  [![Dependency Status](https://gemnasium.com/Tomohiro/airplayer.png)](https://gemnasium.com/Tomohiro/airplayer)
8
9
  [![Build Status](https://travis-ci.org/Tomohiro/airplayer.png?branch=master)](https://travis-ci.org/Tomohiro/airplayer)
@@ -16,8 +17,8 @@ Command-line AirPlay video client for Apple TV
16
17
  Requirements
17
18
  -------------------------------------------------------------------------------
18
19
 
19
- - OSX or Ubuntu
20
- - Ruby 1.9.3, 2.0.0
20
+ - OS X or Ubuntu
21
+ - Ruby 1.9.3, 2.0.0 or later
21
22
  - AppleTV 2G or later
22
23
  - [youtube-dl](http://rg3.github.com/youtube-dl/) (If you want to watch YouTube)
23
24
 
@@ -171,6 +172,6 @@ File extension | MIME type | Ruby `mime-types`
171
172
  LICENSE
172
173
  --------------------------------------------------------------------------------
173
174
 
174
- &copy; 2012 - 2013 Tomohiro TAIRA.
175
+ &copy; 2012 - 2014 Tomohiro TAIRA.
175
176
  This project is licensed under the MIT license.
176
177
  See LICENSE for details.
@@ -19,10 +19,12 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_runtime_dependency 'thor'
21
21
  spec.add_runtime_dependency 'ruby-progressbar'
22
- spec.add_runtime_dependency 'airplay', '= 1.0.2'
23
22
  spec.add_runtime_dependency 'rack'
24
- spec.add_runtime_dependency 'mime-types'
25
- spec.add_runtime_dependency 'nokogiri'
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 'airplay', '~> 1.0.2'
27
+ spec.add_runtime_dependency 'mime-types', '= 2.0'
26
28
 
27
29
  spec.add_development_dependency 'bundler'
28
30
  spec.add_development_dependency 'rake'
@@ -1,7 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'rss'
4
- require 'nokogiri'
5
4
 
6
5
  module AirPlayer
7
6
  class Playlist < Array
@@ -36,7 +35,7 @@ module AirPlayer
36
35
  :local_dir
37
36
  elsif Media.playable? item
38
37
  :url
39
- elsif RSS::Parser.parse(open(item))
38
+ elsif item.match(/.+(xml|rss)$/)
40
39
  :podcast
41
40
  end
42
41
  end
@@ -48,8 +47,8 @@ module AirPlayer
48
47
  end
49
48
 
50
49
  def media_in_podcast(path)
51
- Nokogiri::XML(open(path)).search('enclosure').map do |node|
52
- Media.new(node.attributes['url'].text)
50
+ RSS::Parser.parse(path).items.map do |node|
51
+ Media.new(node.link)
53
52
  end
54
53
  end
55
54
  end
@@ -1,3 +1,3 @@
1
1
  module AirPlayer
2
- VERSION = '0.0.9'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,181 +1,209 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airplayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
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-01-19 00:00:00.000000000 Z
11
+ date: 2014-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '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
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby-progressbar
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
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
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: airplay
42
+ name: rack
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.2
47
+ version: '0'
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
- version: 1.0.2
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rack
56
+ name: http
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
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
- version: '0'
68
+ version: 0.5.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: mime-types
70
+ name: reel
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
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
- version: '0'
82
+ version: 0.4.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: nokogiri
84
+ name: reel-rack
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
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
- version: '0'
96
+ version: 0.1.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: airplay
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.0.2
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.0.2
111
+ - !ruby/object:Gem::Dependency
112
+ name: mime-types
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '='
116
+ - !ruby/object:Gem::Version
117
+ version: '2.0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '='
123
+ - !ruby/object:Gem::Version
124
+ version: '2.0'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: bundler
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
- - - '>='
129
+ - - ">="
102
130
  - !ruby/object:Gem::Version
103
131
  version: '0'
104
132
  type: :development
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
- - - '>='
136
+ - - ">="
109
137
  - !ruby/object:Gem::Version
110
138
  version: '0'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: rake
113
141
  requirement: !ruby/object:Gem::Requirement
114
142
  requirements:
115
- - - '>='
143
+ - - ">="
116
144
  - !ruby/object:Gem::Version
117
145
  version: '0'
118
146
  type: :development
119
147
  prerelease: false
120
148
  version_requirements: !ruby/object:Gem::Requirement
121
149
  requirements:
122
- - - '>='
150
+ - - ">="
123
151
  - !ruby/object:Gem::Version
124
152
  version: '0'
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: rspec
127
155
  requirement: !ruby/object:Gem::Requirement
128
156
  requirements:
129
- - - '>='
157
+ - - ">="
130
158
  - !ruby/object:Gem::Version
131
159
  version: '0'
132
160
  type: :development
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
- - - '>='
164
+ - - ">="
137
165
  - !ruby/object:Gem::Version
138
166
  version: '0'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: guard-rspec
141
169
  requirement: !ruby/object:Gem::Requirement
142
170
  requirements:
143
- - - '>='
171
+ - - ">="
144
172
  - !ruby/object:Gem::Version
145
173
  version: '0'
146
174
  type: :development
147
175
  prerelease: false
148
176
  version_requirements: !ruby/object:Gem::Requirement
149
177
  requirements:
150
- - - '>='
178
+ - - ">="
151
179
  - !ruby/object:Gem::Version
152
180
  version: '0'
153
181
  - !ruby/object:Gem::Dependency
154
182
  name: fakefs
155
183
  requirement: !ruby/object:Gem::Requirement
156
184
  requirements:
157
- - - '>='
185
+ - - ">="
158
186
  - !ruby/object:Gem::Version
159
187
  version: '0'
160
188
  type: :development
161
189
  prerelease: false
162
190
  version_requirements: !ruby/object:Gem::Requirement
163
191
  requirements:
164
- - - '>='
192
+ - - ">="
165
193
  - !ruby/object:Gem::Version
166
194
  version: '0'
167
195
  - !ruby/object:Gem::Dependency
168
196
  name: coveralls
169
197
  requirement: !ruby/object:Gem::Requirement
170
198
  requirements:
171
- - - '>='
199
+ - - ">="
172
200
  - !ruby/object:Gem::Version
173
201
  version: '0'
174
202
  type: :development
175
203
  prerelease: false
176
204
  version_requirements: !ruby/object:Gem::Requirement
177
205
  requirements:
178
- - - '>='
206
+ - - ">="
179
207
  - !ruby/object:Gem::Version
180
208
  version: '0'
181
209
  description: Command-line AirPlay video client for Apple TV
@@ -186,9 +214,9 @@ executables:
186
214
  extensions: []
187
215
  extra_rdoc_files: []
188
216
  files:
189
- - .gitignore
190
- - .rspec
191
- - .travis.yml
217
+ - ".gitignore"
218
+ - ".rspec"
219
+ - ".travis.yml"
192
220
  - Gemfile
193
221
  - Gemfile.lock
194
222
  - Guardfile
@@ -219,17 +247,17 @@ require_paths:
219
247
  - lib
220
248
  required_ruby_version: !ruby/object:Gem::Requirement
221
249
  requirements:
222
- - - '>='
250
+ - - ">="
223
251
  - !ruby/object:Gem::Version
224
252
  version: '0'
225
253
  required_rubygems_version: !ruby/object:Gem::Requirement
226
254
  requirements:
227
- - - '>='
255
+ - - ">="
228
256
  - !ruby/object:Gem::Version
229
257
  version: '0'
230
258
  requirements: []
231
259
  rubyforge_project:
232
- rubygems_version: 2.0.3
260
+ rubygems_version: 2.2.2
233
261
  signing_key:
234
262
  specification_version: 4
235
263
  summary: Command-line AirPlay video client for Apple TV