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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25ef90cda7e0ab108330f0eda1d9fb34fa70f746b1a0daa439f7a405f76deedb
4
- data.tar.gz: c56c8a8e5a77fb760ca835e0d03e58ba0cc2d92d1acb4b63081cf0bfb349164f
3
+ metadata.gz: d3c26c96dca1c1db8f6b81bbe8cef8f48ed98ff3af75d7eedb2b718e5d267cfc
4
+ data.tar.gz: 48449bfd60462c86969283aa623bd9601902ee5386a60d6619718d3916ab5376
5
5
  SHA512:
6
- metadata.gz: fc32a958d31a116e1743375a54a8a64e2e1cb38dbc11cba489c8045abfd8fba2a7c5b9f448bcd3765ad98e0ba0f7219f5341fce79b7777decccb3ed2263ac8ee
7
- data.tar.gz: 6bf542ca839016cbe0f1f86b79331391c857f523839ff75af49bc669a4645f7026cc5d9e6f5fc692330b9adcd735b38a366274da6402aeeb8d2735196b72b440
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
- `xcrun simctl io booted recordVideo #{@filename}`
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.2
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-10 00:00:00.000000000 Z
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.