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
d3416f10
Commit
d3416f10
authored
Jan 05, 2016
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PreInstallHooksContext] Ensure the `sandbox_root` attribute is set
parent
bc127ecf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
CHANGELOG.md
CHANGELOG.md
+3
-0
pre_install_hooks_context.rb
lib/cocoapods/installer/pre_install_hooks_context.rb
+1
-0
pre_install_hooks_context_spec.rb
spec/unit/installer/pre_install_hooks_context_spec.rb
+2
-2
No files found.
CHANGELOG.md
View file @
d3416f10
...
@@ -38,6 +38,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -38,6 +38,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
multiple root-level Xcode projects.
multiple root-level Xcode projects.
[
Samuel Giddins
](
https://github.com/segiddins
)
[
Samuel Giddins
](
https://github.com/segiddins
)
*
Ensure the
`sandbox_root`
attribute is set on the pre-install hooks context.
[
Samuel Giddins
](
https://github.com/segiddins
)
## 1.0.0.beta.1 (2015-12-30)
## 1.0.0.beta.1 (2015-12-30)
...
...
lib/cocoapods/installer/pre_install_hooks_context.rb
View file @
d3416f10
...
@@ -33,6 +33,7 @@ module Pod
...
@@ -33,6 +33,7 @@ module Pod
result
=
new
result
=
new
result
.
podfile
=
podfile
result
.
podfile
=
podfile
result
.
sandbox
=
sandbox
result
.
sandbox
=
sandbox
result
.
sandbox_root
=
sandbox
.
root
.
to_s
result
.
lockfile
=
lockfile
result
.
lockfile
=
lockfile
result
result
end
end
...
...
spec/unit/installer/pre_install_hooks_context_spec.rb
View file @
d3416f10
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
module
Pod
module
Pod
describe
Installer
::
PreInstallHooksContext
do
describe
Installer
::
PreInstallHooksContext
do
it
'offers a convenience method to be generated'
do
it
'offers a convenience method to be generated'
do
sandbox
=
stub
sandbox
=
stub
(
:root
=>
Pathname
(
'root'
))
podfile
=
stub
podfile
=
stub
lockfile
=
stub
lockfile
=
stub
result
=
Installer
::
PreInstallHooksContext
.
generate
(
sandbox
,
podfile
,
lockfile
)
result
=
Installer
::
PreInstallHooksContext
.
generate
(
sandbox
,
podfile
,
lockfile
)
result
.
class
.
should
==
Installer
::
PreInstallHooksContext
result
.
class
.
should
==
Installer
::
PreInstallHooksContext
result
.
sandbox
.
should
==
sandbox
result
.
sandbox
.
should
==
sandbox
result
.
sandbox_root
==
'root'
result
.
podfile
.
should
==
podfile
result
.
podfile
.
should
==
podfile
result
.
lockfile
.
should
==
lockfile
result
.
lockfile
.
should
==
lockfile
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