flick 0.4.5 → 0.4.6
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/flick +2 -2
- data/lib/flick/android.rb +2 -2
- data/lib/flick/version.rb +1 -1
- data/lib/flick/video.rb +2 -2
- 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: b0123a2b0f910edeeb0194a7166d9da4679fc05f
|
4
|
+
data.tar.gz: 4050048915b4c56b6fdec0801ba35a8bbe7ad0da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b912a937fbd03a3f9703075e9d2e05cbcccb0296d251d36c0e27ee92f32f2d9242f03594bcd5b3b67a735d10a45d765c2a1ab4901ca7fd20d1dc2652a46671b3
|
7
|
+
data.tar.gz: 11e0d1bd01e703e585b2be02b01b59b0cfb01358d1ca67d8bd7eb10e577142349a89bdee6196e5c17ace8595cfa0fa6864cadf4086000db8c4415de52806daa7
|
data/bin/flick
CHANGED
@@ -3,7 +3,7 @@ require_relative '../lib/flick'
|
|
3
3
|
require 'commander/import'
|
4
4
|
require 'digest'
|
5
5
|
|
6
|
-
program :version, '0.4.
|
6
|
+
program :version, '0.4.6'
|
7
7
|
program :description, 'A CLI to capture screenshots, video, logs, and device info for Android (Devices & Emulators) and iOS (Devices).'
|
8
8
|
|
9
9
|
command :video do |c|
|
@@ -15,7 +15,7 @@ command :video do |c|
|
|
15
15
|
c.option '-u', '--udid UDID', String, 'Set device UDID. Defaults to only connected device per platform'
|
16
16
|
c.option '-s', '--seconds SECONDS', String, 'Set the seconds per screenshot. Default: 0.5'
|
17
17
|
c.option '-c', '--count COUNT', Integer, 'Set maximum number of screenshots. Default: 500'
|
18
|
-
c.option '-e', '--extend EXTEND', 'Extend android video past 180 seconds SDK limit.
|
18
|
+
c.option '-e', '--extend EXTEND', 'Extend android video past 180 seconds SDK limit. e.g. -e true .Default: false'
|
19
19
|
#The options below are relavent to the stop action...
|
20
20
|
c.option '-n', '--name NAME', String, 'Set name of output file, Default: UDID'
|
21
21
|
c.option '-q', '--unique UNIQUE', 'Pull only unique screenshots. Significantly speeds up the pulling process. Default: true'
|
data/lib/flick/android.rb
CHANGED
@@ -174,7 +174,7 @@ module Flick
|
|
174
174
|
command = "md5sum"
|
175
175
|
end
|
176
176
|
files = %x(adb -s #{udid} shell "#{command} #{dir_name}/#{type}*")
|
177
|
-
hash = files.split(
|
177
|
+
hash = files.split(/[\r\n]+/).map { |file| { md5: file.match(/(.*) /)[1].strip, file: file.match(/ (.*)/)[1].strip } }
|
178
178
|
hash.uniq! { |e| e[:md5] }
|
179
179
|
hash.map { |file| file[:file] }
|
180
180
|
end
|
@@ -192,4 +192,4 @@ module Flick
|
|
192
192
|
end
|
193
193
|
end
|
194
194
|
end
|
195
|
-
end
|
195
|
+
end
|
data/lib/flick/version.rb
CHANGED
data/lib/flick/video.rb
CHANGED
@@ -94,7 +94,7 @@ class Video
|
|
94
94
|
Flick::System.kill_process "video", udid
|
95
95
|
sleep 5 #wait for video process to finish
|
96
96
|
driver.pull_files "video"
|
97
|
-
|
97
|
+
files = Dir.glob("#{driver.flick_dir}/video-#{udid}*.mp4").sort
|
98
98
|
return if files.empty?
|
99
99
|
files.each { |file| system("mp4box -cat #{file} #{driver.flick_dir}/#{driver.name}.mp4") }
|
100
100
|
puts "Saving to #{driver.outdir}/#{driver.name}.#{format}"
|
@@ -152,4 +152,4 @@ class Video
|
|
152
152
|
File.delete f if File.zero? f
|
153
153
|
end
|
154
154
|
end
|
155
|
-
end
|
155
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|