flick 0.4.2 → 0.4.3

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: a65d935c10fb1863b48486df7082abad698e6241
4
- data.tar.gz: 45c1f5504bae007eda26fc50175e3ef3734ca5a5
3
+ metadata.gz: 1416274c61ae0bf9e0ac1bb3d0a4d7ca830db636
4
+ data.tar.gz: f2eab5fc3f3d4d6a7ce8b04fa9a14a3babc822ed
5
5
  SHA512:
6
- metadata.gz: 77f906c2b28c136e6507ed4db80e81aa22ba024c32b47dfd244622fe4b1fd7d00a5d6bbbbad496415fd24c6f654d0bf7a4db0a9a999a01367eb96d10f8c89003
7
- data.tar.gz: 6b7a8bdf8f0cd8495fca0a56349128a68ce98a83d848ae136620324ec526e0398de4bb3e956b4d74ee66ef009d4dba98057e8b1ffeda56395543d6fb6f457afb
6
+ metadata.gz: 2351634c48f1212af1312623b58080a1d260b8e15f080047b6420dae84e4fde1ebd6d8ed55c24f11da56a017ffe4067ae15026962839086b7cae52c7ed3be46a
7
+ data.tar.gz: b3aa9011da22783a3b2183f6db18afdfdbdc8b682cce1ef5dfc61e899029712f8efde62eba58929877c9046b855a327af2be4331835ace7a5194b699fd96554a
data/bin/flick CHANGED
@@ -2,7 +2,7 @@
2
2
  require_relative '../lib/flick'
3
3
  require 'commander/import'
4
4
 
5
- program :version, '0.4.2'
5
+ program :version, '0.4.3'
6
6
  program :description, 'A CLI to capture screenshots, video, logs, and device info for Android (Devices & Emulators) and iOS (Devices).'
7
7
 
8
8
  command :video do |c|
@@ -7,6 +7,7 @@ require 'os'
7
7
  require 'tempfile'
8
8
  require 'sys/proctable'
9
9
  require 'apktools/apkxml'
10
+ require 'open3'
10
11
 
11
12
  require "flick/version"
12
13
  require_relative "./flick/android"
@@ -23,10 +23,11 @@ module Flick
23
23
  end
24
24
 
25
25
  def is_paired?
26
- Flick::Checker.system_dependency "idevicepair"
27
- unless %x(idevicepair -u #{udid} pair).split[0] == "SUCCESS:"
26
+ Flick::Checker.system_dependency "idevicename"
27
+ if Open3.capture3("idevicename -u #{udid}")[1].split[0] == "ERROR:"
28
28
  puts "\nUDID: #{udid} - Is not paired with your machine!\nOr make sure the device is not locked!\n".red
29
- puts "Run: idevicepair -u <udid> pair\nIf not working still, see: https://github.com/isonic1/flick/issues/10".red
29
+ puts "Run: idevicepair -u <udid> pair\nIf not working still, see: https://github.com/isonic1/flick/issues/10\n".red
30
+ puts "Read more information about libmobiledevice libraries, see: http://libimobiledevice.org".green
30
31
  abort
31
32
  end
32
33
  end
@@ -1,3 +1,3 @@
1
1
  module Flick
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  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.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-20 00:00:00.000000000 Z
11
+ date: 2017-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler