uispecrunner 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.4
1
+ 0.4.5
data/lib/uispecrunner.rb CHANGED
@@ -79,8 +79,23 @@ class UISpecRunner
79
79
  "#{xcode_root}/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator#{self.sdk_version}.sdk"
80
80
  end
81
81
 
82
+ def cached_app_filename
83
+ '.uispec.app'
84
+ end
85
+
86
+ def read_cached_app_path
87
+ File.read(cached_app_filename).chomp if File.exists?(cached_app_filename)
88
+ end
89
+
90
+ def write_cached_app_path
91
+ if @app_path
92
+ puts "Cached app path '#{app_path}'" unless File.exists?(cached_app_filename)
93
+ File.open(cached_app_filename, 'w') { |f| f << @app_path }
94
+ end
95
+ end
96
+
82
97
  def app_path
83
- @app_path || "#{self.build_dir}/#{self.configuration}-iphonesimulator/#{self.target}.app/#{self.target}"
98
+ @app_path || read_cached_app_path || "#{self.build_dir}/#{self.configuration}-iphonesimulator/#{self.target}.app/#{self.target}"
84
99
  end
85
100
 
86
101
  def app_executable_name
@@ -107,6 +122,7 @@ class UISpecRunner
107
122
  builder = UISpecRunner::XcodeBuilder.new(self)
108
123
  if self.skip_build || builder.build! == 0
109
124
  @app_path ||= builder.app_path
125
+ write_cached_app_path
110
126
  puts "Running specs via #{driver}..."
111
127
  env['UISPEC_EXIT_ON_FINISH'] = self.exit_on_finish? ? 'YES' : 'NO'
112
128
  driver = driver_class.new(self)
data/uispecrunner.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{uispecrunner}
8
- s.version = "0.4.4"
8
+ s.version = "0.4.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Blake Watters"]
12
- s.date = %q{2011-04-19}
12
+ s.date = %q{2011-04-20}
13
13
  s.default_executable = %q{uispec}
14
14
  s.description = %q{Provides a simple Ruby interface for running UISpec iPhone tests}
15
15
  s.email = %q{blake@twotoasters.com}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uispecrunner
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 4
10
- version: 0.4.4
9
+ - 5
10
+ version: 0.4.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Blake Watters
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-19 00:00:00 -04:00
18
+ date: 2011-04-20 00:00:00 -04:00
19
19
  default_executable: uispec
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency