Skip to content

Commit

Permalink
Add depricate log
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0926 committed May 16, 2017
1 parent 4f353d3 commit 86cb580
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/LicensePlistCore/Entity/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public struct Config {
} ?? [:]
let githubs = value["github"].array?.map { $0.string }.flatMap { $0 } ?? []
let gitHubList = githubs.map { GitHub.load($0, renames: renames, mark: "", quotes: "") }.flatMap { $0 }
gitHubList.forEach {
Log.warning("\($0.name) is specified by the depricated format. It will be removed at Version 2." +
"See: https://github.com/mono0926/LicensePlist/blob/master/Tests/LicensePlistTests/Resources/license_plist.yml .")
}
let githubsVersion: [GitHub] = value["github"].array?.map {
guard let dictionary = $0.dictionary else {
return nil
Expand Down

0 comments on commit 86cb580

Please sign in to comment.