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
4b62ade1
Commit
4b62ade1
authored
Nov 03, 2015
by
Marcelo Fabri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Installer] Adding sandbox to PostInstallHooksContext
parent
35edc176
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-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.
lib/cocoapods/installer/post_install_hooks_context.rb
View file @
4b62ade1
...
...
@@ -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 @
4b62ade1
...
...
@@ -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