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
00102017
Commit
00102017
authored
Apr 28, 2016
by
Boris Bügling
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5214 from CocoaPods/fix-repo-push-help
Fix `pod repo push --help`
parents
4e188267
7d12ae7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
15 deletions
+20
-15
CHANGELOG.md
CHANGELOG.md
+4
-0
push.rb
lib/cocoapods/command/repo/push.rb
+1
-1
command_spec.rb
spec/unit/command_spec.rb
+15
-14
No files found.
CHANGELOG.md
View file @
00102017
...
@@ -15,6 +15,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -15,6 +15,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
##### Bug Fixes
*
Fix for
`pod repo push --help`
throwing an error.
[
Boris Bügling
](
https://github.com/neonichu
)
[
#5214
](
https://github.com/CocoaPods/CocoaPods/pull/5199
)
*
The warning for not having utf-8 set as the default encoding for a
*
The warning for not having utf-8 set as the default encoding for a
terminal now properly respects the
`--no-ansi`
argument.
terminal now properly respects the
`--no-ansi`
argument.
[
Joshua Kalpin
](
https://github.com/Kapin
)
[
Joshua Kalpin
](
https://github.com/Kapin
)
...
...
lib/cocoapods/command/repo/push.rb
View file @
00102017
...
@@ -38,7 +38,7 @@ module Pod
...
@@ -38,7 +38,7 @@ module Pod
@allow_warnings
=
argv
.
flag?
(
'allow-warnings'
)
@allow_warnings
=
argv
.
flag?
(
'allow-warnings'
)
@local_only
=
argv
.
flag?
(
'local-only'
)
@local_only
=
argv
.
flag?
(
'local-only'
)
@repo
=
argv
.
shift_argument
@repo
=
argv
.
shift_argument
@source
=
config
.
sources_manager
.
sources
([
@repo
]).
first
@source
=
config
.
sources_manager
.
sources
([
@repo
]).
first
unless
@repo
.
nil?
@source_urls
=
argv
.
option
(
'sources'
,
config
.
sources_manager
.
all
.
map
(
&
:url
).
join
(
','
)).
split
(
','
)
@source_urls
=
argv
.
option
(
'sources'
,
config
.
sources_manager
.
all
.
map
(
&
:url
).
join
(
','
)).
split
(
','
)
@podspec
=
argv
.
shift_argument
@podspec
=
argv
.
shift_argument
@use_frameworks
=
!
argv
.
flag?
(
'use-libraries'
)
@use_frameworks
=
!
argv
.
flag?
(
'use-libraries'
)
...
...
spec/unit/command_spec.rb
View file @
00102017
...
@@ -3,20 +3,21 @@ require File.expand_path('../../spec_helper', __FILE__)
...
@@ -3,20 +3,21 @@ require File.expand_path('../../spec_helper', __FILE__)
module
Pod
module
Pod
describe
Command
do
describe
Command
do
it
'returns the proper command class'
do
it
'returns the proper command class'
do
Command
.
parse
(
%w(install )
).
should
.
be
.
instance_of
Command
::
Install
Command
.
parse
(
%w(install )
).
should
.
be
.
instance_of
Command
::
Install
Command
.
parse
(
%w(list )
).
should
.
be
.
instance_of
Command
::
List
Command
.
parse
(
%w(list )
).
should
.
be
.
instance_of
Command
::
List
Command
.
parse
(
%w(outdated )
).
should
.
be
.
instance_of
Command
::
Outdated
Command
.
parse
(
%w(outdated )
).
should
.
be
.
instance_of
Command
::
Outdated
Command
.
parse
(
%w(repo )
).
should
.
be
.
instance_of
Command
::
Repo
::
List
Command
.
parse
(
%w(repo )
).
should
.
be
.
instance_of
Command
::
Repo
::
List
Command
.
parse
(
%w(repo add )
).
should
.
be
.
instance_of
Command
::
Repo
::
Add
Command
.
parse
(
%w(repo add )
).
should
.
be
.
instance_of
Command
::
Repo
::
Add
Command
.
parse
(
%w(repo lint )
).
should
.
be
.
instance_of
Command
::
Repo
::
Lint
Command
.
parse
(
%w(repo lint )
).
should
.
be
.
instance_of
Command
::
Repo
::
Lint
Command
.
parse
(
%w(repo list )
).
should
.
be
.
instance_of
Command
::
Repo
::
List
Command
.
parse
(
%w(repo list )
).
should
.
be
.
instance_of
Command
::
Repo
::
List
Command
.
parse
(
%w(repo update )
).
should
.
be
.
instance_of
Command
::
Repo
::
Update
Command
.
parse
(
%w(repo update )
).
should
.
be
.
instance_of
Command
::
Repo
::
Update
Command
.
parse
(
%w(repo remove )
).
should
.
be
.
instance_of
Command
::
Repo
::
Remove
Command
.
parse
(
%w(repo remove )
).
should
.
be
.
instance_of
Command
::
Repo
::
Remove
Command
.
parse
(
%w(setup )
).
should
.
be
.
instance_of
Command
::
Setup
Command
.
parse
(
%w(repo push --help)
).
should
.
be
.
instance_of
Command
::
Repo
::
Push
Command
.
parse
(
%w(spec create )
).
should
.
be
.
instance_of
Command
::
Spec
::
Create
Command
.
parse
(
%w(setup )
).
should
.
be
.
instance_of
Command
::
Setup
Command
.
parse
(
%w(spec lint )
).
should
.
be
.
instance_of
Command
::
Spec
::
Lint
Command
.
parse
(
%w(spec create )
).
should
.
be
.
instance_of
Command
::
Spec
::
Create
Command
.
parse
(
%w(init )
).
should
.
be
.
instance_of
Command
::
Init
Command
.
parse
(
%w(spec lint )
).
should
.
be
.
instance_of
Command
::
Spec
::
Lint
Command
.
parse
(
%w(env )
).
should
.
be
.
instance_of
Command
::
Env
Command
.
parse
(
%w(init )
).
should
.
be
.
instance_of
Command
::
Init
Command
.
parse
(
%w(env )
).
should
.
be
.
instance_of
Command
::
Env
end
end
end
end
end
end
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