suby 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/suby.rb +1 -2
  2. data/suby.gemspec +1 -1
  3. 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
- type = MIME::Types.type_for(file.path).first
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
@@ -16,5 +16,5 @@ Gem::Specification.new do |s|
16
16
  s.add_dependency 'term-ansicolor'
17
17
  s.add_dependency 'mime-types', '>= 1.19'
18
18
 
19
- s.version = '0.3.0'
19
+ s.version = '0.3.1'
20
20
  end
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.0
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-02 00:00:00.000000000 Z
12
+ date: 2012-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: path