run_loop 2.1.5 → 2.1.6
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.
- checksums.yaml +4 -4
- data/lib/run_loop.rb +0 -1
- data/lib/run_loop/core.rb +18 -6
- data/lib/run_loop/dnssd.rb +25 -2
- data/lib/run_loop/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff141b60144498a30b21eb09fa12ac5a6c8e95fd
|
4
|
+
data.tar.gz: 8f8f501c79a466e8aefae117ead31fa5fc1b0d38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2654a32fa02ca8e27746102748201934a2d27fc5a995fe58dd10e94b147e4688876fc07c6625b513742410224800e2848e5f394416db6be15385061ff7300a5
|
7
|
+
data.tar.gz: fa60c8ab92dfc6840f45bb242be4b2fec1e4d1394d2f89542e1e159a54c10f8b082d019724c83c26dd3d860ffb9a438faeb0db0d5f65c2defd0b09d73c0c6e99
|
data/lib/run_loop.rb
CHANGED
data/lib/run_loop/core.rb
CHANGED
@@ -539,6 +539,14 @@ Logfile: #{log_file}
|
|
539
539
|
|
540
540
|
templates = instruments.templates
|
541
541
|
|
542
|
+
if instruments.xcode.version_gte_8?
|
543
|
+
raise(RuntimeError, %Q[
|
544
|
+
|
545
|
+
There is no Automation template for this #{instruments.xcode} version.
|
546
|
+
|
547
|
+
])
|
548
|
+
end
|
549
|
+
|
542
550
|
# xcrun instruments -s templates
|
543
551
|
# Xcode >= 6 will return known, Apple defined tracetemplates as names
|
544
552
|
# e.g. Automation, Zombies, Allocations
|
@@ -560,12 +568,16 @@ Logfile: #{log_file}
|
|
560
568
|
return candidate.tr("\"", '').strip
|
561
569
|
end
|
562
570
|
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
571
|
+
raise(RuntimeError, %Q[
|
572
|
+
Expected instruments to report an Automation tracetemplate.
|
573
|
+
|
574
|
+
Please report this as bug: https://github.com/calabash/run_loop/issues
|
575
|
+
|
576
|
+
In the bug report, include the output of:
|
577
|
+
|
578
|
+
$ xcrun xcodebuild -version
|
579
|
+
$ xcrun instruments -s templates
|
580
|
+
])
|
569
581
|
end
|
570
582
|
|
571
583
|
# @deprecated 2.1.0
|
data/lib/run_loop/dnssd.rb
CHANGED
@@ -3,8 +3,16 @@ module RunLoop
|
|
3
3
|
# @!visibility private
|
4
4
|
# This class is a work in progress.
|
5
5
|
#
|
6
|
-
# At the moment, it is only useful for debugging the bonjour
|
7
|
-
#
|
6
|
+
# At the moment, it is only useful for debugging the bonjour server that is
|
7
|
+
# started by DeviceAgent.
|
8
|
+
#
|
9
|
+
# This class requires the dnssd gem, but dnssd cannot be a dependency of this
|
10
|
+
# gem because:
|
11
|
+
#
|
12
|
+
# 1. This gem must be useable on Linux and Windows. dnssd is a macOS only
|
13
|
+
# gem.
|
14
|
+
# 2. Adding a native extension works locally, but it requires whitelisting
|
15
|
+
# the run_loop gem on the Xamarin Test Cloud which is not practical.
|
8
16
|
class DNSSD
|
9
17
|
|
10
18
|
# @!visibility private
|
@@ -134,6 +142,21 @@ module RunLoop
|
|
134
142
|
end
|
135
143
|
|
136
144
|
def self.browse(type, timeout)
|
145
|
+
begin
|
146
|
+
require "dnssd"
|
147
|
+
rescue LoadError => _
|
148
|
+
raise %Q[
|
149
|
+
|
150
|
+
This class requires dnssd which cannot be a dependency of this gem.
|
151
|
+
|
152
|
+
See the comments at the top of this file:
|
153
|
+
|
154
|
+
#{File.expand_path(__FILE__)}
|
155
|
+
|
156
|
+
#{e}
|
157
|
+
|
158
|
+
]
|
159
|
+
end
|
137
160
|
domain = nil
|
138
161
|
flags = 0
|
139
162
|
interface = ::DNSSD::InterfaceAny
|
data/lib/run_loop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_loop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -120,20 +120,6 @@ dependencies:
|
|
120
120
|
- - "<"
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '1.0'
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: dnssd
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - '='
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '2.0'
|
130
|
-
type: :runtime
|
131
|
-
prerelease: false
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
requirements:
|
134
|
-
- - '='
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: '2.0'
|
137
123
|
- !ruby/object:Gem::Dependency
|
138
124
|
name: rspec_junit_formatter
|
139
125
|
requirement: !ruby/object:Gem::Requirement
|