app-tools 1.9.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/gencov +13 -2
  3. data/lib/app_tools/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd04568f1d1edd8ab82332e96d484d40a6a5a207
4
- data.tar.gz: 9bba31245b35b8521bf581e0659228ce9c84d9ac
3
+ metadata.gz: 38aea6bb8decddc844afbea1f4371dc3b43990b1
4
+ data.tar.gz: 951e547b90c768d9936467b16cb8be4f2c944b3f
5
5
  SHA512:
6
- metadata.gz: a4c61ae1f17a5f611df3e79ac0b5b5950a33e6ba8245547e770c78275b3a832a4628828c0ba9c080e99aab23489bc705ef13f871bf0df84937b8d107993731dd
7
- data.tar.gz: fd7e9e5d459751de527fa1593853164706c566fad3bc39fddaf4bfe1a6c79db10673518512ba274f004f4655cedf6dcc0c58684960ae63e67996593ac51fc29c
6
+ metadata.gz: 49731f3265c149781814b209620c2e387e517ba9e805656e79366cc2d8f48168d4b5ab8362acd2a905f1d28564cea6c327bd5d0f0fe39f2b14b264cfad9ff91e
7
+ data.tar.gz: 38f6b8bc3963785dace9a941af82245fd0cd5d8331a543a5bf115f36cf2803d6e1660a1f132cb4d891dad7b7f9bd3f33e64d46970b39a6b23337c681fdda3394
data/bin/gencov CHANGED
@@ -61,13 +61,24 @@ module AppTools
61
61
  end
62
62
  end
63
63
 
64
- coverage_root = File.join(build_settings['PROJECT_TEMP_ROOT'], "CodeCoverage/#{scheme}")
64
+ coverage_root = File.join(build_settings['PROJECT_TEMP_ROOT'], "CodeCoverage")
65
+
66
+ if Dir.exist?(coverage_root)
67
+ exit_now! "Could not find coverage root dir #{coverage_root}. Was Xcode upgraded?"
68
+ end
69
+
65
70
  app_name = build_settings['EXECUTABLE_NAME']
66
71
  profdata_path = File.join(coverage_root, "Coverage.profdata")
72
+
73
+
74
+ if Dir.exist?(coverage_root)
75
+ exit_now! "Could not find coverage file #{profdata_path}. Is code coverage enabled in the scheme '#{scheme}'?"
76
+ end
77
+
67
78
  binary_path = `find #{coverage_root} -path *#{app_name}.app/#{app_name}`.chomp
68
79
 
69
80
  if $?.exitstatus != 0
70
- exit_now! "Unable to proceed"
81
+ exit_now! "Could not find #{app_name} under #{coverage_root}"
71
82
  end
72
83
 
73
84
  directory = File.expand_path(directory)
@@ -1,3 +1,3 @@
1
1
  module AppTools
2
- VERSION = "1.9.0"
2
+ VERSION = "1.10.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Lyon-Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-02 00:00:00.000000000 Z
11
+ date: 2016-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler