wgif 0.3.0 → 0.3.1

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: eda7edccc313c6f58f2bb806200b69011f1904c1
4
- data.tar.gz: a2197e273c936b595a8b498e0c43deb43527ef23
3
+ metadata.gz: b62506044c22dad227aa25dd81278fd2d820154f
4
+ data.tar.gz: 871fe05a165dc850d28cdb4dfcbd009e426cff69
5
5
  SHA512:
6
- metadata.gz: e08a6c50358d79233771a2202991d0ed46eeffdfe723911b95dc97880a8583a407c62e7d3a24a15cb8aa53b9e7eb91d824e7c94e4b8717bf5c935f645525c92e
7
- data.tar.gz: d8af1629380d458440a01bd496310bffc597892ec3f68b0ebdec8cc7af2712241b9ffb833ac4f93577a232a06a99382bf36c0f1b3d39de32cf3e527f3676ba33
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
- To install from Rubygems:
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
@@ -1,3 +1,3 @@
1
1
  module WGif
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -30,7 +30,7 @@ module WGif
30
30
  else
31
31
  framerate = 24
32
32
  end
33
- transcode(@clip, "/tmp/wgif/frames/\%2d.png", "-vf fps=#{framerate}")
33
+ transcode(@clip, "/tmp/wgif/frames/\%5d.png", "-vf fps=#{framerate}")
34
34
  open_frame_dir
35
35
  end
36
36
 
@@ -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/%2d.png'
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.0
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-04-20 00:00:00.000000000 Z
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/integration/empty_image_list_spec.rb
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/integration/empty_image_list_spec.rb
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