run_loop 2.1.4 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b78530b9096de94687ede2b3747d0c767c32b369
4
- data.tar.gz: 146634e680bf39a1ddb834c5ccc0b48baf0878bc
3
+ metadata.gz: b316a06cf985b491968df24cc5429e6855c5e737
4
+ data.tar.gz: f6f68df19929b16d31b94513ab733d5ede50b756
5
5
  SHA512:
6
- metadata.gz: 3b7f41b533a82f4b9602a99f25671b2273d6da50bb7e69f4a2e0f169013d7d042af3b7bf081607c91276aff2c3da9473c6ab31062cbd047d1c482ad159e45b19
7
- data.tar.gz: 3d3ed52198cb8cf0c8dc274d384142f5d149c3c00a5b0219c4f49f58798c979b8898e5f5180d96f6bfef716b2229720c751488d042e25c7066d15cecdb155640
6
+ metadata.gz: f5fc64bd3a6f4b489fd220c5c9b6c4038bcce9f0968ea79b387743c93457b9578dbf7aa30f0e4a82677c978f624267dce2cb4e15051cb678b6b83fb0b1156a02
7
+ data.tar.gz: 256321052a99af4d86ba23482eeed0092ed6d61b46b3abbe1b85d58b8558ff9fbe6bbd5d68616281fc8a861dcb3e1e0cdcef65937f964cb43d0aa22ca5736799
@@ -74,6 +74,8 @@ but binary does not exist at that path.
74
74
  # Simulator cannot be running for this version.
75
75
  CoreSimulator.quit_simulator
76
76
 
77
+ CoreSimulator.wait_for_simulator_state(device, "Shutdown")
78
+
77
79
  # TODO: run-loop is responsible for detecting an outdated CBX-Runner
78
80
  # application and installing a new one. However, iOSDeviceManager
79
81
  # fails if simulator is already running.
@@ -113,7 +113,7 @@ module RunLoop
113
113
  interval = options.fetch(:interval, @interval)
114
114
  header = options.fetch(:header, HEADER)
115
115
 
116
- RunLoop.log_debug("HTTP: #{@server.endpoint + request.route} #{options}")
116
+ RunLoop.log_debug("HTTP: #{request_method} #{@server.endpoint + request.route} #{options}")
117
117
 
118
118
  start_time = Time.now
119
119
  last_error = nil
@@ -1,5 +1,5 @@
1
1
  module RunLoop
2
- VERSION = "2.1.4"
2
+ VERSION = "2.1.5"
3
3
 
4
4
  # A model of a software release version that can be used to compare two versions.
5
5
  #
@@ -425,18 +425,23 @@ Sending request to perform '#{gesture}' with:
425
425
 
426
426
  # @!visibility private
427
427
  def session_delete
428
- options = ping_options
429
- request = request("session")
430
- client = client(options)
431
- begin
432
- response = client.delete(request)
433
- body = expect_200_response(response)
434
- RunLoop.log_debug("CBX-Runner says, #{body}")
435
- body
436
- rescue => e
437
- RunLoop.log_debug("CBX-Runner session delete error: #{e}")
438
- nil
439
- end
428
+ # https://xamarin.atlassian.net/browse/TCFW-255
429
+ # httpclient is unable to send a valid DELETE
430
+ args = ["curl", "-X", "DELETE", %Q[#{url}#{versioned_route("session")}]]
431
+ run_shell_command(args)
432
+
433
+ # options = ping_options
434
+ # request = request("session")
435
+ # client = client(options)
436
+ # begin
437
+ # response = client.delete(request)
438
+ # body = expect_200_response(response)
439
+ # RunLoop.log_debug("CBX-Runner says, #{body}")
440
+ # body
441
+ # rescue => e
442
+ # RunLoop.log_debug("CBX-Runner session delete error: #{e}")
443
+ # nil
444
+ # end
440
445
  end
441
446
 
442
447
  # @!visibility private
@@ -541,7 +546,7 @@ Server replied with:
541
546
  ]
542
547
  else
543
548
  raise RunLoop::XCUITest::HTTPError,
544
- %Q[Expected JSON response with no error, but found
549
+ %Q[Expected JSON response with no error, but found
545
550
 
546
551
  #{body["error"]}
547
552
 
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
4
+ version: 2.1.5
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-21 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -100,20 +100,6 @@ dependencies:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '2.6'
103
- - !ruby/object:Gem::Dependency
104
- name: dnssd
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - '='
108
- - !ruby/object:Gem::Version
109
- version: '2.0'
110
- type: :runtime
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - '='
115
- - !ruby/object:Gem::Version
116
- version: '2.0'
117
103
  - !ruby/object:Gem::Dependency
118
104
  name: i18n
119
105
  requirement: !ruby/object:Gem::Requirement
@@ -134,6 +120,20 @@ dependencies:
134
120
  - - "<"
135
121
  - !ruby/object:Gem::Version
136
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
137
  - !ruby/object:Gem::Dependency
138
138
  name: rspec_junit_formatter
139
139
  requirement: !ruby/object:Gem::Requirement