calabash-android 0.2.0.pre3 → 0.2.0.pre4
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.
- data/CHANGES.txt +3 -0
- data/bin/calabash-android +1 -1
- data/bin/calabash-android-build.rb +5 -3
- data/bin/calabash-android-run.rb +8 -1
- data/lib/calabash-android/helpers.rb +4 -0
- data/lib/calabash-android/version.rb +2 -2
- metadata +3 -3
data/CHANGES.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
0.2.0.pre4:
|
2
|
+
It is no longer needed to do the separate build step.
|
3
|
+
If no test server is found calabash-android will now attempt build it.
|
1
4
|
0.2.0.pre3:
|
2
5
|
Reintroduced lib/calabash-android/management/app_installation.rb
|
3
6
|
to stay backwards compatible with generated skeletons.
|
data/bin/calabash-android
CHANGED
@@ -36,10 +36,12 @@ def calabash_build(app)
|
|
36
36
|
end
|
37
37
|
}
|
38
38
|
|
39
|
+
FileUtils.mkdir_p "test_servers" unless File.exist? "test_servers"
|
40
|
+
|
39
41
|
test_apk = File.join(@test_server_dir, "bin", "Test.apk")
|
40
|
-
test_server_file_name =
|
41
|
-
FileUtils.cp(test_apk,
|
42
|
-
puts "Done building the test server. Moved it to
|
42
|
+
test_server_file_name = test_server_path(app)
|
43
|
+
FileUtils.cp(test_apk, test_server_file_name)
|
44
|
+
puts "Done building the test server. Moved it to #{test_server_file_name}"
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
data/bin/calabash-android-run.rb
CHANGED
@@ -12,8 +12,15 @@ def calabash_run(app_path)
|
|
12
12
|
exit
|
13
13
|
end
|
14
14
|
|
15
|
+
|
16
|
+
unless File.exist?(test_server_path(app_path))
|
17
|
+
puts "No test server found for this combination of app and calabash version. Rebuilding test server."
|
18
|
+
calabash_build(app_path)
|
19
|
+
end
|
20
|
+
|
21
|
+
|
15
22
|
if app_path
|
16
|
-
test_server_path =
|
23
|
+
test_server_path = test_server_path(app_path)
|
17
24
|
env = "PACKAGE_NAME=#{package_name(app_path)} "\
|
18
25
|
"TEST_PACKAGE_NAME=#{package_name(test_server_path)} "\
|
19
26
|
"APP_PATH=#{app_path} "\
|
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:
|
4
|
+
hash: -4038335878
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 0
|
10
10
|
- pre
|
11
|
-
-
|
12
|
-
version: 0.2.0.
|
11
|
+
- 4
|
12
|
+
version: 0.2.0.pre4
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Jonas Maturana Larsen
|