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
67d29d0b
Commit
67d29d0b
authored
Nov 03, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4487 from marcelofabri/post-install-hook-sandbox
[Installer] Adding sandbox to PostInstallHooksContext
parents
35edc176
9f04ea56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
CHANGELOG.md
CHANGELOG.md
+5
-0
post_install_hooks_context.rb
lib/cocoapods/installer/post_install_hooks_context.rb
+5
-0
post_install_hooks_context_spec.rb
spec/unit/installer/post_install_hooks_context_spec.rb
+1
-0
No files found.
CHANGELOG.md
View file @
67d29d0b
...
...
@@ -8,6 +8,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements
*
`Pod::Installer::PostInstallHooksContext`
now offers access to the
`sandbox`
object.
[
Marcelo Fabri
](
https://github.com/marcelofabri
)
[
#4487
](
https://github.com/CocoaPods/CocoaPods/pull/4487
)
*
Improve
`pod search`
performance while using _
`--full`
_ flag
[
Muhammed Yavuz Nuzumlalı
](
https://github.com/manuyavuz
)
[
cocoapods-search#8
](
https://github.com/CocoaPods/cocoapods-search/issues/8
)
...
...
lib/cocoapods/installer/post_install_hooks_context.rb
View file @
67d29d0b
...
...
@@ -12,6 +12,10 @@ module Pod
#
attr_accessor
:pods_project
# @return [Sandbox] The Sandbox for the project.
#
attr_accessor
:sandbox
# @return [Array<UmbrellaTargetDescription>] The list of
# the CocoaPods umbrella targets generated by the installer.
#
...
...
@@ -45,6 +49,7 @@ module Pod
result
=
new
result
.
sandbox_root
=
sandbox
.
root
.
to_s
result
.
pods_project
=
sandbox
.
project
result
.
sandbox
=
sandbox
result
.
umbrella_targets
=
umbrella_targets_descriptions
result
end
...
...
spec/unit/installer/post_install_hooks_context_spec.rb
View file @
67d29d0b
...
...
@@ -20,6 +20,7 @@ module Pod
result
.
class
.
should
==
Installer
::
PostInstallHooksContext
result
.
sandbox_root
.
should
==
'/path'
result
.
pods_project
.
should
==
pods_project
result
.
sandbox
.
should
==
sandbox
result
.
umbrella_targets
.
count
.
should
==
1
umbrella_target
=
result
.
umbrella_targets
.
first
umbrella_target
.
user_target_uuids
.
should
==
[
'UUID'
]
...
...
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