ffprober 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ffprober/parser.rb +2 -1
- data/lib/ffprober/version.rb +1 -1
- data/spec/ffprober/parser_spec.rb +7 -0
- metadata +2 -3
data/lib/ffprober/parser.rb
CHANGED
data/lib/ffprober/version.rb
CHANGED
@@ -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.
|
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:
|
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:
|