run_loop 1.5.2 → 1.5.3

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: 2277694b8f2dd62516bcc3107dc59e8d227e952b
4
- data.tar.gz: 77b5fa24065db03d3379d9e997251ca564ad9017
3
+ metadata.gz: 1a6a812fac74ce686b9501edae905826812cf6e1
4
+ data.tar.gz: e2dcad70da420dcacc3c438c737b6fb3b9483699
5
5
  SHA512:
6
- metadata.gz: 28529f12e82152e1b618a3ff6011db975d2ac84fb91668c64f95de840d69c8bddc09b94c4fe9e770b7cecd3b3cdaea418a154f6f8f13548231f3635b6f9346be
7
- data.tar.gz: 6ccce42c7d166a850ecb10e2c558cc1930c73f9da097f03f78d2a32e718e3c70b440761d847233de17a1ded3d1a314414789c6fc98408482d01027afd4e0709f
6
+ metadata.gz: 33a12720abdb976ce512c27d3df0cd57e6c13a5c957e6bbae8e7f7af39846c781cfa0f5608b9084ef408f0d5526914e7639deef0ace8319bef5fa11d47bf8449
7
+ data.tar.gz: ae2f20ae670f32d1171aef066c1c41c5c76b38b2b187058077ad6611c9ca53f6cbdb9feb61491c6d6ac9bacbac68011e422d411717fc23c50468721fd038ab41
data/lib/run_loop/core.rb CHANGED
@@ -224,10 +224,12 @@ module RunLoop
224
224
  sim_control ||= options[:sim_control] || RunLoop::SimControl.new
225
225
 
226
226
  if options[:xctools]
227
- RunLoop.deprecated('1.5.0', %q(
227
+ if RunLoop::Environment.debug?
228
+ RunLoop.deprecated('1.5.0', %q(
228
229
  RunLoop::XCTools has been replaced with RunLoop::Xcode.
229
230
  The :xctools key will be ignored. It has been replaced by the :xcode key.
230
231
  Please update your sources to pass an instance of RunLoop::Xcode))
232
+ end
231
233
  end
232
234
 
233
235
  xcode ||= options[:xcode] || sim_control.xcode
@@ -476,29 +478,34 @@ Logfile: #{log_file}
476
478
  #
477
479
  # For historical reasons, the most recent non-64b SDK should be used.
478
480
  #
479
- # @param [RunLoop::XCTools, RunLoop::XCode] xcode Used to detect the current xcode
481
+ # @param [RunLoop::XCTools, RunLoop::Xcode] xcode Used to detect the current xcode
480
482
  # version.
481
483
  def self.default_simulator(xcode=RunLoop::Xcode.new)
482
484
  if xcode.is_a?(RunLoop::XCTools)
483
- RunLoop.deprecated('1.5.0',
484
- %q(
485
+ if RunLoop::Environment.debug?
486
+ RunLoop.deprecated('1.5.0',
487
+ %q(
485
488
  RunLoop::XCTools has been replaced with RunLoop::Xcode.
486
489
  Please update your sources to pass an instance of RunLoop::Xcode))
490
+ end
491
+ ensured_xcode = RunLoop::Xcode.new
492
+ else
493
+ ensured_xcode = xcode
487
494
  end
488
495
 
489
- if xcode.version_gte_71?
496
+ if ensured_xcode.version_gte_71?
490
497
  'iPhone 6s (9.1)'
491
- elsif xcode.version_gte_7?
498
+ elsif ensured_xcode.version_gte_7?
492
499
  'iPhone 5s (9.0)'
493
- elsif xcode.version_gte_64?
500
+ elsif ensured_xcode.version_gte_64?
494
501
  'iPhone 5s (8.4 Simulator)'
495
- elsif xcode.version_gte_63?
502
+ elsif ensured_xcode.version_gte_63?
496
503
  'iPhone 5s (8.3 Simulator)'
497
- elsif xcode.version_gte_62?
504
+ elsif ensured_xcode.version_gte_62?
498
505
  'iPhone 5s (8.2 Simulator)'
499
- elsif xcode.version_gte_61?
506
+ elsif ensured_xcode.version_gte_61?
500
507
  'iPhone 5s (8.1 Simulator)'
501
- elsif xcode.version_gte_6?
508
+ elsif ensured_xcode.version_gte_6?
502
509
  'iPhone 5s (8.0 Simulator)'
503
510
  else
504
511
  'iPhone Retina (4-inch) - Simulator - iOS 7.1'
@@ -728,10 +735,12 @@ Please update your sources to pass an instance of RunLoop::Xcode))
728
735
 
729
736
  def self.default_tracetemplate(instruments_arg=RunLoop::Instruments.new)
730
737
  if instruments_arg.is_a?(RunLoop::XCTools)
731
- RunLoop.deprecated('1.5.0',
732
- %q(
738
+ if RunLoop::Environment.debug?
739
+ RunLoop.deprecated('1.5.0',
740
+ %q(
733
741
  RunLoop::XCTools has been replaced with RunLoop::Xcode.
734
742
  Please update your sources to pass an instance of RunLoop::Instruments))
743
+ end
735
744
  instruments = RunLoop::Instruments.new
736
745
  else
737
746
  instruments = instruments_arg
@@ -1,5 +1,5 @@
1
1
  module RunLoop
2
- VERSION = '1.5.2'
2
+ VERSION = '1.5.3'
3
3
 
4
4
  # A model of a software release version that can be used to compare two versions.
5
5
  #
@@ -28,7 +28,7 @@ module RunLoop
28
28
  #
29
29
  # @return [RunLoop::Version] 7.1
30
30
  def v71
31
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
31
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
32
32
  xcode.v71
33
33
  end
34
34
 
@@ -38,7 +38,7 @@ module RunLoop
38
38
  #
39
39
  # @return [RunLoop::Version] 7.0
40
40
  def v70
41
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
41
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
42
42
  xcode.v70
43
43
  end
44
44
 
@@ -48,7 +48,7 @@ module RunLoop
48
48
  #
49
49
  # @return [RunLoop::Version] 6.4
50
50
  def v64
51
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
51
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
52
52
  xcode.v64
53
53
  end
54
54
 
@@ -58,7 +58,7 @@ module RunLoop
58
58
  #
59
59
  # @return [RunLoop::Version] 6.3
60
60
  def v63
61
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
61
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
62
62
  xcode.v63
63
63
  end
64
64
 
@@ -68,7 +68,7 @@ module RunLoop
68
68
  #
69
69
  # @return [RunLoop::Version] 6.2
70
70
  def v62
71
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
71
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
72
72
  xcode.v62
73
73
  end
74
74
 
@@ -78,7 +78,7 @@ module RunLoop
78
78
  #
79
79
  # @return [RunLoop::Version] 6.1
80
80
  def v61
81
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
81
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
82
82
  xcode.v61
83
83
  end
84
84
 
@@ -88,7 +88,7 @@ module RunLoop
88
88
  #
89
89
  # @return [RunLoop::Version] 6.0
90
90
  def v60
91
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
91
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
92
92
  xcode.v60
93
93
  end
94
94
 
@@ -98,7 +98,7 @@ module RunLoop
98
98
  #
99
99
  # @return [RunLoop::Version] 5.1
100
100
  def v51
101
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
101
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
102
102
  xcode.v51
103
103
  end
104
104
 
@@ -108,7 +108,7 @@ module RunLoop
108
108
  #
109
109
  # @return [RunLoop::Version] 5.0
110
110
  def v50
111
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
111
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
112
112
  xcode.v50
113
113
  end
114
114
 
@@ -117,7 +117,7 @@ module RunLoop
117
117
  #
118
118
  # @return [Boolean] `true` if the current Xcode version is >= 6.4
119
119
  def xcode_version_gte_64?
120
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
120
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
121
121
  xcode.version_gte_64?
122
122
  end
123
123
 
@@ -126,7 +126,7 @@ module RunLoop
126
126
  #
127
127
  # @return [Boolean] `true` if the current Xcode version is >= 6.3
128
128
  def xcode_version_gte_63?
129
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
129
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
130
130
  xcode.version_gte_63?
131
131
  end
132
132
 
@@ -135,7 +135,7 @@ module RunLoop
135
135
  #
136
136
  # @return [Boolean] `true` if the current Xcode version is >= 6.2
137
137
  def xcode_version_gte_62?
138
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
138
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
139
139
  xcode.version_gte_62?
140
140
  end
141
141
 
@@ -144,7 +144,7 @@ module RunLoop
144
144
  #
145
145
  # @return [Boolean] `true` if the current Xcode version is >= 6.1
146
146
  def xcode_version_gte_61?
147
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
147
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
148
148
  xcode.version_gte_61?
149
149
  end
150
150
 
@@ -153,7 +153,7 @@ module RunLoop
153
153
  #
154
154
  # @return [Boolean] `true` if the current Xcode version is >= 6.0
155
155
  def xcode_version_gte_6?
156
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
156
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
157
157
  xcode.version_gte_6?
158
158
  end
159
159
 
@@ -162,7 +162,7 @@ module RunLoop
162
162
  #
163
163
  # @return [Boolean] `true` if the current Xcode version is >= 7.1
164
164
  def xcode_version_gte_71?
165
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
165
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
166
166
  xcode.version_gte_71?
167
167
  end
168
168
 
@@ -171,7 +171,7 @@ module RunLoop
171
171
  #
172
172
  # @return [Boolean] `true` if the current Xcode version is >= 7.0
173
173
  def xcode_version_gte_7?
174
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
174
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
175
175
  xcode.version_gte_7?
176
176
  end
177
177
 
@@ -180,7 +180,7 @@ module RunLoop
180
180
  #
181
181
  # @return [Boolean] `true` if the current Xcode version is >= 5.1
182
182
  def xcode_version_gte_51?
183
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
183
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
184
184
  xcode.version_gte_51?
185
185
  end
186
186
 
@@ -190,7 +190,7 @@ module RunLoop
190
190
  # @return [RunLoop::Version] The current version of Xcode as reported by
191
191
  # `xcrun xcodebuild -version`.
192
192
  def xcode_version
193
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
193
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
194
194
  xcode.version
195
195
  end
196
196
 
@@ -209,7 +209,7 @@ module RunLoop
209
209
  #
210
210
  # @return [String] path to current developer directory
211
211
  def xcode_developer_dir
212
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
212
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
213
213
  xcode.developer_dir
214
214
  end
215
215
 
@@ -219,7 +219,7 @@ module RunLoop
219
219
  # @note Relies on Xcode beta versions having and app bundle named Xcode-Beta.app
220
220
  # @return [Boolean] True if the Xcode version is beta.
221
221
  def xcode_is_beta?
222
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode')
222
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Xcode') if RunLoop::Environment.debug?
223
223
  xcode.beta?
224
224
  end
225
225
 
@@ -262,7 +262,7 @@ module RunLoop
262
262
  # instruments binary.
263
263
  # @raise [ArgumentError] if invalid `cmd` is passed
264
264
  def instruments(cmd=nil)
265
- RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Instruments')
265
+ RunLoop.deprecated('1.5.0', 'Replaced with RunLoop::Instruments') if RunLoop::Environment.debug?
266
266
  instruments = 'xcrun instruments'
267
267
  return instruments if cmd == nil
268
268
 
@@ -297,7 +297,7 @@ module RunLoop
297
297
  #
298
298
  # @return [Boolean] true if the version is >= 5.*
299
299
  def instruments_supports_hyphen_s?(version=instruments(:version))
300
- RunLoop.deprecated('1.5.0', 'Not replaced.')
300
+ RunLoop.deprecated('1.5.0', 'Not replaced.') if RunLoop::Environment.debug?
301
301
  @instruments_supports_hyphen_s ||= lambda {
302
302
  if version.is_a? String
303
303
  _version = RunLoop::Version.new(version)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: run_loop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow