ffprober 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/Changes.md +69 -40
- data/Gemfile +1 -0
- data/README.md +2 -0
- data/lib/ffprober/chapter.rb +1 -11
- data/lib/ffprober/dynamic_initializer.rb +15 -0
- data/lib/ffprober/ffprobe_version.rb +1 -1
- data/lib/ffprober/format.rb +1 -11
- data/lib/ffprober/stream.rb +1 -11
- data/lib/ffprober/version.rb +1 -1
- data/lib/ffprober.rb +1 -0
- data/spec/spec_helper.rb +2 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11e951efb9157765fa5194d1fe25032376c32dc7
|
4
|
+
data.tar.gz: e96082dc6729e9b8773d57d821611bfde7981b08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5041177c6adcdde662d115178aeaba8d74430e1c1ac453cd94b2069de51c95751a13a3716a659a4637e6249de36c5fedda8d637b058b1cc4232ac8013263057f
|
7
|
+
data.tar.gz: aac65347b2f79f44d460fc9d37f9dd79af7d393426f141bc4b8710b5350dfdd422261fde31e737bf85436a1d7a1d4de1f2948000a3b35f212ec25ad67fbb3c18
|
data/.travis.yml
CHANGED
data/Changes.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
|
2
|
+
0.4.1 / 2014-08-27
|
3
|
+
==================
|
4
|
+
|
5
|
+
* add support for ffmpeg 2.3.3
|
6
|
+
* update Changes.md
|
7
|
+
* add code climate coverage
|
8
|
+
* move recurring initialize into a module
|
9
|
+
|
1
10
|
0.4.0 / 2014-08-22
|
2
11
|
==================
|
3
12
|
|
@@ -24,14 +33,16 @@
|
|
24
33
|
* Update README.md
|
25
34
|
* some code style fixes
|
26
35
|
|
27
|
-
0.3.7
|
28
|
-
|
36
|
+
0.3.7 / 2014-04-13
|
37
|
+
==================
|
38
|
+
|
29
39
|
- upgrade to rspec 3
|
30
40
|
- support for ffmpeg 2.1.4
|
31
41
|
- support for ffmpeg 2.2.0
|
32
42
|
|
33
|
-
0.3.6
|
34
|
-
|
43
|
+
0.3.6 / 2013-12-27
|
44
|
+
==================
|
45
|
+
|
35
46
|
- switch to ruby 2.1 by default
|
36
47
|
- remove rake
|
37
48
|
- add codeclimate badge
|
@@ -39,93 +50,111 @@
|
|
39
50
|
- fix builds on Rubinius
|
40
51
|
- wrap file path in quotes
|
41
52
|
|
42
|
-
0.3.5
|
43
|
-
|
53
|
+
0.3.5 / 2013-12-02
|
54
|
+
==================
|
55
|
+
|
44
56
|
- support for ffmpeg 2.0.2
|
45
57
|
- support for ffmpeg 2.1.1
|
46
58
|
|
47
|
-
0.3.4
|
48
|
-
|
59
|
+
0.3.4 / 2013-08-16
|
60
|
+
==================
|
61
|
+
|
49
62
|
- fix exception when no ffprobe is installed
|
50
63
|
- support for ffmpeg 2.0.1
|
51
64
|
|
52
|
-
0.3.3
|
53
|
-
|
65
|
+
0.3.3 / 2013-07-15
|
66
|
+
==================
|
67
|
+
|
54
68
|
- support for ffmpeg 2.0
|
55
69
|
|
56
|
-
0.3.2
|
57
|
-
|
70
|
+
0.3.2 / 2013-06-26
|
71
|
+
==================
|
72
|
+
|
58
73
|
- detect git-based installs of ffmpeg
|
59
74
|
|
60
|
-
0.3.1
|
61
|
-
|
75
|
+
0.3.1 / 2013-06-25
|
76
|
+
==================
|
77
|
+
|
62
78
|
- fixed version output call
|
63
79
|
|
64
|
-
0.3.0
|
65
|
-
|
80
|
+
0.3.0 / 2013-06-02
|
81
|
+
==================
|
82
|
+
|
66
83
|
- correctly detect ffprobe path on windows
|
67
84
|
- correctly detect avprobe
|
68
85
|
- detect nighlt builds
|
69
86
|
- refactor ffprobe version detection (+spec)
|
70
87
|
|
71
|
-
0.2.3
|
72
|
-
|
88
|
+
0.2.3 / 2013-05-18
|
89
|
+
==================
|
90
|
+
|
73
91
|
- Raise error if input file is invalid (InvalidInputFileError)
|
74
92
|
- Added support for Ffmpeg 1.1.4 and 1.2.1
|
75
93
|
|
76
|
-
0.2.2
|
77
|
-
|
94
|
+
0.2.2 / 2013-05-15
|
95
|
+
==================
|
96
|
+
|
78
97
|
- Added Caching to instantiated Stream Objects
|
79
98
|
- Switched from attr_reader to of attr_accessor in stream classes
|
80
99
|
|
81
|
-
0.2.1
|
82
|
-
|
100
|
+
0.2.1 / 2013-05-14
|
101
|
+
==================
|
102
|
+
|
83
103
|
- Refactored Ffmpeg version check
|
84
104
|
- Convert to ruby 1.9 hash syntax
|
85
105
|
- Bumped minmun required ruby version to 1.9.3
|
86
106
|
- JSON input will be parsed lazily
|
87
107
|
- Moved Ffprobe path finder into Ffprober Module
|
88
108
|
|
89
|
-
0.2.0
|
90
|
-
|
109
|
+
0.2.0 / 2013-05-13
|
110
|
+
==================
|
111
|
+
|
91
112
|
- Droped ruby 1.8 support
|
92
113
|
- Switched from multi_json to json
|
93
114
|
- Updated travis config
|
94
115
|
|
95
|
-
0.1.7
|
96
|
-
|
116
|
+
0.1.7 / 2013-03-19
|
117
|
+
==================
|
118
|
+
|
97
119
|
- Added support for Ffmpeg 1.1.4 and 1.2
|
98
120
|
|
99
|
-
0.1.6
|
100
|
-
|
121
|
+
0.1.6 / 2013-02-25
|
122
|
+
==================
|
123
|
+
|
101
124
|
- added bit rate attribute to video stream
|
102
125
|
- Added support for Ffmpeg 1.1.3
|
103
126
|
|
104
|
-
0.1.5
|
105
|
-
|
127
|
+
0.1.5 / 2013-02-08
|
128
|
+
==================
|
129
|
+
|
106
130
|
- Added support for Ffmpeg 1.1.2
|
107
131
|
|
108
|
-
0.1.4
|
109
|
-
|
132
|
+
0.1.4 / 2013-02-07
|
133
|
+
==================
|
134
|
+
|
110
135
|
- Added support for Ffmpeg 1.1.1
|
111
136
|
- Bumped rake dependency to 0.10
|
112
137
|
|
113
|
-
0.1.3
|
114
|
-
|
138
|
+
0.1.3 / 2013-01-12
|
139
|
+
==================
|
140
|
+
|
115
141
|
- Added support for Ffmpeg 1.1 and 1.0.1
|
116
142
|
|
117
|
-
0.1.1
|
118
|
-
|
143
|
+
0.1.1 / 2012-11-08
|
144
|
+
==================
|
145
|
+
|
119
146
|
- Added support for Ffmpeg 1.0
|
120
147
|
- Added tests for ffmpeg version checker
|
121
148
|
- Updated README
|
122
149
|
|
123
|
-
0.1.0
|
124
|
-
|
150
|
+
0.1.0 / 2012-06-23
|
151
|
+
==================
|
152
|
+
|
125
153
|
- Added missing License to README
|
126
154
|
- Improved Ffmpeg version detection
|
127
155
|
- Updated README
|
128
156
|
|
129
|
-
0.0.2
|
130
|
-
|
157
|
+
0.0.2 / 2012-05-01
|
158
|
+
==================
|
159
|
+
|
131
160
|
- first working version (supports Ffmpeg 0.10.2)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -49,6 +49,8 @@ Ffprober is tested under 1.9.3, 2.0, 2.1, JRuby (1.9mode) and Rubinius (1.9mode)
|
|
49
49
|
|
50
50
|
[![Code Climate](https://codeclimate.com/github/beanieboi/ffprober.png)](https://codeclimate.com/github/beanieboi/ffprober)
|
51
51
|
|
52
|
+
[![Test Coverage](https://codeclimate.com/github/beanieboi/ffprober/badges/coverage.svg)](https://codeclimate.com/github/beanieboi/ffprober)
|
53
|
+
|
52
54
|
## Contributors
|
53
55
|
|
54
56
|
- Michael B. Kulik
|
data/lib/ffprober/chapter.rb
CHANGED
@@ -1,15 +1,5 @@
|
|
1
1
|
module Ffprober
|
2
2
|
class Chapter
|
3
|
-
|
4
|
-
object_attribute_hash.each do |key, value|
|
5
|
-
instance_variable_set("@#{key}", value)
|
6
|
-
|
7
|
-
unless self.class.method_defined?(key)
|
8
|
-
self.class.send(:define_method, key) do
|
9
|
-
instance_variable_get("@#{key}")
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
3
|
+
include Ffprober::DynamicInitializer
|
14
4
|
end
|
15
5
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Ffprober
|
2
|
+
module DynamicInitializer
|
3
|
+
def initialize(object_attribute_hash)
|
4
|
+
object_attribute_hash.each do |key, value|
|
5
|
+
instance_variable_set("@#{key}", value)
|
6
|
+
|
7
|
+
unless self.class.method_defined?(key)
|
8
|
+
self.class.send(:define_method, key) do
|
9
|
+
instance_variable_get("@#{key}")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/ffprober/format.rb
CHANGED
@@ -1,15 +1,5 @@
|
|
1
1
|
module Ffprober
|
2
2
|
class Format
|
3
|
-
|
4
|
-
object_attribute_hash.each do |key, value|
|
5
|
-
instance_variable_set("@#{key}", value)
|
6
|
-
|
7
|
-
unless self.class.method_defined?(key)
|
8
|
-
self.class.send(:define_method, key) do
|
9
|
-
instance_variable_get("@#{key}")
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
3
|
+
include Ffprober::DynamicInitializer
|
14
4
|
end
|
15
5
|
end
|
data/lib/ffprober/stream.rb
CHANGED
@@ -1,15 +1,5 @@
|
|
1
1
|
module Ffprober
|
2
2
|
class Stream
|
3
|
-
|
4
|
-
object_attribute_hash.each do |key, value|
|
5
|
-
instance_variable_set("@#{key}", value)
|
6
|
-
|
7
|
-
unless self.class.method_defined?(key)
|
8
|
-
self.class.send(:define_method, key) do
|
9
|
-
instance_variable_get("@#{key}")
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
3
|
+
include Ffprober::DynamicInitializer
|
14
4
|
end
|
15
5
|
end
|
data/lib/ffprober/version.rb
CHANGED
data/lib/ffprober.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- beanieboi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- lib/ffprober.rb
|
45
45
|
- lib/ffprober/audio_stream.rb
|
46
46
|
- lib/ffprober/chapter.rb
|
47
|
+
- lib/ffprober/dynamic_initializer.rb
|
47
48
|
- lib/ffprober/ffprobe_version.rb
|
48
49
|
- lib/ffprober/format.rb
|
49
50
|
- lib/ffprober/parser.rb
|