Commit c0b9c9f0 authored by Fabio Pelosin's avatar Fabio Pelosin

[Command::Spec] Update a bit the new spec template.

parent 1d276368
...@@ -197,7 +197,7 @@ module Pod ...@@ -197,7 +197,7 @@ module Pod
self.arguments = '[ NAME ]' self.arguments = '[ NAME ]'
def self.options def self.options
[["--show-all", "Pick which spec to edit from all avaliable versions of the given podspec"]].concat(super) [["--show-all", "Pick which spec to edit from all available versions of the given podspec"]].concat(super)
end end
def initialize(argv) def initialize(argv)
...@@ -450,11 +450,9 @@ module Pod ...@@ -450,11 +450,9 @@ module Pod
return <<-SPEC return <<-SPEC
# #
# Be sure to run `pod spec lint #{data[:name]}.podspec' to ensure this is a # 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. # To learn more about the attributes see http://docs.cocoapods.org/specification.html
#
# For details see: https://github.com/CocoaPods/CocoaPods/wiki/The-podspec-format
# #
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "#{data[:name]}" s.name = "#{data[:name]}"
...@@ -467,30 +465,16 @@ Pod::Spec.new do |s| ...@@ -467,30 +465,16 @@ Pod::Spec.new do |s|
# * Don't worry about the indent, we strip it! # * Don't worry about the indent, we strip it!
# DESC # DESC
s.homepage = "#{data[:homepage]}" 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 # 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. # 'LICENCE*.*' or 'LICENSE*.*', however if the name is different, specify it.
s.license = 'MIT (example)' s.license = 'MIT (example)'
# s.license = { :type => 'MIT (example)', :file => 'FILE_LICENSE' } # 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 # 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 # 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" } # 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. # If absolutely no email addresses are available, then you can use this form instead.
...@@ -500,14 +484,12 @@ Pod::Spec.new do |s| ...@@ -500,14 +484,12 @@ Pod::Spec.new do |s|
# Specify the location from where the source should be retrieved. # Specify the location from where the source should be retrieved.
# #
s.source = { :git => "#{data[:source_url]}", #{data[:ref_type]} => "#{data[:ref]}" } 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 # If this Pod runs only on iOS or OS X, then specify the platform and
# the deployment target. # the deployment target.
# #
# s.platform = :ios, '5.0' # s.platform = :ios, '5.0'
# s.platform = :ios
# ――― MULTI-PLATFORM VALUES ――――――――――――――――――――――――――――――――――――――――――――――――― # # ――― MULTI-PLATFORM VALUES ――――――――――――――――――――――――――――――――――――――――――――――――― #
...@@ -521,10 +503,6 @@ Pod::Spec.new do |s| ...@@ -521,10 +503,6 @@ Pod::Spec.new do |s|
# added to the Pods project. If the pattern is a directory then the # added to the Pods project. If the pattern is a directory then the
# path will automatically have '*.{h,m,mm,c,cpp}' appended. # 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}' s.source_files = 'Classes', 'Classes/**/*.{h,m}'
# A list of file patterns which select the header files that should be # A list of file patterns which select the header files that should be
...@@ -567,7 +545,7 @@ Pod::Spec.new do |s| ...@@ -567,7 +545,7 @@ Pod::Spec.new do |s|
# If this Pod uses ARC, specify it like so. # 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 # If you need to specify any other build settings, add them to the
# xcconfig hash. # xcconfig hash.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment