calabash-android 0.3.0.pre4 → 0.3.0.pre5

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,7 @@ def calabash_build(app)
4
4
 
5
5
  test_server_file_name = test_server_path(app)
6
6
  unsigned_test_apk = File.join(File.dirname(__FILE__), '..', 'lib/calabash-android/lib/TestServer.apk')
7
- android_platform = Dir["#{ENV["ANDROID_HOME"]}/platforms/android-*"].last
8
-
7
+ android_platform = Dir["#{ENV["ANDROID_HOME"].gsub("\\", "/")}/platforms/android-*"].last
9
8
  Dir.mktmpdir do |workspace_dir|
10
9
  Dir.chdir(workspace_dir) do
11
10
  FileUtils.cp(unsigned_test_apk, "TestServer.apk")
@@ -14,8 +14,13 @@ def calabash_run(app_path = nil)
14
14
 
15
15
  if app_path
16
16
  unless File.exist?(test_server_path(app_path))
17
- puts "No test server found for this combination of app and calabash version. Recreating test server."
18
- calabash_build(app_path)
17
+ if ARGV.include? "--no-build"
18
+ puts "No test server found for this combination of app and calabash version. Exiting!"
19
+ exit 1
20
+ else
21
+ puts "No test server found for this combination of app and calabash version. Recreating test server."
22
+ calabash_build(app_path)
23
+ end
19
24
  end
20
25
 
21
26
  test_server_path = test_server_path(app_path)
@@ -34,7 +39,7 @@ def calabash_run(app_path = nil)
34
39
  end
35
40
 
36
41
  STDOUT.sync = true
37
- arguments = ARGV - ["--google-maps-support"]
42
+ arguments = ARGV - ["--google-maps-support", "--no-build"]
38
43
  cmd = "cucumber #{arguments.join(" ")} #{env}"
39
44
  puts cmd
40
45
  exit_code = system(cmd)
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.3.0.pre4"
3
+ VERSION = "0.3.0.pre5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre4
4
+ version: 0.3.0.pre5
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-26 00:00:00.000000000 Z
12
+ date: 2012-09-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber