calabash-android 0.4.10.pre4 → 0.4.10.pre5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 017f52b14925f58529882401113f92b0afc693fa
|
4
|
+
data.tar.gz: 9066c76aaf892a2943a2d6b74e2e74a3b6195330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19e6c4a8c15d4b751af388a461608ab78856e636070cf6bf26bb7ec1e006d8934429bde9fc292bc89908b7d28607e25e661279567c90bc3bf5f7321103cf1534
|
7
|
+
data.tar.gz: 1266df306d47f531dfb4e89008cfa151ea09db787bbe7b12049024524851cd5d3ce5fb158b2ff4e842fa3125de08a3727b233b5aa3105af316cb5099b4353114
|
data/lib/calabash-android/env.rb
CHANGED
@@ -37,7 +37,16 @@ class Env
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.android_home_path
|
40
|
-
ENV["ANDROID_HOME"]
|
40
|
+
return ENV["ANDROID_HOME"] if ENV["ANDROID_HOME"]
|
41
|
+
monodroid_config_file = File.expand_path("~/.config/xbuild/monodroid-config.xml")
|
42
|
+
if File.exists?(monodroid_config_file)
|
43
|
+
require 'rexml/document'
|
44
|
+
begin
|
45
|
+
return REXML::Document.new(IO.read(monodroid_config_file)).elements["//android-sdk"].attributes["path"]
|
46
|
+
rescue
|
47
|
+
end
|
48
|
+
end
|
49
|
+
nil
|
41
50
|
end
|
42
51
|
|
43
52
|
def self.android_platform_path
|
@@ -26,17 +26,10 @@ class JavaKeystore
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def system_with_stdout_on_success(cmd, *args)
|
29
|
-
|
30
|
-
|
31
|
-
out
|
32
|
-
|
33
|
-
log "Command: #{cmd}"
|
34
|
-
status = Open3::popen3(cmd) do |stdin, stdout, stderr, wait_thread|
|
35
|
-
out = stdout.read
|
36
|
-
err = stderr.read
|
37
|
-
wait_thread.value
|
38
|
-
end
|
39
|
-
if status == 0
|
29
|
+
cmd = "#{cmd} #{Escape.shell_command(args)}"
|
30
|
+
log cmd
|
31
|
+
out = `#{cmd}`
|
32
|
+
if $?.exitstatus == 0
|
40
33
|
out
|
41
34
|
else
|
42
35
|
nil
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calabash-android
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.10.
|
4
|
+
version: 0.4.10.pre5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Maturana Larsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|