wgif 0.3.0 → 0.3.1
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 +4 -4
- data/README.md +9 -1
- data/lib/wgif/version.rb +1 -1
- data/lib/wgif/video.rb +1 -1
- data/spec/{integration → regression}/empty_image_list_spec.rb +0 -0
- data/spec/regression/frame_order_spec.rb +19 -0
- data/spec/unit/wgif/video_spec.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b62506044c22dad227aa25dd81278fd2d820154f
|
4
|
+
data.tar.gz: 871fe05a165dc850d28cdb4dfcbd009e426cff69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6334f268f26b029b22a76ecef6df8235afb2a4ff5c01fa45c0d823f56d46a0ce2cde3ab7a2d80379dbb7fd728eee03436ef4f495a664ecfafa6a448012078bad
|
7
|
+
data.tar.gz: cf8f8ec76f7d5628847edbf3216e82732c1889ab9b8996d8b07c4eea8f4460d26e65591384dd535c3c854ebc303e23832cba9efd14491238e153d6b9e9407eb3
|
data/README.md
CHANGED
@@ -22,7 +22,15 @@ Example:
|
|
22
22
|
```
|
23
23
|
|
24
24
|
## Installation (Mac OS X)
|
25
|
-
|
25
|
+
**Update 2014/04/23:** One of WGif's dependencies requires ImageMagick to compile. Before installing, make sure you:
|
26
|
+
|
27
|
+
```sh
|
28
|
+
$ brew install imagemagick
|
29
|
+
```
|
30
|
+
|
31
|
+
using [Homebrew](http://brew.sh/), or install it with your favorite package manager.
|
32
|
+
|
33
|
+
Then, to install from Rubygems:
|
26
34
|
|
27
35
|
```sh
|
28
36
|
$ gem install wgif
|
data/lib/wgif/version.rb
CHANGED
data/lib/wgif/video.rb
CHANGED
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'wgif/cli'
|
3
|
+
|
4
|
+
describe 'frame order bug', integration: true do
|
5
|
+
it 'does not create frames out of order' do
|
6
|
+
args = ['https://www.youtube.com/watch?v=piWCBOsJr-w',
|
7
|
+
'banana-shoot.gif',
|
8
|
+
'-s',
|
9
|
+
'2:22',
|
10
|
+
'-d',
|
11
|
+
'17',
|
12
|
+
'-f',
|
13
|
+
'170']
|
14
|
+
WGif::CLI.new.make_gif(args)
|
15
|
+
frames = Dir.entries('/tmp/wgif/frames')
|
16
|
+
filenames = (1..170).map {|n| sprintf "%05d.png", n }
|
17
|
+
expect(frames).to eq([".", ".."] + filenames)
|
18
|
+
end
|
19
|
+
end
|
@@ -46,7 +46,7 @@ describe WGif::Video do
|
|
46
46
|
end
|
47
47
|
|
48
48
|
it 'returns a specific number of frames' do
|
49
|
-
frames = '/tmp/wgif/frames/%
|
49
|
+
frames = '/tmp/wgif/frames/%5d.png'
|
50
50
|
options = '-vf fps=5'
|
51
51
|
expect(clip).to receive(:transcode).with(frames, options)
|
52
52
|
FileUtils.stub(:rm)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wgif
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connor Mendenhall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rmagick
|
@@ -193,7 +193,8 @@ files:
|
|
193
193
|
- lib/wgif/version.rb
|
194
194
|
- lib/wgif/video.rb
|
195
195
|
- lib/wgif/video_cache.rb
|
196
|
-
- spec/
|
196
|
+
- spec/regression/empty_image_list_spec.rb
|
197
|
+
- spec/regression/frame_order_spec.rb
|
197
198
|
- spec/spec_helper.rb
|
198
199
|
- spec/unit/wgif/argument_parser_spec.rb
|
199
200
|
- spec/unit/wgif/cli_spec.rb
|
@@ -231,7 +232,8 @@ specification_version: 4
|
|
231
232
|
summary: A command-line tool for creating animated GIFs from YouTube videos. Uses
|
232
233
|
FFmpeg and ImageMagick.
|
233
234
|
test_files:
|
234
|
-
- spec/
|
235
|
+
- spec/regression/empty_image_list_spec.rb
|
236
|
+
- spec/regression/frame_order_spec.rb
|
235
237
|
- spec/spec_helper.rb
|
236
238
|
- spec/unit/wgif/argument_parser_spec.rb
|
237
239
|
- spec/unit/wgif/cli_spec.rb
|