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
9a4e304c
Commit
9a4e304c
authored
Mar 29, 2014
by
Marc Boquet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test and documentation for issue #1694
parent
e44da0de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
CHANGELOG.md
CHANGELOG.md
+9
-0
pod_source_installer.rb
lib/cocoapods/installer/pod_source_installer.rb
+4
-0
pod_source_installer_spec.rb
spec/unit/installer/pod_source_installer_spec.rb
+7
-0
No files found.
CHANGELOG.md
View file @
9a4e304c
...
...
@@ -2,6 +2,15 @@
To install or update CocoaPods see this
[
guide
](
http://docs.cocoapods.org/guides/installing_cocoapods.html
)
.
## Master
[
CocoaPods
](
https://github.com/jverkoey/CocoaPods/compare/0.30.0...master
)
###### Enhancements
*
Unset the
`CDPATH`
env variable before shelling-out on
`prepare_command`
[
Marc Boquet
](
https://github.com/apalancat
)
[
#1943
](
https://github.com/CocoaPods/CocoaPods/pull/1943
)
## 0.30.0
[
CocoaPods
](
https://github.com/jverkoey/CocoaPods/compare/0.29.0...0.30.0
)
...
...
lib/cocoapods/installer/pod_source_installer.rb
View file @
9a4e304c
...
...
@@ -114,6 +114,10 @@ module Pod
# Runs the prepare command bash script of the spec.
#
# @note Unsets the `CDPATH` env variable before running the
# shell script to avoid issues with relative paths
# (issue #1694).
#
# @return [void]
#
def
run_prepare_command
...
...
spec/unit/installer/pod_source_installer_spec.rb
View file @
9a4e304c
...
...
@@ -83,6 +83,13 @@ module Pod
@installer
.
install!
end
.
message
.
should
.
match
/command not found/
end
it
"unsets $CDPATH environment variable"
do
ENV
[
'CDPATH'
]
=
"BogusPath"
@spec
.
prepare_command
=
"cd Classes;ls Banana.h"
lambda
{
@installer
.
install!
}.
should
.
not
.
raise
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