flick 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a28b0508d94949d4202e53bb6aa6c4b53fbe6b5
4
- data.tar.gz: 464f2aa8261f94798b28f9569849004477ad5df1
3
+ metadata.gz: b0123a2b0f910edeeb0194a7166d9da4679fc05f
4
+ data.tar.gz: 4050048915b4c56b6fdec0801ba35a8bbe7ad0da
5
5
  SHA512:
6
- metadata.gz: d2abbc94975b4164ef8a792b5e4de174df648595b849eef13f081353f5e1b2143b558ed1c78321a737ae132c0bc3ab95061e11fa64256ad3bd0458816ce75bdb
7
- data.tar.gz: d9d29fc17010bb00c19e85446a963d632a44fe15043814f67e0a5c39c69e54ec91232d515560b483ba22e7659d329750fb702b848c68f89aa8fdd28b50a6df43
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.5'
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. (REAL devices only - OS > 4.4). Default: false'
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'
@@ -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("\r\n").map { |file| { md5: file.match(/(.*) /)[1].strip, file: file.match(/ (.*)/)[1].strip } }
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
@@ -1,3 +1,3 @@
1
1
  module Flick
2
- VERSION = "0.4.5"
2
+ VERSION = "0.4.6"
3
3
  end
@@ -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
- files = Dir.glob("#{driver.flick_dir}/video-#{udid}*.mp4")
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.5
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-02 00:00:00.000000000 Z
11
+ date: 2018-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler