`pod repo push` now accepts the `--swift-version` argument.

parent 83845ec0
...@@ -8,6 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -8,6 +8,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements ##### Enhancements
* `pod repo push` now accepts the `--swift-version` argument.
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6217](https://github.com/CocoaPods/CocoaPods/issues/6217)
* Output Swift targets when multiple versions of Swift are detected. * Output Swift targets when multiple versions of Swift are detected.
[Justin Martin](https://github.com/justinseanmartin) & [Dimitris Koutsogiorgas](https://github.com/dnkoutso) [Justin Martin](https://github.com/justinseanmartin) & [Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#6191](https://github.com/CocoaPods/CocoaPods/issues/6191) [#6191](https://github.com/CocoaPods/CocoaPods/issues/6191)
......
...@@ -32,6 +32,8 @@ module Pod ...@@ -32,6 +32,8 @@ module Pod
['--commit-message="Fix bug in pod"', 'Add custom commit message. ' \ ['--commit-message="Fix bug in pod"', 'Add custom commit message. ' \
'Opens default editor if no commit message is specified.'], 'Opens default editor if no commit message is specified.'],
['--use-json', 'Push JSON spec to repo'], ['--use-json', 'Push JSON spec to repo'],
['--swift-version=VERSION', 'The SWIFT_VERSION that should be used when linting the spec. ' \
'This takes precedence over a .swift-version file.'],
].concat(super) ].concat(super)
end end
...@@ -47,6 +49,7 @@ module Pod ...@@ -47,6 +49,7 @@ module Pod
@message = argv.option('commit-message') @message = argv.option('commit-message')
@commit_message = argv.flag?('commit-message', false) @commit_message = argv.flag?('commit-message', false)
@use_json = argv.flag?('use-json') @use_json = argv.flag?('use-json')
@swift_version = argv.option('swift-version', nil)
super super
end end
...@@ -123,6 +126,7 @@ module Pod ...@@ -123,6 +126,7 @@ module Pod
validator.allow_warnings = @allow_warnings validator.allow_warnings = @allow_warnings
validator.use_frameworks = @use_frameworks validator.use_frameworks = @use_frameworks
validator.ignore_public_only_results = @private validator.ignore_public_only_results = @private
validator.swift_version = @swift_version
begin begin
validator.validate validator.validate
rescue => e rescue => e
......
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