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
5699bf84
Commit
5699bf84
authored
Dec 15, 2013
by
Jesper84
Committed by
Fabio Pelosin
Dec 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command::Lib::Create] Show link to Making a CocoaPod guide
Closes #1644 Closes #1683
parent
f9fa8db6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
lib.rb
lib/cocoapods/command/lib.rb
+2
-0
lib_spec.rb
spec/functional/command/lib_spec.rb
+15
-3
No files found.
lib/cocoapods/command/lib.rb
View file @
5699bf84
...
...
@@ -44,6 +44,7 @@ module Pod
TEMPLATE_REPO
=
"https://github.com/CocoaPods/pod-template.git"
TEMPLATE_INFO_URL
=
"https://github.com/CocoaPods/pod-template"
CREATE_NEW_POD_INFO_URL
=
"http://guides.cocoapods.org/making/making-a-cocoapod"
# Clones the template from the remote in the working directory using
# the name of the Pod.
...
...
@@ -74,6 +75,7 @@ module Pod
#
def
print_info
UI
.
puts
"
\n
To learn more about the template see `
#{
TEMPLATE_INFO_URL
}
`."
UI
.
puts
"To learn more about creating a new pod, see `
#{
CREATE_NEW_POD_INFO_URL
}
`."
end
end
...
...
spec/functional/command/lib_spec.rb
View file @
5699bf84
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
require
'xcodeproj'
module
Pod
describe
Command
::
Lib
::
Create
do
it
"complains if wrong parameters"
do
...
...
@@ -30,5 +28,19 @@ module Pod
end
end
end
end
describe
Command
::
Lib
do
it
"should create a new dir for the newly created pod"
do
run_command
(
'lib'
,
'create'
,
'TestPod'
)
Dir
.
chdir
(
temporary_directory
)
do
Pathname
.
new
(
temporary_directory
+
'TestPod'
).
exist?
.
should
==
true
end
end
it
"should show link to new pod guide after creation"
do
output
=
run_command
(
'lib'
,
'create'
,
'TestPod'
)
output
.
should
.
include?
'http://guides.cocoapods.org/making/making-a-cocoapod'
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