calabash-android 0.7.3 → 0.7.4.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/calabash-android-build.rb +1 -2
- data/bin/calabash-android-run.rb +1 -1
- data/lib/calabash-android/dependencies.rb +5 -0
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/operations.rb +1 -1
- data/lib/calabash-android/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa0cfe63104c21ad765b7c31c5373ef87d1f9d1f
|
4
|
+
data.tar.gz: ffe297e230feabd12b36a6370256142ce8ad3b2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 515a7148b5d315a2a9a6a2ae82c2cf46972c6ee0b316db48f8c5e0c537a579e3bd1a71b9f88d335af3ab3a0ad0de3ab9cf1248d096f6c9e3117117cd67b07884
|
7
|
+
data.tar.gz: 317d94877251e277060edff38deca49a17d6a727adc7848be6600793b70583ff57abe4ff1258746d90bd4135c6311b463db97d66e3a1d04cb74d739c0402387d
|
@@ -33,7 +33,6 @@ def calabash_build(app)
|
|
33
33
|
unsigned_test_apk = File.join(File.dirname(__FILE__), '..', 'lib/calabash-android/lib/TestServer.apk')
|
34
34
|
test_server_manifest = File.join(File.dirname(__FILE__), '..', 'lib', 'calabash-android', 'lib', 'AndroidManifest.xml')
|
35
35
|
|
36
|
-
android_platform = Env.android_platform_path
|
37
36
|
Dir.mktmpdir do |workspace_dir|
|
38
37
|
Dir.chdir(workspace_dir) do
|
39
38
|
FileUtils.cp(unsigned_test_apk, "TestServer.apk")
|
@@ -47,7 +46,7 @@ def calabash_build(app)
|
|
47
46
|
raise "Could not replace test package name in manifest"
|
48
47
|
end
|
49
48
|
|
50
|
-
unless system %Q{"#{Calabash::Android::Dependencies.aapt_path}" package -M AndroidManifest.xml -I "#{
|
49
|
+
unless system %Q{"#{Calabash::Android::Dependencies.aapt_path}" package -M AndroidManifest.xml -I "#{Calabash::Android::Dependencies.android_jar_path}" -F dummy.apk}
|
51
50
|
raise "Could not create dummy.apk"
|
52
51
|
end
|
53
52
|
|
data/bin/calabash-android-run.rb
CHANGED
@@ -28,7 +28,7 @@ def calabash_run(app_path = nil)
|
|
28
28
|
|
29
29
|
STDOUT.sync = true
|
30
30
|
arguments = ARGV - ["--no-build"]
|
31
|
-
cmd = "#{RbConfig.ruby} -S cucumber #{arguments.join(" ")} #{env}"
|
31
|
+
cmd = "\"#{RbConfig.ruby}\" -S cucumber #{arguments.join(" ")} #{env}"
|
32
32
|
log cmd
|
33
33
|
exit_code = system(cmd)
|
34
34
|
|
@@ -217,6 +217,11 @@ module Calabash
|
|
217
217
|
|
218
218
|
sorted_files = files.sort_by {|item| '%08s' % item.split('-').last}.reverse
|
219
219
|
|
220
|
+
if sorted_files.first.nil?
|
221
|
+
raise Environment::InvalidEnvironmentError,
|
222
|
+
"Could not find any platform directory in '#{File.join(android_sdk_location, 'platforms')}'"
|
223
|
+
end
|
224
|
+
|
220
225
|
File.join('platforms', File.basename(sorted_files.first))
|
221
226
|
end
|
222
227
|
|
Binary file
|
@@ -542,7 +542,7 @@ module Calabash module Android
|
|
542
542
|
f.write res
|
543
543
|
end
|
544
544
|
else
|
545
|
-
screenshot_cmd = "java -jar #{File.join(File.dirname(__FILE__), 'lib', 'screenshotTaker.jar')} #{serial} \"#{path}\""
|
545
|
+
screenshot_cmd = "java -jar \"#{File.join(File.dirname(__FILE__), 'lib', 'screenshotTaker.jar')}\" #{serial} \"#{path}\""
|
546
546
|
log screenshot_cmd
|
547
547
|
raise "Could not take screenshot" unless system(screenshot_cmd)
|
548
548
|
end
|
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.7.
|
4
|
+
version: 0.7.4.pre1
|
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: 2016-
|
11
|
+
date: 2016-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -274,6 +274,20 @@ dependencies:
|
|
274
274
|
- - ">="
|
275
275
|
- !ruby/object:Gem::Version
|
276
276
|
version: '0'
|
277
|
+
- !ruby/object:Gem::Dependency
|
278
|
+
name: listen
|
279
|
+
requirement: !ruby/object:Gem::Requirement
|
280
|
+
requirements:
|
281
|
+
- - '='
|
282
|
+
- !ruby/object:Gem::Version
|
283
|
+
version: 3.0.6
|
284
|
+
type: :development
|
285
|
+
prerelease: false
|
286
|
+
version_requirements: !ruby/object:Gem::Requirement
|
287
|
+
requirements:
|
288
|
+
- - '='
|
289
|
+
- !ruby/object:Gem::Version
|
290
|
+
version: 3.0.6
|
277
291
|
- !ruby/object:Gem::Dependency
|
278
292
|
name: growl
|
279
293
|
requirement: !ruby/object:Gem::Requirement
|
@@ -389,9 +403,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
389
403
|
version: '0'
|
390
404
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
391
405
|
requirements:
|
392
|
-
- - "
|
406
|
+
- - ">"
|
393
407
|
- !ruby/object:Gem::Version
|
394
|
-
version:
|
408
|
+
version: 1.3.1
|
395
409
|
requirements: []
|
396
410
|
rubyforge_project:
|
397
411
|
rubygems_version: 2.4.5.1
|