suby 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/suby.rb +1 -2
- data/suby.gemspec +1 -1
- metadata +2 -2
data/lib/suby.rb
CHANGED
@@ -30,8 +30,7 @@ module Suby
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def video?(file)
|
33
|
-
|
34
|
-
type and type.media_type == "video"
|
33
|
+
MIME::Types.type_for(file.path).any? { |type| type.media_type == "video" }
|
35
34
|
end
|
36
35
|
|
37
36
|
def download_subtitles_for_file(file, options)
|
data/suby.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: suby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: path
|