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
07257721
Commit
07257721
authored
Feb 24, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3181 from CocoaPods/developer-tools-path-contains-spaces
Support for spaces in full path to executables.
parents
c64bd68b
5b68d785
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
CHANGELOG.md
CHANGELOG.md
+4
-0
executable.rb
lib/cocoapods/executable.rb
+2
-1
executable_spec.rb
spec/unit/executable_spec.rb
+10
-0
No files found.
CHANGELOG.md
View file @
07257721
...
...
@@ -113,6 +113,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Kyle Fuller
](
https://github.com/kylef
)
[
#3134
](
https://github.com/CocoaPods/CocoaPods/issues/3134
)
*
Fixes an issue with spaces in the path to the user's developer tools.
[
Boris Bügling
](
https://github.com/neonichu
)
[
#3181
](
https://github.com/CocoaPods/CocoaPods/issues/3181
)
## 0.36.0.beta.2
...
...
lib/cocoapods/executable.rb
View file @
07257721
...
...
@@ -52,8 +52,9 @@ module Pod
raise
Informative
,
"Unable to locate the executable `
#{
executable
}
`"
if
bin
.
empty?
require
'open4'
require
'shellwords'
full_command
=
"
#{
bin
}
#{
command
}
"
full_command
=
"
#{
bin
.
shellescape
}
#{
command
}
"
if
Config
.
instance
.
verbose?
UI
.
message
(
"$
#{
full_command
}
"
)
...
...
spec/unit/executable_spec.rb
View file @
07257721
...
...
@@ -9,5 +9,15 @@ module Pod
end
.
should
.
raise
Informative
e
.
message
.
should
.
match
(
/false/
)
end
it
'should support spaces in the full path of the command'
do
cmd
=
'/Spa ces/are"/fun/false'
Executable
.
stubs
(
:`
).
returns
(
cmd
)
result
=
mock
result
.
stubs
(
:success?
).
returns
(
true
)
Open4
.
expects
(
:spawn
).
with
(
'/Spa\\ ces/are\\"/fun/false '
,
:stdout
=>
[],
:stderr
=>
[],
:status
=>
true
).
once
.
returns
(
result
)
Executable
.
execute_command
(
cmd
,
''
,
true
)
end
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