Skip to content

Commit

Permalink
Merge pull request #260 from Ashton-W/guides/dsl-options
Browse files Browse the repository at this point in the history
Improve documentation for DSL attribute hash keys [RFC] [Guides]
  • Loading branch information
orta committed Aug 25, 2015
2 parents ca6db91 + d1d8ed8 commit 32917a3
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions lib/cocoapods-core/specification/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,14 @@ module DSL
# LICENSE
# }
#
# @param [String, Hash{Symbol=>String}] license
# The type of the license and the text of the grant that
# allows to use the library (or the relative path to the file
# that contains it).
# @param [String] license
# The type of the license
#
# @overload license=(license)
# @param [String, Hash{Symbol=>String}] license
# @option license [String] :type license type
# @option license [String] :file file containing full license text. Supports txt, md, and markdown
# @option license [String] :text full license text
#
root_attribute :license,
:container => Hash,
Expand Down Expand Up @@ -290,8 +294,36 @@ module DSL
# spec.source = { :http => 'http://dev.wechatapp.com/download/sdk/WeChat_SDK_iOS_en.zip',
# :sha1 => '7e21857fe11a511f472cfd7cfa2d979bd7ab7d96' }
#
# @param [Hash{Symbol=>String}] source
# The location from where the library should be retrieved.
#
# @overload source=(git)
# @param [Hash] git
# @option git [String] :git git source URI
# @option git [String] :tag version tag
# @option git [Bool] :submodules Whether to checkout submodules
# @option git [String] :branch branch name
# @option git [String] :commit commit hash
#
# @overload source=(svn)
# @param [Hash] svn
# @option svn [String] :svn svn source URI
# @option svn [String] :tag version tag
# @option svn [String] :folder folder
# @option svn [String] :revision revision
#
# @overload source=(hg)
# @param [Hash] hg
# @option hg [String] :hg mercurial source URI
# @option hg [String] :revision revision
#
# @overload source=(http)
# @param [Hash] http
# @option http [String] :http compressed source URL
# @option http [String] :type file type. Supports zip, tgz, bz2, txz and tar
# @option http [String] :sha1 SHA hash. Supports SHA1 and SHA256
#
# @overload source=(path)
# @param [Hash] path
# @option path [String] :path local source path
#
root_attribute :source,
:container => Hash,
Expand Down

0 comments on commit 32917a3

Please sign in to comment.