File tree Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Expand file tree Collapse file tree 1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,8 @@ def main(args)
78
78
# Run the lib lint command in a thread.
79
79
pod_lint_status = 1
80
80
t = Thread . new do
81
- with_removed_social_media_url ( podspec_file ) do
82
- system ( *command )
83
- pod_lint_status = $?. exitstatus
84
- end
81
+ system ( *command )
82
+ pod_lint_status = $?. exitstatus
85
83
end
86
84
87
85
# Print every minute since linting can run for >10m without output.
@@ -174,21 +172,6 @@ def trace(*args)
174
172
STDERR . puts ( args . join ( ' ' ) )
175
173
end
176
174
177
- # Edits the given podspec file to remove the social_media_url, yields, then
178
- # restores the file to its original condition. Validating of the social URL
179
- # can be very flaky (see #3416). Remove it from spec to let the actual tests
180
- # pass.
181
- def with_removed_social_media_url ( spec )
182
- podspec_content = File . read ( spec )
183
- updated_podspec_content =
184
- podspec_content . gsub ( "s.social_media_url = " , "# s.social_media_url = " )
185
- write_file ( spec , updated_podspec_content )
186
- yield
187
-
188
- ensure
189
- write_file ( spec , podspec_content )
190
- end
191
-
192
175
# Writes the text in +contents+ to the file named by +filename+.
193
176
def write_file ( filename , contents )
194
177
File . open ( filename , "w" ) do |file |
You can’t perform that action at this time.
0 commit comments