yolo 1.1.10 → 1.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/yolo/tasks/ios/coverage.rb +2 -15
  2. metadata +1 -1
@@ -23,7 +23,7 @@ module Yolo
23
23
  def build_path
24
24
  files = []
25
25
  Find.find(@xcode.build_path) do |path|
26
- files << path if path =~ /.*#{name}-.*\/Build\/Intermediates\/#{name}.build\/.*-iphoneos\/#{name}.build\/Objects-normal/
26
+ files << path if path =~ /.*#{name}-.*\/Build\/Intermediates\/#{name}.build\/.*-iphonesimulator\/#{name}.build\/Objects-normal/
27
27
  end
28
28
  latest = files.sort_by { |filename| File.mtime(filename)}.last # get the latest
29
29
  latest.split("/")[0..-2].join("/") # remove the file and get the dir
@@ -36,23 +36,10 @@ module Yolo
36
36
  super
37
37
  namespace :yolo do
38
38
  namespace :coverage do
39
- desc "Builds the specified scheme(s)."
40
- task :build => :clean do
41
- xcodebuild :build
42
- end
43
-
44
39
  desc "Calculates the specified scheme(s) test coverage."
45
- task :calculate => :build do
40
+ task :calculate do
46
41
  Yolo::Tools::Ios::Coverage.calculate(build_path.gsub(" ", "\\ "), Dir.pwd)
47
42
  end
48
-
49
- desc "Cleans the specified scheme(s)."
50
- task :clean do
51
- xcodebuild :clean
52
- end
53
-
54
- desc "Builds the specified scheme(s) from a clean slate."
55
- task :cleanbuild => [:clean, :build]
56
43
  end
57
44
  end
58
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yolo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.10
4
+ version: 1.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: