Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
7ea23c41
Commit
7ea23c41
authored
Dec 08, 2016
by
Dimitris Koutsogiorgas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`pod repo push` now accepts the `--swift-version` argument.
parent
83845ec0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
CHANGELOG.md
CHANGELOG.md
+4
-0
push.rb
lib/cocoapods/command/repo/push.rb
+4
-0
No files found.
CHANGELOG.md
View file @
7ea23c41
...
@@ -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
)
...
...
lib/cocoapods/command/repo/push.rb
View file @
7ea23c41
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment