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
eab14a83
Commit
eab14a83
authored
Aug 15, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EmbedFrameworksScript] Double quote framework name
parent
56444414
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
embed_frameworks_script.rb
lib/cocoapods/generator/embed_frameworks_script.rb
+1
-1
embed_frameworks_script_spec.rb
spec/unit/generator/embed_frameworks_script_spec.rb
+7
-7
No files found.
lib/cocoapods/generator/embed_frameworks_script.rb
View file @
eab14a83
...
...
@@ -123,7 +123,7 @@ module Pod
unless
frameworks
.
empty?
script
<<
%(if [[ "$CONFIGURATION" == "#{config}" ]]; then\n)
frameworks
.
each
do
|
framework
|
script
<<
" install_framework '
#{
framework
}
'
\n
"
script
<<
%( install_framework "#{framework}"\n)
end
script
<<
"fi
\n
"
end
...
...
spec/unit/generator/embed_frameworks_script_spec.rb
View file @
eab14a83
...
...
@@ -8,17 +8,17 @@ module Pod
'Release'
=>
%w(CrashlyticsFramework.framework)
,
}
generator
=
Pod
::
Generator
::
EmbedFrameworksScript
.
new
(
frameworks
)
generator
.
send
(
:script
).
should
.
include
<<-
eos
.
strip_heredoc
generator
.
send
(
:script
).
should
.
include
<<-
SH
.
strip_heredoc
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_framework
'Pods/Loopback.framework'
install_framework
'Reveal.framework'
install_framework
"Pods/Loopback.framework"
install_framework
"Reveal.framework"
fi
eos
generator
.
send
(
:script
).
should
.
include
<<-
eos
.
strip_heredoc
SH
generator
.
send
(
:script
).
should
.
include
<<-
SH
.
strip_heredoc
if [[ "$CONFIGURATION" == "Release" ]]; then
install_framework
'CrashlyticsFramework.framework'
install_framework
"CrashlyticsFramework.framework"
fi
eos
SH
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