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
eb142cb2
Commit
eb142cb2
authored
Feb 23, 2016
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Propagate version to prepare_command
parent
cf3514ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
pod_source_preparer.rb
lib/cocoapods/installer/pod_source_preparer.rb
+2
-0
pod_source_installer_spec.rb
spec/unit/installer/pod_source_installer_spec.rb
+5
-0
No files found.
lib/cocoapods/installer/pod_source_preparer.rb
View file @
eb142cb2
...
@@ -59,9 +59,11 @@ module Pod
...
@@ -59,9 +59,11 @@ module Pod
UI
.
section
(
' > Running prepare command'
,
''
,
1
)
do
UI
.
section
(
' > Running prepare command'
,
''
,
1
)
do
Dir
.
chdir
(
path
)
do
Dir
.
chdir
(
path
)
do
ENV
.
delete
(
'CDPATH'
)
ENV
.
delete
(
'CDPATH'
)
ENV
[
'COCOAPODS_VERSION'
]
=
Pod
::
VERSION
prepare_command
=
spec
.
prepare_command
.
strip_heredoc
.
chomp
prepare_command
=
spec
.
prepare_command
.
strip_heredoc
.
chomp
full_command
=
"
\n
set -e
\n
"
+
prepare_command
full_command
=
"
\n
set -e
\n
"
+
prepare_command
bash!
(
'-c'
,
full_command
)
bash!
(
'-c'
,
full_command
)
ENV
.
delete
(
'COCOAPODS_VERSION'
)
end
end
end
end
end
end
...
...
spec/unit/installer/pod_source_installer_spec.rb
View file @
eb142cb2
...
@@ -58,6 +58,11 @@ module Pod
...
@@ -58,6 +58,11 @@ module Pod
@spec
.
prepare_command
=
'cd Classes;ls Banana.h'
@spec
.
prepare_command
=
'cd Classes;ls Banana.h'
lambda
{
@installer
.
install!
}.
should
.
not
.
raise
lambda
{
@installer
.
install!
}.
should
.
not
.
raise
end
end
it
'sets the $COCOAPODS_VERSION environment variable'
do
@spec
.
prepare_command
=
"[
\"
$COCOAPODS_VERSION
\"
==
\"
#{
Pod
::
VERSION
}
\"
] || exit 1"
lambda
{
@installer
.
install!
}.
should
.
not
.
raise
end
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