testautoi 0.9.145 → 0.9.146
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/bin/testautoi +14 -0
- data/lib/calabash-cucumber/version.rb +2 -2
- data/testautoi.gemspecx +2 -1
- metadata +18 -2
data/bin/testautoi
CHANGED
|
@@ -501,6 +501,13 @@ def simulator_path
|
|
|
501
501
|
end
|
|
502
502
|
|
|
503
503
|
def launch_app(app_url)
|
|
504
|
+
File.open("#{Dir.tmpdir}/testautoi.lock", 'w') { |f|
|
|
505
|
+
f.flock(File::LOCK_EX)
|
|
506
|
+
launch_app_unsafe(app_url)
|
|
507
|
+
}
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
def launch_app_unsafe(app_url)
|
|
504
511
|
udid = @settings["device_udid"].to_s
|
|
505
512
|
udids = Device.detect
|
|
506
513
|
raise "No device is connected" if udids.length <= 0
|
|
@@ -518,6 +525,13 @@ def launch_app(app_url)
|
|
|
518
525
|
end
|
|
519
526
|
|
|
520
527
|
def get_device_ip
|
|
528
|
+
File.open("#{Dir.tmpdir}/testautoi.lock", 'w') { |f|
|
|
529
|
+
f.flock(File::LOCK_EX)
|
|
530
|
+
get_device_ip_unsafe
|
|
531
|
+
}
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
def get_device_ip_unsafe
|
|
521
535
|
app_url = app_bundle_url_schemes(app_bundle_path)
|
|
522
536
|
udid = @settings["device_udid"].to_s
|
|
523
537
|
udids = Device.detect
|
data/testautoi.gemspecx
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: testautoi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.146
|
|
5
5
|
prerelease:
|
|
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: 2013-
|
|
12
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cucumber
|
|
@@ -219,6 +219,22 @@ dependencies:
|
|
|
219
219
|
- - ! '>='
|
|
220
220
|
- !ruby/object:Gem::Version
|
|
221
221
|
version: '0'
|
|
222
|
+
- !ruby/object:Gem::Dependency
|
|
223
|
+
name: rubyzip
|
|
224
|
+
requirement: !ruby/object:Gem::Requirement
|
|
225
|
+
none: false
|
|
226
|
+
requirements:
|
|
227
|
+
- - ! '>='
|
|
228
|
+
- !ruby/object:Gem::Version
|
|
229
|
+
version: '0'
|
|
230
|
+
type: :runtime
|
|
231
|
+
prerelease: false
|
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
233
|
+
none: false
|
|
234
|
+
requirements:
|
|
235
|
+
- - ! '>='
|
|
236
|
+
- !ruby/object:Gem::Version
|
|
237
|
+
version: '0'
|
|
222
238
|
description: Description
|
|
223
239
|
email:
|
|
224
240
|
executables:
|