run_loop 2.0.9 → 2.0.10.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/run_loop/environment.rb +19 -4
- data/lib/run_loop/fifo.rb +1 -1
- data/lib/run_loop/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d2bb26dc2c4256fc698902883a2c1ab14e3fc64
|
4
|
+
data.tar.gz: 1e52a50fa5717c9ad21afaaf51e4ae014b20ef27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e33dee1343def117171e6efc85d384400c9a67c9542cded949a856866c3411daaa053b435fc00031d14d04e7dcc0e89da223117ac863a7b17776973d5ce9069a
|
7
|
+
data.tar.gz: 93e99e9e49920d2cf47fbd8021f2468e1cc74b653268708a95ee648626959de854cd2edb7ee2fb01db6d39aadd04b1d0ab5f1eac97c6525b3d82247c29ad6b18
|
data/lib/run_loop/environment.rb
CHANGED
@@ -30,12 +30,22 @@ module RunLoop
|
|
30
30
|
|
31
31
|
# Returns the value of DEVICE_TARGET
|
32
32
|
def self.device_target
|
33
|
-
ENV["DEVICE_TARGET"]
|
33
|
+
value = ENV["DEVICE_TARGET"]
|
34
|
+
if value.nil? || value == ""
|
35
|
+
nil
|
36
|
+
else
|
37
|
+
value
|
38
|
+
end
|
34
39
|
end
|
35
40
|
|
36
41
|
# Returns the value of DEVICE_ENDPOINT
|
37
42
|
def self.device_endpoint
|
38
|
-
ENV["DEVICE_ENDPOINT"]
|
43
|
+
value = ENV["DEVICE_ENDPOINT"]
|
44
|
+
if value.nil? || value == ""
|
45
|
+
nil
|
46
|
+
else
|
47
|
+
value
|
48
|
+
end
|
39
49
|
end
|
40
50
|
|
41
51
|
# Returns the value of XCODEPROJ which can be used to specify an Xcode
|
@@ -47,7 +57,7 @@ module RunLoop
|
|
47
57
|
def self.xcodeproj
|
48
58
|
value = ENV["XCODEPROJ"]
|
49
59
|
if value.nil? || value == ""
|
50
|
-
|
60
|
+
nil
|
51
61
|
else
|
52
62
|
File.expand_path(value)
|
53
63
|
end
|
@@ -84,7 +94,12 @@ module RunLoop
|
|
84
94
|
# Returns the value of TRACE_TEMPLATE; the Instruments template to use
|
85
95
|
# during testing.
|
86
96
|
def self.trace_template
|
87
|
-
ENV['TRACE_TEMPLATE']
|
97
|
+
value = ENV['TRACE_TEMPLATE']
|
98
|
+
if value.nil? || value == ""
|
99
|
+
nil
|
100
|
+
else
|
101
|
+
File.expand_path(value)
|
102
|
+
end
|
88
103
|
end
|
89
104
|
|
90
105
|
# Returns the value of UIA_TIMEOUT. Use this control how long to wait
|
data/lib/run_loop/fifo.rb
CHANGED
@@ -22,7 +22,7 @@ module RunLoop
|
|
22
22
|
wrote = pipe_io.write_nonblock msg
|
23
23
|
bytes_written += wrote
|
24
24
|
msg = msg[wrote..-1]
|
25
|
-
rescue IO::WaitWritable, Errno::EINTR
|
25
|
+
rescue IO::WaitWritable, Errno::EINTR, Errno::EPIPE
|
26
26
|
timeout_left = timeout - (Time.now - begin_at)
|
27
27
|
raise WriteTimedOut if timeout_left <= 0
|
28
28
|
IO.select nil, [pipe_io], nil, timeout_left
|
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.0.
|
4
|
+
version: 2.0.10.pre1
|
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-03-
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -362,9 +362,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
362
362
|
version: '2.0'
|
363
363
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
364
364
|
requirements:
|
365
|
-
- - "
|
365
|
+
- - ">"
|
366
366
|
- !ruby/object:Gem::Version
|
367
|
-
version:
|
367
|
+
version: 1.3.1
|
368
368
|
requirements: []
|
369
369
|
rubyforge_project:
|
370
370
|
rubygems_version: 2.5.2
|