Commit 67d29d0b authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #4487 from marcelofabri/post-install-hook-sandbox

[Installer] Adding sandbox to PostInstallHooksContext
parents 35edc176 9f04ea56
......@@ -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)
......
......@@ -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
......
......@@ -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']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment