lolcommits 0.5.0.pre2 → 0.5.0.pre3
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/bin/lolcommits +2 -2
- data/lib/lolcommits/capture_mac_animated.rb +4 -4
- data/lib/lolcommits/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad3bb7059d1456292c62655602fe093d02489634
|
|
4
|
+
data.tar.gz: d58ec1f441f2e30b8cc5a1dda9884dffb29ac9e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 "
|
|
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
|
|
15
|
-
seq_command = "seq -f #{frames_location}/%09g.png 1
|
|
16
|
-
# delay
|
|
17
|
-
system_call "convert -layers OptimizeTransparency -delay
|
|
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
|
|
data/lib/lolcommits/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mini_magick
|