capa 0.0.2 → 0.0.3
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/capa-ios +0 -1
- data/lib/capa/simulator_recorder.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3c26c96dca1c1db8f6b81bbe8cef8f48ed98ff3af75d7eedb2b718e5d267cfc
|
|
4
|
+
data.tar.gz: 48449bfd60462c86969283aa623bd9601902ee5386a60d6619718d3916ab5376
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94ec4c247f38b5475c7aeaaff2214f8ae02cfaf01da0675b6fbbd7c29d079b92e0367d3585ba9eb567be5e85b3ffe1a46695937c40bc0a79de4b46dc218432a3
|
|
7
|
+
data.tar.gz: aa797bc39a7e70a507bffb353285cf60de580545df8784837d54110046a9bd80c3d76e94cf1f852a3bbfcc2c2d1807ebc4c8f450391f910999407ec7247a4c8e
|
data/bin/capa-ios
CHANGED
|
@@ -14,7 +14,6 @@ abort('Please install gifify: https://github.com/vvo/gifify') unless command?('g
|
|
|
14
14
|
recorder = SimulatorRecorder.new(filename: @video_filename)
|
|
15
15
|
|
|
16
16
|
Signal.trap("SIGINT") do
|
|
17
|
-
sleep(0.5)
|
|
18
17
|
generator = GIFGenerator.new(input_video: @video_filename, output_gif: "#{@video_filename}.gif")
|
|
19
18
|
generator.generate
|
|
20
19
|
end
|
|
@@ -9,7 +9,13 @@ class SimulatorRecorder
|
|
|
9
9
|
def record
|
|
10
10
|
abort unless can_record?
|
|
11
11
|
puts 'Capturing video... Use CTRL+C to save'
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
job = fork do
|
|
14
|
+
exec("xcrun simctl io booted recordVideo #{@filename}")
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
Process.detach(job)
|
|
18
|
+
Process.waitall
|
|
13
19
|
end
|
|
14
20
|
|
|
15
21
|
private
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Salom
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: capa can record animated GIFs (and videos) from the iOS Simulator and
|
|
14
14
|
the Android Emulator because a GIF is worth a thousand lines of code.
|