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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00554c21450f2fb83b864e5259f5d04a4bbf000c
4
- data.tar.gz: e06ccb70a5ba708dfeb39fddea652f32d4083c50
3
+ metadata.gz: f8fd039b34c584f9ef0cc8c3a445d7c1563bbd35
4
+ data.tar.gz: 64fb075f8162f1010c6605fd56ded95ce9bdd262
5
5
  SHA512:
6
- metadata.gz: d5c59315855b50659483ba004a1f3a3f7ca7ba1e292a3a5b10cd68aad53aa688a500ff64e4d4e314e5418779d939286bba35c76bda3444801390c6046515a74f
7
- data.tar.gz: 98950c3c241657f9eb857411a023abe443a7c24770a78ccd28e9b0eddcf0c8ab1a6401f88858872ae42e76141c1d589db97a06cd2cbe8a198a5cec3fb57381d7
6
+ metadata.gz: '09bb11cca1aeb9135999e384b18b82a7a9d6d66d2b2b2c27ff65e007a115728adbcc00c45f358e87d4bb1186d939c1f3b6ecc83a8917f53db10a71e65270b01d'
7
+ data.tar.gz: e7c9e39696f4c74d9d633418784d24e65792a130a834792a1e84fcaa804f6cb6cb26a042bad5519f122e63ee2c220d8bb964753d18707c2f7d98caa61163500f
@@ -3,9 +3,7 @@ module FbsimctlRb
3
3
  attr_reader :fbsim
4
4
 
5
5
  def initialize
6
- validate_env
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 validate_env
25
- return unless `which fbsimctl`.empty?
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
 
@@ -1,3 +1,3 @@
1
1
  module FbsimctlRb
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbsimctl_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO