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
c0b9c9f0
Commit
c0b9c9f0
authored
Mar 11, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command::Spec] Update a bit the new spec template.
parent
1d276368
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
28 deletions
+6
-28
spec.rb
lib/cocoapods/command/spec.rb
+6
-28
No files found.
lib/cocoapods/command/spec.rb
View file @
c0b9c9f0
...
...
@@ -197,7 +197,7 @@ module Pod
self
.
arguments
=
'[ NAME ]'
def
self
.
options
[[
"--show-all"
,
"Pick which spec to edit from all ava
li
able versions of the given podspec"
]].
concat
(
super
)
[[
"--show-all"
,
"Pick which spec to edit from all ava
il
able versions of the given podspec"
]].
concat
(
super
)
end
def
initialize
(
argv
)
...
...
@@ -450,11 +450,9 @@ module Pod
return
<<-
SPEC
#
# Be sure to run `pod spec lint
#{
data
[
:name
]
}
.podspec' to ensure this is a
# valid spec.
# valid spec
and remove all comments before submitting the spec
.
#
# Remove all comments before submitting the spec. Optional attributes are commented.
#
# For details see: https://github.com/CocoaPods/CocoaPods/wiki/The-podspec-format
# To learn more about the attributes see http://docs.cocoapods.org/specification.html
#
Pod::Spec.new do |s|
s.name = "
#{
data
[
:name
]
}
"
...
...
@@ -467,30 +465,16 @@ Pod::Spec.new do |s|
# * Don't worry about the indent, we strip it!
# DESC
s.homepage = "
#{
data
[
:homepage
]
}
"
# s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
# Specify the license type. CocoaPods detects automatically the license file if it is named
# 'LICENCE*.*' or 'LICENSE*.*', however if the name is different, specify it.
s.license = 'MIT (example)'
# s.license = { :type => 'MIT (example)', :file => 'FILE_LICENSE' }
#
# Only if no dedicated file is available include the full text of the license.
#
# s.license = {
# :type => 'MIT (example)',
# :text => <<-LICENSE
# Copyright (C) <year> <copyright holders>
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# ...
# LICENSE
# }
# Specify the authors of the library, with email addresses. You can often find
# the email addresses of the authors by using the SCM log. E.g. $ git log
#
s.author = { "
#{
data
[
:author_name
]
}
" => "
#{
data
[
:author_email
]
}
" }
# s.authors = { "
#{
data
[
:author_name
]
}
" => "
#{
data
[
:author_email
]
}
", "other author" => "and email address" }
#
# If absolutely no email addresses are available, then you can use this form instead.
...
...
@@ -500,14 +484,12 @@ Pod::Spec.new do |s|
# Specify the location from where the source should be retrieved.
#
s.source = { :git => "
#{
data
[
:source_url
]
}
",
#{
data
[
:ref_type
]
}
=> "
#{
data
[
:ref
]
}
" }
# s.source = { :svn => 'http://EXAMPLE/
#{
data
[
:name
]
}
/tags/1.0.0' }
# s.source = { :hg => 'http://EXAMPLE/
#{
data
[
:name
]
}
', :revision => '1.0.0' }
# If this Pod runs only on iOS or OS X, then specify the platform and
# the deployment target.
#
# s.platform = :ios, '5.0'
# s.platform = :ios
# ――― MULTI-PLATFORM VALUES ――――――――――――――――――――――――――――――――――――――――――――――――― #
...
...
@@ -521,10 +503,6 @@ Pod::Spec.new do |s|
# added to the Pods project. If the pattern is a directory then the
# path will automatically have '*.{h,m,mm,c,cpp}' appended.
#
# Alternatively, you can use the FileList class for even more control
# over the selected files.
# (See http://rake.rubyforge.org/classes/Rake/FileList.html.)
#
s.source_files = 'Classes', 'Classes/**/*.{h,m}'
# A list of file patterns which select the header files that should be
...
...
@@ -567,7 +545,7 @@ Pod::Spec.new do |s|
# If this Pod uses ARC, specify it like so.
#
#
s.requires_arc = true
s.requires_arc = true
# If you need to specify any other build settings, add them to the
# xcconfig hash.
...
...
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