ffprober 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b8771b329294ddc52d0c606d5d1e29ecb3d7738
4
- data.tar.gz: e73d9062d7c4a377ba3a04859a6a69618cb83fce
3
+ metadata.gz: fc2cd87528f8ea626cb7ea514989b35ce5fadda3
4
+ data.tar.gz: abd349cfc589fc42b479209c51ed85207e835a41
5
5
  SHA512:
6
- metadata.gz: ce16be25a1f48cc1cae23e05f9e9a782a8fa1516590ffe3c7bffd7d1a845ab658b7d1d294fc142a4d7442c5d8a55d7151a777ada1063a191bd1a186135692989
7
- data.tar.gz: 042dbfdcb5f8c909ec8cb5c1f64e75b37940b0dd208c18c0a65e64ae339cd4e6050629eaa738f3d4f2a73b033f4bb829c64b6c6b59c688ffac3b833a3e5cb95e
6
+ metadata.gz: f441a90b9f91963f154b742ca60bc6ca029b643ae0c49d7eb4da44b922a9080f1051ae47c75303a803fa16841cb8eedc199b2a6b60ef34ff31af6420d876389d
7
+ data.tar.gz: 8e247410935051054a31c1d8413512cf93e2c2750999a138143a71acc73527f8b5e0d5c3b92fe68a0d7d8366dde539d718b803d2ca1b2d5086d79bdbbfa0210b
data/.travis.yml CHANGED
@@ -8,3 +8,7 @@ rvm:
8
8
  - jruby-19mode # JRuby in 1.9 mode
9
9
  - rbx-19mode
10
10
  - ruby-head
11
+
12
+ matrix:
13
+ allow_failures:
14
+ - rvm: ruby-head
data/Changes.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.3.4
2
+ -----------
3
+ fix exception when no ffprobe is installed
4
+ support for ffmpeg 2.0.1
5
+
1
6
  0.3.3
2
7
  -----------
3
8
  support for ffmpeg 2.0
@@ -4,7 +4,7 @@ module Ffprober
4
4
  @@nightly_regex = /^(ffprobe|avprobe|ffmpeg) version (N|git)-/
5
5
 
6
6
  MIN_VERSION = Gem::Version.new("0.9.0")
7
- MAX_VERSION = Gem::Version.new("2.0")
7
+ MAX_VERSION = Gem::Version.new("2.0.1")
8
8
 
9
9
  def self.valid?
10
10
  self.new.valid?
@@ -34,6 +34,7 @@ module Ffprober
34
34
  end
35
35
 
36
36
  def version_output
37
+ return "" if Ffprober.path.nil?
37
38
  @version_output ||= `#{Ffprober.path} -version`
38
39
  end
39
40
  end
@@ -1,3 +1,3 @@
1
1
  module Ffprober
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -0,0 +1,12 @@
1
+ ffprobe version 2.0.1
2
+ built on Aug 15 2013 15:56:26 with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3)
3
+ configuration: --prefix=/usr/local/Cellar/ffmpeg/2.0.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc
4
+ libavutil 52. 38.100 / 52. 38.100
5
+ libavcodec 55. 18.102 / 55. 18.102
6
+ libavformat 55. 12.100 / 55. 12.100
7
+ libavdevice 55. 3.100 / 55. 3.100
8
+ libavfilter 3. 79.101 / 3. 79.101
9
+ libavresample 1. 1. 0 / 1. 1. 0
10
+ libswscale 2. 3.100 / 2. 3.100
11
+ libswresample 0. 17.102 / 0. 17.102
12
+ libpostproc 52. 3.100 / 52. 3.100
@@ -38,5 +38,12 @@ describe Ffprober::FfprobeVersion do
38
38
  end
39
39
  end
40
40
  end
41
+
42
+ it "should not be valid if no ffprobe could be found in PATH" do
43
+ Ffprober.stub(:path).and_return(nil)
44
+ Ffprober::FfprobeVersion.new.version.to_s.should eq("0.0.0")
45
+ Ffprober::FfprobeVersion.valid?.should eq(false)
46
+ end
47
+
41
48
  end
42
49
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffprober
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - beanieboi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-15 00:00:00.000000000 Z
11
+ date: 2013-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -70,6 +70,7 @@ files:
70
70
  - spec/assets/version_outputs/osx-1_0
71
71
  - spec/assets/version_outputs/osx-1_2_0
72
72
  - spec/assets/version_outputs/osx-2_0
73
+ - spec/assets/version_outputs/osx-2_0_1
73
74
  - spec/assets/version_outputs/raspian-0_8_6
74
75
  - spec/assets/version_outputs/ubuntu-0_10_6
75
76
  - spec/assets/version_outputs/windows-nightly
@@ -109,6 +110,7 @@ test_files:
109
110
  - spec/assets/version_outputs/osx-1_0
110
111
  - spec/assets/version_outputs/osx-1_2_0
111
112
  - spec/assets/version_outputs/osx-2_0
113
+ - spec/assets/version_outputs/osx-2_0_1
112
114
  - spec/assets/version_outputs/raspian-0_8_6
113
115
  - spec/assets/version_outputs/ubuntu-0_10_6
114
116
  - spec/assets/version_outputs/windows-nightly