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
e7386e9e
Commit
e7386e9e
authored
Oct 25, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RuboCop] Fix offenses
parent
d4f63d95
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
validator.rb
lib/cocoapods/validator.rb
+2
-2
validator_spec.rb
spec/unit/validator_spec.rb
+4
-4
No files found.
lib/cocoapods/validator.rb
View file @
e7386e9e
...
@@ -678,7 +678,7 @@ module Pod
...
@@ -678,7 +678,7 @@ module Pod
# returns its output (both STDOUT and STDERR).
# returns its output (both STDOUT and STDERR).
#
#
def
xcodebuild
def
xcodebuild
command
=
%
W
(clean build -workspace App.xcworkspace -scheme App)
command
=
%
w
(clean build -workspace App.xcworkspace -scheme App)
case
consumer
.
platform_name
case
consumer
.
platform_name
when
:ios
when
:ios
command
+=
%w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator)
command
+=
%w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator)
...
@@ -706,7 +706,7 @@ module Pod
...
@@ -706,7 +706,7 @@ module Pod
#
#
def
_xcodebuild
(
command
)
def
_xcodebuild
(
command
)
UI
.
puts
'xcodebuild '
<<
command
.
join
(
' '
)
if
config
.
verbose
UI
.
puts
'xcodebuild '
<<
command
.
join
(
' '
)
if
config
.
verbose
Executable
.
capture_command
(
'xcodebuild'
,
command
,
capture:
:merge
)
Executable
.
capture_command
(
'xcodebuild'
,
command
,
:capture
=>
:merge
)
end
end
#-------------------------------------------------------------------------#
#-------------------------------------------------------------------------#
...
...
spec/unit/validator_spec.rb
View file @
e7386e9e
...
@@ -406,10 +406,10 @@ module Pod
...
@@ -406,10 +406,10 @@ module Pod
Executable
.
stubs
(
:which
).
with
(
'git'
).
returns
(
git
)
Executable
.
stubs
(
:which
).
with
(
'git'
).
returns
(
git
)
Executable
.
expects
(
:which
).
with
(
'xcodebuild'
).
times
(
4
).
returns
(
'/usr/bin/xcodebuild'
)
Executable
.
expects
(
:which
).
with
(
'xcodebuild'
).
times
(
4
).
returns
(
'/usr/bin/xcodebuild'
)
command
=
%w(clean build -workspace App.xcworkspace -scheme App)
command
=
%w(clean build -workspace App.xcworkspace -scheme App)
Executable
.
expects
(
:capture_command
).
with
(
'xcodebuild'
,
command
,
capture:
:merge
).
once
.
returns
([
''
,
stub
(
:success?
=>
true
)])
Executable
.
expects
(
:capture_command
).
with
(
'xcodebuild'
,
command
,
:capture
=>
:merge
).
once
.
returns
([
''
,
stub
(
:success?
=>
true
)])
Executable
.
expects
(
:capture_command
).
with
(
'xcodebuild'
,
command
+
%w(CODE_SIGN_IDENTITY=- -sdk appletvsimulator)
,
capture:
:merge
).
once
.
returns
([
''
,
stub
(
:success?
=>
true
)])
Executable
.
expects
(
:capture_command
).
with
(
'xcodebuild'
,
command
+
%w(CODE_SIGN_IDENTITY=- -sdk appletvsimulator)
,
:capture
=>
:merge
).
once
.
returns
([
''
,
stub
(
:success?
=>
true
)])
Executable
.
expects
(
:capture_command
).
with
(
'xcodebuild'
,
command
+
%w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator)
,
capture:
:merge
).
once
.
returns
([
''
,
stub
(
:success?
=>
true
)])
Executable
.
expects
(
:capture_command
).
with
(
'xcodebuild'
,
command
+
%w(CODE_SIGN_IDENTITY=- -sdk iphonesimulator)
,
:capture
=>
:merge
).
once
.
returns
([
''
,
stub
(
:success?
=>
true
)])
Executable
.
expects
(
:capture_command
).
with
(
'xcodebuild'
,
command
+
%w(CODE_SIGN_IDENTITY=- -sdk watchsimulator)
,
capture:
:merge
).
once
.
returns
([
''
,
stub
(
:success?
=>
true
)])
Executable
.
expects
(
:capture_command
).
with
(
'xcodebuild'
,
command
+
%w(CODE_SIGN_IDENTITY=- -sdk watchsimulator)
,
:capture
=>
:merge
).
once
.
returns
([
''
,
stub
(
:success?
=>
true
)])
validator
.
validate
validator
.
validate
end
end
...
...
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