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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b316a06cf985b491968df24cc5429e6855c5e737
4
- data.tar.gz: f6f68df19929b16d31b94513ab733d5ede50b756
3
+ metadata.gz: ff141b60144498a30b21eb09fa12ac5a6c8e95fd
4
+ data.tar.gz: 8f8f501c79a466e8aefae117ead31fa5fc1b0d38
5
5
  SHA512:
6
- metadata.gz: f5fc64bd3a6f4b489fd220c5c9b6c4038bcce9f0968ea79b387743c93457b9578dbf7aa30f0e4a82677c978f624267dce2cb4e15051cb678b6b83fb0b1156a02
7
- data.tar.gz: 256321052a99af4d86ba23482eeed0092ed6d61b46b3abbe1b85d58b8558ff9fbe6bbd5d68616281fc8a861dcb3e1e0cdcef65937f964cb43d0aa22ca5736799
6
+ metadata.gz: e2654a32fa02ca8e27746102748201934a2d27fc5a995fe58dd10e94b147e4688876fc07c6625b513742410224800e2848e5f394416db6be15385061ff7300a5
7
+ data.tar.gz: fa60c8ab92dfc6840f45bb242be4b2fec1e4d1394d2f89542e1e159a54c10f8b082d019724c83c26dd3d860ffb9a438faeb0db0d5f65c2defd0b09d73c0c6e99
@@ -48,7 +48,6 @@ require "run_loop/http/server"
48
48
  require "run_loop/http/request"
49
49
  require "run_loop/http/retriable_client"
50
50
  require "run_loop/physical_device/life_cycle"
51
- require "run_loop/dnssd"
52
51
 
53
52
  module RunLoop
54
53
 
@@ -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
- message = ['Expected instruments to report an Automation tracetemplate.',
564
- 'Please report this as bug: https://github.com/calabash/run_loop/issues',
565
- "In the bug report, include the output of:\n",
566
- '$ xcrun xcodebuild -version',
567
- "$ xcrun instruments -s templates\n"]
568
- raise message.join("\n")
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
@@ -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
- # server that is started by DeviceAgent.
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
@@ -1,5 +1,5 @@
1
1
  module RunLoop
2
- VERSION = "2.1.5"
2
+ VERSION = "2.1.6"
3
3
 
4
4
  # A model of a software release version that can be used to compare two versions.
5
5
  #
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.5
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-26 00:00:00.000000000 Z
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