lolcommits 0.5.0.pre2 → 0.5.0.pre3

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: 4a4b9d223981ee1db26294616644ee607eb11cd8
4
- data.tar.gz: 2ca0bcb52991747273252b9cd1454aa90084a7b5
3
+ metadata.gz: ad3bb7059d1456292c62655602fe093d02489634
4
+ data.tar.gz: d58ec1f441f2e30b8cc5a1dda9884dffb29ac9e9
5
5
  SHA512:
6
- metadata.gz: ce0211bec0f041d0e71341a1319cd30526f8769f273f7be0691216fc7b98b67a540d0721b170ce0934db6bfc7369930c7ee0404085f2378da80695b4c24ef923
7
- data.tar.gz: 172f9b6e26c17a62fefe67c764b484f1a27318e4c143e8a1f4480ed229529373982927c3cff7bfb54c2bb21f6d587cb96b30d80648a9d70851bfed59774b4ffd
6
+ metadata.gz: 5725cfe06bb7f1dcf77e42f6c4a3b29f17403743ea25bb88473996a5c05e3cbccd1d238332fb02a8da2da618cdcde7b6530a25a1e08c08fe0b5c5a7b5ae8d68f
7
+ data.tar.gz: 0b6a84abbd2db137131a753933d92ad6f1b60b46e513730dde74ec6fab1bbe2dabb6052ef8b5e7479139599fc2c15892b4216a9d71824b902b727dc2598bf64b
data/bin/lolcommits CHANGED
@@ -344,7 +344,7 @@ Choice.options do
344
344
  option :gif do
345
345
  long "--gif"
346
346
  short "-g"
347
- desc "generate animated gif"
347
+ desc "generate animated timeline gif from captured images"
348
348
  end
349
349
 
350
350
  if Configuration.can_animate?
@@ -352,7 +352,7 @@ Choice.options do
352
352
  long "--animate=SECONDS"
353
353
  short "-a"
354
354
  cast Integer
355
- desc "duration for capturing an animated gif"
355
+ desc "enable animated gif captures with duration (seconds)"
356
356
  end
357
357
  end
358
358
 
@@ -11,10 +11,10 @@ module Lolcommits
11
11
  if File.exists?(video_location)
12
12
  # convert raw video to png frames with ffmpeg
13
13
  system_call "ffmpeg -v quiet -i #{video_location} -t #{animated_duration} #{frames_location}/%09d.png"
14
- # create the looping animated gif from frames (picks every 2nd frame with seq)
15
- seq_command = "seq -f #{frames_location}/%09g.png 1 2 #{Dir["#{frames_location}/*"].length}"
16
- # delay of 12 between every other frame, 24fps
17
- system_call "convert -layers OptimizeTransparency -delay 12 -loop 0 `#{seq_command}` -coalesce #{snapshot_location}"
14
+ # create the looping animated gif from frames (picks every 3rd frame with seq)
15
+ seq_command = "seq -f #{frames_location}/%09g.png 1 3 #{Dir["#{frames_location}/*"].length}"
16
+ # delay is chosen assuming the capture was 29.97fps
17
+ system_call "convert -layers OptimizeTransparency -delay 7 -loop 0 `#{seq_command}` -coalesce #{snapshot_location}"
18
18
  end
19
19
  end
20
20
 
@@ -1,3 +1,3 @@
1
1
  module Lolcommits
2
- VERSION = "0.5.0.pre2"
2
+ VERSION = "0.5.0.pre3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.pre2
4
+ version: 0.5.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Rothenberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-09 00:00:00.000000000 Z
11
+ date: 2013-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick