ffprober 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,8 @@ module Ffprober
38
38
  {major: 0, minor: 10, patch: 0},
39
39
  {major: 0, minor: 11, patch: 0},
40
40
  {major: 1, minor: 0, patch: 0},
41
- {major: 1, minor: 0, patch: 1}]
41
+ {major: 1, minor: 0, patch: 1},
42
+ {major: 1, minor: 1, patch: 0}]
42
43
  end
43
44
 
44
45
  def ffprobe_path
@@ -1,3 +1,3 @@
1
1
  module Ffprober
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -4,6 +4,7 @@ require 'spec_helper'
4
4
  describe Ffprober::Parser do
5
5
  let(:before_one_zero) { {major: 0, minor: 9, patch: 0} }
6
6
  let(:one_zero) { {major: 1, minor: 0, patch: 0} }
7
+ let(:one_one) { {major: 1, minor: 1, patch: 0} }
7
8
  let(:after_one_zero) { {major: 1, minor: 9, patch: 0} }
8
9
 
9
10
  context 'validates the ffprobe version' do
@@ -17,6 +18,12 @@ describe Ffprober::Parser do
17
18
  Ffprober::Parser.ffprobe_version_valid?.should be_true
18
19
  end
19
20
 
21
+ it 'detects versions 1.1' do
22
+ Ffprober::Parser.stub(:ffprobe_version) { one_one }
23
+ Ffprober::Parser.ffprobe_version_valid?.should be_true
24
+ end
25
+
26
+
20
27
  it 'detects versions 1.9' do
21
28
  Ffprober::Parser.stub(:ffprobe_version) { after_one_zero }
22
29
  Ffprober::Parser.ffprobe_version_valid?.should be_false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffprober
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
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-12-18 00:00:00.000000000 Z
12
+ date: 2013-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -116,4 +116,3 @@ test_files:
116
116
  - spec/ffprober/parser_spec.rb
117
117
  - spec/ffprober_spec.rb
118
118
  - spec/spec_helper.rb
119
- has_rdoc: