calabash-android 0.2.0.pre9 → 0.2.0.pre10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,8 @@
1
+ 0.2.0.pre10
2
+ Now accepts full app paths as well as paths with spaces.
3
+
1
4
  0.2.0.pre9:
2
- Fixing connection issue on Windows
5
+ Fixing connection issue on Windows.
3
6
 
4
7
  0.2.0.pre8:
5
8
  Adding target version to javac in order to work with Java 7.
@@ -21,7 +21,7 @@ def is_apk_file?(file_path)
21
21
  end
22
22
 
23
23
  def relative_to_full_path(file_path)
24
- File.expand_path(File.join(FileUtils.pwd, file_path))
24
+ File.expand_path(file_path)
25
25
  end
26
26
 
27
27
  if (ARGV.length == 0)
@@ -23,8 +23,8 @@ def calabash_run(app_path)
23
23
  test_server_path = test_server_path(app_path)
24
24
  env = "PACKAGE_NAME=#{package_name(app_path)} "\
25
25
  "TEST_PACKAGE_NAME=#{package_name(test_server_path)} "\
26
- "APP_PATH=#{app_path} "\
27
- "TEST_APP_PATH=#{test_server_path} "\
26
+ "APP_PATH='#{app_path}' "\
27
+ "TEST_APP_PATH='#{test_server_path}' "\
28
28
  "TEST_SERVER_PORT=34777"
29
29
  else
30
30
  env = ""
@@ -38,7 +38,7 @@ def api_level
38
38
  end
39
39
 
40
40
  def manifest(app)
41
- `java -jar #{File.dirname(__FILE__)}/lib/manifest_extractor.jar #{app}`
41
+ `java -jar "#{File.dirname(__FILE__)}/lib/manifest_extractor.jar" "#{app}"`
42
42
  end
43
43
 
44
44
  def checksum(file_path)
@@ -136,7 +136,7 @@ module Operations
136
136
  end
137
137
 
138
138
  def install_app(app_path)
139
- cmd = "#{adb_command} install #{app_path}"
139
+ cmd = "#{adb_command} install '#{app_path}'"
140
140
  log "Installing: #{app_path}"
141
141
  result = `#{cmd}`
142
142
  if result.include? "Success"
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.2.0.pre9"
4
- FRAMEWORK_VERSION = "0.2.0.pre9"
3
+ VERSION = "0.2.0.pre10"
4
+ FRAMEWORK_VERSION = "0.2.0.pre10"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- hash: -2975064380
4
+ hash: 869974521
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 0
10
10
  - pre
11
- - 9
12
- version: 0.2.0.pre9
11
+ - 10
12
+ version: 0.2.0.pre10
13
13
  platform: ruby
14
14
  authors:
15
15
  - Jonas Maturana Larsen
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-07-31 00:00:00 +02:00
20
+ date: 2012-08-01 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency