fbsimctl_rb 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fbsimctl_rb/command.rb +4 -5
- data/lib/fbsimctl_rb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8fd039b34c584f9ef0cc8c3a445d7c1563bbd35
|
4
|
+
data.tar.gz: 64fb075f8162f1010c6605fd56ded95ce9bdd262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09bb11cca1aeb9135999e384b18b82a7a9d6d66d2b2b2c27ff65e007a115728adbcc00c45f358e87d4bb1186d939c1f3b6ecc83a8917f53db10a71e65270b01d'
|
7
|
+
data.tar.gz: e7c9e39696f4c74d9d633418784d24e65792a130a834792a1e84fcaa804f6cb6cb26a042bad5519f122e63ee2c220d8bb964753d18707c2f7d98caa61163500f
|
data/lib/fbsimctl_rb/command.rb
CHANGED
@@ -3,9 +3,7 @@ module FbsimctlRb
|
|
3
3
|
attr_reader :fbsim
|
4
4
|
|
5
5
|
def initialize
|
6
|
-
|
7
|
-
|
8
|
-
@fbsim = 'fbsimctl'
|
6
|
+
@fbsim = get_fbsimctl_path
|
9
7
|
end
|
10
8
|
|
11
9
|
private
|
@@ -21,8 +19,9 @@ module FbsimctlRb
|
|
21
19
|
end
|
22
20
|
end
|
23
21
|
|
24
|
-
def
|
25
|
-
|
22
|
+
def get_fbsimctl_path
|
23
|
+
cmd = `which fbsimctl`.strip
|
24
|
+
return cmd unless cmd.empty?
|
26
25
|
raise "You should install fbsimctl. Read https://github.com/facebook/FBSimulatorControl/tree/master/fbsimctl"
|
27
26
|
end
|
28
27
|
|
data/lib/fbsimctl_rb/version.rb
CHANGED