lolcommits 0.6.3 → 0.6.4
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
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTQ5MmRhOGIwMTQxNjczMTkwZmMxZWE1ZjdkNTJjNTc0OTcxNzM2Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODNkMmIxMDYzYjlmNmUyYjZjOTI3OGI2MGNhOWRmZDM5ZTUwZTRkYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDgxMTJlYWM3ZjEyOTBjZTEwZmExMTA0ZDZjMmU0MGM3MDk3ZTI1ZTc5NDkz
|
10
|
+
ZDhiMzEzZTBjMmJlZjMzOGI0YTViYjI4MGY3ZWE0YTA4MDg3OTFkNzU2ZTg5
|
11
|
+
Y2FhMmJmODhkN2U0OGVhNjY0MzcxODEyOWUxMDU1MzcxZWI1MWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWM3YTRkMzFkZGJiNmQ4MDM2OTUzZWEwZDA3MThiZDBkNTNlYmJlN2U4ZmFl
|
14
|
+
MGQwNmQ4NWU0MzdlNTk4M2I4N2U5OGJiODNmMjg5MDc3ODk2Y2NiYzU3ZjVj
|
15
|
+
NjcyZjA2YjZkZTZkMjg1ZDY1M2MwZTJiOGE4ZTg1NjQ4NDAzM2U=
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
### Version History
|
2
2
|
|
3
3
|
0.7.0 (WIP)
|
4
|
-
* extract plugins to
|
4
|
+
* extract plugins to separate gems ...
|
5
|
+
|
6
|
+
0.6.4 (15 March 2016)
|
7
|
+
* Add quotes to correctly handle paths with spaces (@matthutchinson #298)
|
5
8
|
|
6
9
|
0.6.3 (14 March 2016)
|
7
10
|
* Add quotes to correctly handle paths with spaces (@pedrocunha #296)
|
@@ -18,10 +18,12 @@ module Lolcommits
|
|
18
18
|
delay = frame_delay(fps, skip)
|
19
19
|
debug "Capturer: anaimated gif choosing every #{skip} frames with a frame delay of #{delay}"
|
20
20
|
|
21
|
-
# create the looping animated gif from frames (picks nth frame with seq
|
22
|
-
|
21
|
+
# create the looping animated gif from frames (picks nth frame with seq,
|
22
|
+
# quotes output and concats to a single line with tr)
|
23
|
+
seq_command = "seq -f \"\\\"#{frames_location}/%09g.png\\\"\" 1 #{skip} #{Dir["#{frames_location}/*"].length} | tr '\\n' ' '"
|
24
|
+
seq_frame_files = system_call(seq_command, true)
|
23
25
|
# convert to animated gif with delay and gif optimisation
|
24
|
-
system_call "convert -layers OptimizeTransparency -delay #{delay} -loop 0
|
26
|
+
system_call "convert -layers OptimizeTransparency -delay #{delay} -loop 0 #{seq_frame_files} -coalesce \"#{snapshot_location}\""
|
25
27
|
end
|
26
28
|
|
27
29
|
private
|
@@ -39,7 +41,7 @@ module Lolcommits
|
|
39
41
|
|
40
42
|
def video_fps(file)
|
41
43
|
# inspect fps of the captured video file (default to 29.97)
|
42
|
-
fps = system_call("ffmpeg -i #{file} 2>&1 | sed -n \"s/.*, \\(.*\\) fp.*/\\1/p\"", true)
|
44
|
+
fps = system_call("ffmpeg -i \"#{file}\" 2>&1 | sed -n \"s/.*, \\(.*\\) fp.*/\\1/p\"", true)
|
43
45
|
fps.to_i < 1 ? 29.97 : fps.to_f
|
44
46
|
end
|
45
47
|
|
@@ -19,10 +19,12 @@ module Lolcommits
|
|
19
19
|
delay = frame_delay(fps, skip)
|
20
20
|
debug "Capturer: animated gif choosing every #{skip} frames with a frame delay of #{delay}"
|
21
21
|
|
22
|
-
# create the looping animated gif from frames (picks nth frame with seq
|
23
|
-
|
22
|
+
# create the looping animated gif from frames (picks nth frame with seq,
|
23
|
+
# quotes output and concats to a single line with tr)
|
24
|
+
seq_command = "seq -f \"\\\"#{frames_location}/%09g.png\\\"\" 1 #{skip} #{Dir["#{frames_location}/*"].length} | tr '\\n' ' '"
|
25
|
+
seq_frame_files = system_call(seq_command, true)
|
24
26
|
# convert to animated gif with delay and gif optimisation
|
25
|
-
system_call "convert -layers OptimizeTransparency -delay #{delay} -loop 0
|
27
|
+
system_call "convert -layers OptimizeTransparency -delay #{delay} -loop 0 #{seq_frame_files} -coalesce \"#{snapshot_location}\" > /dev/null"
|
26
28
|
end
|
27
29
|
|
28
30
|
def executable_path
|
@@ -44,7 +46,7 @@ module Lolcommits
|
|
44
46
|
|
45
47
|
def video_fps(file)
|
46
48
|
# inspect fps of the captured video file (default to 29.97)
|
47
|
-
fps = system_call("ffmpeg -i #{file} 2>&1 | sed -n \"s/.*, \\(.*\\) fp.*/\\1/p\"", true)
|
49
|
+
fps = system_call("ffmpeg -i \"#{file}\" 2>&1 | sed -n \"s/.*, \\(.*\\) fp.*/\\1/p\"", true)
|
48
50
|
fps.to_i < 1 ? 29.97 : fps.to_f
|
49
51
|
end
|
50
52
|
|
data/lib/lolcommits/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolcommits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Rothenberg
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-03-
|
12
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|