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
793155cb
Commit
793155cb
authored
Jul 29, 2016
by
Samuel Giddins
Committed by
GitHub
Jul 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5698 from robtimp/issue-5438
Fix #5438 - Make comments more clear
parents
a2be2d30
e08bb07d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
init.rb
lib/cocoapods/command/init.rb
+5
-5
init_spec.rb
spec/functional/command/init_spec.rb
+3
-3
No files found.
lib/cocoapods/command/init.rb
View file @
793155cb
...
@@ -56,7 +56,7 @@ module Pod
...
@@ -56,7 +56,7 @@ module Pod
podfile
=
''
podfile
=
''
podfile
<<
"project '
#{
@project_path
}
'
\n\n
"
if
@project_path
podfile
<<
"project '
#{
@project_path
}
'
\n\n
"
if
@project_path
podfile
<<
<<-
PLATFORM
.
strip_heredoc
podfile
<<
<<-
PLATFORM
.
strip_heredoc
# Uncomment th
is
line to define a global platform for your project
# Uncomment th
e next
line to define a global platform for your project
# platform :ios, '9.0'
# platform :ios, '9.0'
PLATFORM
PLATFORM
...
@@ -76,7 +76,7 @@ module Pod
...
@@ -76,7 +76,7 @@ module Pod
end
end
# @param [[Xcodeproj::PBXTarget]] targets
# @param [[Xcodeproj::PBXTarget]] targets
# An array which always has a target as it
'
s first item
# An array which always has a target as its first item
# and may optionally contain related test targets
# and may optionally contain related test targets
#
#
# @return [String] the text for the target module
# @return [String] the text for the target module
...
@@ -86,13 +86,13 @@ module Pod
...
@@ -86,13 +86,13 @@ module Pod
target_module
<<
if
app
.
resolved_build_setting
(
'SWIFT_OPTIMIZATION_LEVEL'
).
values
.
any?
target_module
<<
if
app
.
resolved_build_setting
(
'SWIFT_OPTIMIZATION_LEVEL'
).
values
.
any?
<<-
RUBY
<<-
RUBY
# Comment th
is
line if you're not using Swift and don't want to use dynamic frameworks
# Comment th
e next
line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
use_frameworks!
RUBY
RUBY
else
else
<<-
RUBY
<<-
RUBY
# Uncomment th
is
line if you're using Swift or would like to use dynamic frameworks
# Uncomment th
e next
line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# use_frameworks!
RUBY
RUBY
...
@@ -111,7 +111,7 @@ module Pod
...
@@ -111,7 +111,7 @@ module Pod
end
end
# @param [[Xcodeproj::PBXTarget]] targets
# @param [[Xcodeproj::PBXTarget]] targets
# An array which always has a target as it
'
s first item
# An array which always has a target as its first item
# and may optionally contain a second target as its test target
# and may optionally contain a second target as its test target
#
#
# @return [String] the text for the target module
# @return [String] the text for the target module
...
...
spec/functional/command/init_spec.rb
View file @
793155cb
...
@@ -98,11 +98,11 @@ module Pod
...
@@ -98,11 +98,11 @@ module Pod
run_command
(
'init'
)
run_command
(
'init'
)
expected_podfile
=
<<-
RUBY
.
strip_heredoc
expected_podfile
=
<<-
RUBY
.
strip_heredoc
# Uncomment th
is
line to define a global platform for your project
# Uncomment th
e next
line to define a global platform for your project
# platform :ios, '9.0'
# platform :ios, '9.0'
target 'App' do
target 'App' do
# Uncomment th
is
line if you're using Swift or would like to use dynamic frameworks
# Uncomment th
e next
line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# use_frameworks!
# Pods for App
# Pods for App
...
@@ -120,7 +120,7 @@ module Pod
...
@@ -120,7 +120,7 @@ module Pod
end
end
target 'Swifty App' do
target 'Swifty App' do
# Comment th
is
line if you're not using Swift and don't want to use dynamic frameworks
# Comment th
e next
line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
use_frameworks!
# Pods for Swifty App
# Pods for Swifty App
...
...
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