ffprober 0.1.7 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2a48f3dc5c3a59c2b99241bdd3be2cef2f1317f4
4
+ data.tar.gz: dc67ddb0cb794eaf341d7a422a4aa9882218f149
5
+ SHA512:
6
+ metadata.gz: 88ba09c9ecf3e7da3cf006cb38e4470f883f703e92b9a71e8be1127de3072b43a07906bb1e4edb8b19038b8f485e434d2b4a8cb97a5a03a88db1cfffed4ae9dc
7
+ data.tar.gz: dab0af154e1b400ff62e83012b35f2df135c6fff8e2ffd5d7926df4babd8a461afc990a01b2b251233bd5f6d0ffd5d65efb63e713f426389e76495d0b63282d0
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.0.0-p0
data/.travis.yml CHANGED
@@ -1,8 +1,10 @@
1
- before_script: "sudo aptitude -y -q install ffmpeg"
1
+ before_script:
2
+ - sudo apt-get update -qq
3
+ - sudo apt-get install -qq ffmpeg
2
4
  language: ruby
3
5
  rvm:
4
- - 1.9.2
5
6
  - 1.9.3
7
+ - 2.0.0
6
8
  - jruby-19mode # JRuby in 1.9 mode
7
9
  - rbx-19mode
8
10
  - ruby-head
data/README.md CHANGED
@@ -33,7 +33,7 @@ according to [ffmpeg changelog](http://git.videolan.org/?p=ffmpeg.git;a=blob_pla
33
33
 
34
34
  ## Supported Rubies
35
35
 
36
- Ffprober is tested under 1.9.2, 1.9.3, 2.0, JRuby (1.9mode) and Rubinius (1.9mode).
36
+ Ffprober is tested under 1.9.3, 2.0, JRuby (1.9mode) and Rubinius (1.9mode) and ruby-head.
37
37
 
38
38
  [![Build Status](https://secure.travis-ci.org/beanieboi/ffprober.png?branch=master)](http://travis-ci.org/beanieboi/ffprober)
39
39
 
data/ffprober.gemspec CHANGED
@@ -11,11 +11,11 @@ Gem::Specification.new do |gem|
11
11
  gem.required_ruby_version = ">= 1.9.2"
12
12
  gem.rubyforge_project = "ffprober"
13
13
 
14
+ gem.licenses = ['MIT']
15
+
14
16
  gem.add_development_dependency "rspec", "~> 2.9"
15
17
  gem.add_development_dependency 'rake', '~> 10.0'
16
18
 
17
- gem.add_runtime_dependency 'multi_json', '~> 1.3'
18
-
19
19
  gem.files = `git ls-files`.split($\)
20
20
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
21
21
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
@@ -65,7 +65,7 @@ module Ffprober
65
65
 
66
66
  def parse(json_to_parse)
67
67
  raise ArgumentError.new("No JSON found") if json_to_parse.nil?
68
- @video_json = MultiJson.load(json_to_parse, :symbolize_keys => true)
68
+ @video_json = JSON.parse(json_to_parse, symbolize_names: true)
69
69
  end
70
70
 
71
71
  def format
@@ -1,3 +1,3 @@
1
1
  module Ffprober
2
- VERSION = "0.1.7"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/ffprober.rb CHANGED
@@ -4,7 +4,7 @@ require "ffprober/format"
4
4
  require "ffprober/stream"
5
5
  require "ffprober/audio_stream"
6
6
  require "ffprober/video_stream"
7
- require 'multi_json'
7
+ require "json"
8
8
 
9
9
  module Ffprober
10
10
  end
@@ -2,7 +2,7 @@
2
2
  require 'spec_helper'
3
3
 
4
4
  describe Ffprober do
5
- describe "from_file", :if => Ffprober::Parser.ffprobe_version_valid? do
5
+ describe "from_file", if: Ffprober::Parser.ffprobe_version_valid? do
6
6
  before :each do
7
7
  @ffprobe = Ffprober::Parser.from_file('spec/assets/301-extracting_a_ruby_gem.m4v')
8
8
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffprober
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - beanieboi
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-19 00:00:00.000000000 Z
11
+ date: 2013-05-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,27 +34,10 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
45
40
  version: '10.0'
46
- - !ruby/object:Gem::Dependency
47
- name: multi_json
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: '1.3'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '1.3'
62
41
  description: a Ruby wrapper for ffprobe
63
42
  email:
64
43
  - beanie@benle.de
@@ -68,6 +47,7 @@ extra_rdoc_files: []
68
47
  files:
69
48
  - .gitignore
70
49
  - .rspec
50
+ - .ruby-version
71
51
  - .travis.yml
72
52
  - Gemfile
73
53
  - LICENSE
@@ -87,28 +67,28 @@ files:
87
67
  - spec/ffprober_spec.rb
88
68
  - spec/spec_helper.rb
89
69
  homepage: https://github.com/beanieboi/ffprober
90
- licenses: []
70
+ licenses:
71
+ - MIT
72
+ metadata: {}
91
73
  post_install_message:
92
74
  rdoc_options: []
93
75
  require_paths:
94
76
  - lib
95
77
  required_ruby_version: !ruby/object:Gem::Requirement
96
- none: false
97
78
  requirements:
98
- - - ! '>='
79
+ - - '>='
99
80
  - !ruby/object:Gem::Version
100
81
  version: 1.9.2
101
82
  required_rubygems_version: !ruby/object:Gem::Requirement
102
- none: false
103
83
  requirements:
104
- - - ! '>='
84
+ - - '>='
105
85
  - !ruby/object:Gem::Version
106
86
  version: '0'
107
87
  requirements: []
108
88
  rubyforge_project: ffprober
109
- rubygems_version: 1.8.23
89
+ rubygems_version: 2.0.0
110
90
  signing_key:
111
- specification_version: 3
91
+ specification_version: 4
112
92
  summary: a Ruby wrapper for ffprobe (part of ffmpeg)
113
93
  test_files:
114
94
  - spec/assets/301-extracting_a_ruby_gem.json