ffprober 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91fa1fbb982173418efbb677a9baf78aed7e2bd4
4
- data.tar.gz: f4ae6562f0fe55eae04bded262a5b04574389b9f
3
+ metadata.gz: e92baf6e0fb2e8d71014e68f76eac308b66bf10d
4
+ data.tar.gz: 3ac7b04d07344108f8d6619e993aa926f4fc01c8
5
5
  SHA512:
6
- metadata.gz: c54e868b2b67169ff5a3810358fcd3337601b893aa300520c22b7673756c83ad04fd46c30a7abbf756f4a35da38ad103d4f0c0bbc5a2dd9e67aea15ccaccc724
7
- data.tar.gz: 10e05e01530d1c6fae7ba524d33e640c2a3b571c157a06f46749fbe2b5b7820a0162dbc87bb845107490623e56802c1784c575d524fe0acaf4b88102da283829
6
+ metadata.gz: 7b23f169a5065a20efc7e73c248b87474f29e0c74a0fee9ab216d4266f857cea2f50410adda49881657c38dcb73336bc440ad7d9ad0ee078fe0673b05d7460b0
7
+ data.tar.gz: 28bd43b6fc75c819fe8fa90fd40c788df8e97cf4db873e3a1bd99de726d145ad358d04df5eaf89333f22dcd84a8d2b9f02e93772887022391ab4c69db364314f
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.0.0-p353
1
+ 2.1.0
data/.travis.yml CHANGED
@@ -1,14 +1,15 @@
1
+ language: ruby
2
+
3
+ script: rspec spec
4
+
1
5
  before_script:
2
6
  - sudo apt-get update -qq
3
7
  - sudo apt-get install -qq ffmpeg
4
- language: ruby
8
+
5
9
  rvm:
6
10
  - 1.9.3
7
11
  - 2.0.0
8
- - jruby-19mode # JRuby in 1.9 mode
9
- - rbx-19mode
12
+ - 2.1.0
13
+ - jruby-19mode
14
+ - rbx
10
15
  - ruby-head
11
-
12
- matrix:
13
- allow_failures:
14
- - rvm: ruby-head
data/Changes.md CHANGED
@@ -1,3 +1,16 @@
1
+ MASTER
2
+ -----------
3
+ - upgrade to rspec 3
4
+
5
+ 0.3.6
6
+ -----------
7
+ - switch to ruby 2.1 by default
8
+ - remove rake
9
+ - add codeclimate badge
10
+ - update contributors
11
+ - fix builds on Rubinius
12
+ - wrap file path in quotes
13
+
1
14
  0.3.5
2
15
  -----------
3
16
  - support for ffmpeg 2.0.2
data/Gemfile CHANGED
@@ -1,4 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ platforms :rbx do
4
+ gem 'rubysl', '~> 2.0'
5
+ gem 'rubysl-json', '~> 2.0'
6
+ end
7
+
3
8
  # Specify your gem's dependencies in ffprober.gemspec
4
9
  gemspec
data/README.md CHANGED
@@ -43,13 +43,16 @@ help me collecting various version outputs of fprobe/ffmpeg
43
43
 
44
44
  ## Supported Rubies
45
45
 
46
- Ffprober is tested under 1.9.3, 2.0, JRuby (1.9mode) and Rubinius (1.9mode) and ruby-head.
46
+ Ffprober is tested under 1.9.3, 2.0, 2.1, JRuby (1.9mode) and Rubinius (1.9mode) and ruby-head.
47
47
 
48
48
  [![Build Status](https://secure.travis-ci.org/beanieboi/ffprober.png?branch=master)](http://travis-ci.org/beanieboi/ffprober)
49
49
 
50
+ [![Code Climate](https://codeclimate.com/github/beanieboi/ffprober.png)](https://codeclimate.com/github/beanieboi/ffprober)
51
+
50
52
  ## Contributors
51
53
 
52
54
  - Michael B. Kulik
55
+ - manderson
53
56
  - rmoriz
54
57
 
55
58
  ## Contributing
data/ffprober.gemspec CHANGED
@@ -14,9 +14,8 @@ Gem::Specification.new do |gem|
14
14
  gem.licenses = ['MIT']
15
15
 
16
16
  gem.add_development_dependency "rspec", "~> 2.9"
17
- gem.add_development_dependency 'rake', '~> 10.0'
18
17
 
19
- gem.files = `git ls-files`.split($\)
18
+ gem.files = `git ls-files`.split("\n")
20
19
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
21
20
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
22
21
  gem.name = "ffprober"
@@ -9,7 +9,7 @@ module Ffprober
9
9
  (version: #{FfprobeVersion.new.version.to_s})")
10
10
  end
11
11
 
12
- json_output = `#{Ffprober.path} #{@@options} #{file_to_parse}`
12
+ json_output = `#{Ffprober.path} #{@@options} '#{file_to_parse}'`
13
13
  from_json(json_output)
14
14
  end
15
15
 
@@ -1,3 +1,3 @@
1
1
  module Ffprober
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -3,6 +3,26 @@ require 'spec_helper'
3
3
 
4
4
  describe Ffprober::Parser do
5
5
 
6
+ describe "from_file with whitespace", if: Ffprober::FfprobeVersion.valid? do
7
+ before :each do
8
+ @ffprobe = Ffprober::Parser.from_file('spec/assets/301 extracting a ruby gem.m4v')
9
+ end
10
+
11
+ describe "format" do
12
+ it "should determine the correct filename" do
13
+ @ffprobe.format.filename.should eq("spec/assets/301 extracting a ruby gem.m4v")
14
+ end
15
+
16
+ it "should find the correct size" do
17
+ @ffprobe.format.size.should eq("130694")
18
+ end
19
+
20
+ it "should find the correct bit_rate" do
21
+ @ffprobe.format.bit_rate.should eq("502669")
22
+ end
23
+ end
24
+ end
25
+
6
26
  describe "from_file", if: Ffprober::FfprobeVersion.valid? do
7
27
  before :each do
8
28
  @ffprobe = Ffprober::Parser.from_file('spec/assets/301-extracting_a_ruby_gem.m4v')
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffprober
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - beanieboi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-02 00:00:00.000000000 Z
11
+ date: 2013-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.9'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.9'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: '10.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '10.0'
41
27
  description: a Ruby wrapper for ffprobe
42
28
  email:
43
29
  - beanie@benle.de
@@ -45,15 +31,14 @@ executables: []
45
31
  extensions: []
46
32
  extra_rdoc_files: []
47
33
  files:
48
- - .gitignore
49
- - .rspec
50
- - .ruby-version
51
- - .travis.yml
34
+ - ".gitignore"
35
+ - ".rspec"
36
+ - ".ruby-version"
37
+ - ".travis.yml"
52
38
  - Changes.md
53
39
  - Gemfile
54
40
  - LICENSE
55
41
  - README.md
56
- - Rakefile
57
42
  - ffprober.gemspec
58
43
  - lib/ffprober.rb
59
44
  - lib/ffprober/audio_stream.rb
@@ -63,6 +48,7 @@ files:
63
48
  - lib/ffprober/stream.rb
64
49
  - lib/ffprober/version.rb
65
50
  - lib/ffprober/video_stream.rb
51
+ - spec/assets/301 extracting a ruby gem.m4v
66
52
  - spec/assets/301-extracting_a_ruby_gem.json
67
53
  - spec/assets/301-extracting_a_ruby_gem.m4v
68
54
  - spec/assets/empty_file
@@ -88,21 +74,22 @@ require_paths:
88
74
  - lib
89
75
  required_ruby_version: !ruby/object:Gem::Requirement
90
76
  requirements:
91
- - - '>='
77
+ - - ">="
92
78
  - !ruby/object:Gem::Version
93
79
  version: 1.9.3
94
80
  required_rubygems_version: !ruby/object:Gem::Requirement
95
81
  requirements:
96
- - - '>='
82
+ - - ">="
97
83
  - !ruby/object:Gem::Version
98
84
  version: '0'
99
85
  requirements: []
100
86
  rubyforge_project: ffprober
101
- rubygems_version: 2.0.14
87
+ rubygems_version: 2.2.0
102
88
  signing_key:
103
89
  specification_version: 4
104
90
  summary: a Ruby wrapper for ffprobe (part of ffmpeg)
105
91
  test_files:
92
+ - spec/assets/301 extracting a ruby gem.m4v
106
93
  - spec/assets/301-extracting_a_ruby_gem.json
107
94
  - spec/assets/301-extracting_a_ruby_gem.m4v
108
95
  - spec/assets/empty_file
data/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- require "bundler/gem_tasks"
3
- require 'rspec/core/rake_task'
4
-
5
- RSpec::Core::RakeTask.new(:spec)
6
-
7
- task default: :spec