Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
22c0c1b1
Commit
22c0c1b1
authored
Jun 11, 2016
by
Boris Bügling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `require` instead of `autoload` for fourflusher
Fixes #5445
parent
877249a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
validator.rb
lib/cocoapods/validator.rb
+1
-2
validator_spec.rb
spec/unit/validator_spec.rb
+2
-0
No files found.
lib/cocoapods/validator.rb
View file @
22c0c1b1
require
'active_support/core_ext/array'
require
'active_support/core_ext/string/inflections'
autoload
:Fourflusher
,
'fourflusher'
module
Pod
# Validates a Specification.
#
...
...
@@ -719,6 +717,7 @@ module Pod
# returns its output (both STDOUT and STDERR).
#
def
xcodebuild
require
'fourflusher'
command
=
%w(clean build -workspace App.xcworkspace -scheme App -configuration Release)
case
consumer
.
platform_name
when
:ios
...
...
spec/unit/validator_spec.rb
View file @
22c0c1b1
...
...
@@ -392,6 +392,7 @@ module Pod
end
it
'checks if xcodebuild returns a successful status code'
do
require
'fourflusher'
Fourflusher
::
SimControl
.
any_instance
.
stubs
(
:destination
).
returns
([
'-destination'
,
'id=XXX'
])
Validator
.
any_instance
.
unstub
(
:xcodebuild
)
validator
=
Validator
.
new
(
podspec_path
,
config
.
sources_manager
.
master
.
map
(
&
:url
))
...
...
@@ -411,6 +412,7 @@ module Pod
end
it
'runs xcodebuild with correct arguments for code signing'
do
require
'fourflusher'
Fourflusher
::
SimControl
.
any_instance
.
stubs
(
:destination
).
returns
([
'-destination'
,
'id=XXX'
])
Validator
.
any_instance
.
unstub
(
:xcodebuild
)
validator
=
Validator
.
new
(
podspec_path
,
config
.
sources_manager
.
master
.
map
(
&
:url
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment