Skip to content

Commit

Permalink
[Podspec DSL] HTTP may have flatten option.
Browse files Browse the repository at this point in the history
Fixes #193
  • Loading branch information
alloy committed Nov 1, 2014
1 parent 729c269 commit c9714b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
[CocoaPods#2696](https://github.com/CocoaPods/CocoaPods/issues/2696)
[CocoaPods#2625](https://github.com/CocoaPods/CocoaPods/issues/2625)

* Fixes an issue linting the `flatten` for http sources in a podspec.
[Eloy Durán](https://github.com/alloy)
[Core#193](https://github.com/CocoaPods/Core/issues/193)


## 0.34.4

Expand Down
8 changes: 4 additions & 4 deletions lib/cocoapods-core/specification/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,10 @@ module DSL
# The keys accepted by the hash of the source attribute.
#
SOURCE_KEYS = {
:git => [:tag, :branch, :commit, :submodules],
:svn => [:folder, :tag, :revision],
:hg => [:revision],
:http => [:type, :sha256, :sha1],
:git => [:tag, :branch, :commit, :submodules].freeze,
:svn => [:folder, :tag, :revision].freeze,
:hg => [:revision].freeze,
:http => [:flatten, :type, :sha256, :sha1].freeze,
:path => nil,
}.freeze

Expand Down

0 comments on commit c9714b9

Please sign in to comment.