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
217bd92e
Commit
217bd92e
authored
May 24, 2014
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2177 from edwardvalentini/pushfix
fix pod repo push to first check if Specs Dir exists
parents
e1e79d4c
a629328e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
CHANGELOG.md
CHANGELOG.md
+5
-0
push.rb
lib/cocoapods/command/repo/push.rb
+8
-1
No files found.
CHANGELOG.md
View file @
217bd92e
...
@@ -2,8 +2,13 @@
...
@@ -2,8 +2,13 @@
To install or update CocoaPods see this
[
guide
](
http://docs.cocoapods.org/guides/installing_cocoapods.html
)
.
To install or update CocoaPods see this
[
guide
](
http://docs.cocoapods.org/guides/installing_cocoapods.html
)
.
## Master
## Master
*
Fixed pod repo push to first check if Specs directory exists and if so push there.
[
Edward Valentini
](
edwardvalentini
)
[
#2060
](
https://github.com/CocoaPods/CocoaPods/issues/2060
)
*
Fixed
`pod outdated`
to not include subspecs.
*
Fixed
`pod outdated`
to not include subspecs.
[
Ash Furrow
](
ashfurrow]
[
Ash Furrow
](
ashfurrow]
[
#2136
](
https://github.com/CocoaPods/CocoaPods/issues/2136
)
[
#2136
](
https://github.com/CocoaPods/CocoaPods/issues/2136
)
...
...
lib/cocoapods/command/repo/push.rb
View file @
217bd92e
...
@@ -172,8 +172,15 @@ module Pod
...
@@ -172,8 +172,15 @@ module Pod
# @return [Pathname] The directory of the repository.
# @return [Pathname] The directory of the repository.
#
#
def
repo_dir
def
repo_dir
specs_dir
=
Pathname
.
new
(
File
.
join
(
config
.
repos_dir
,
@repo
,
'Specs'
))
dir
=
config
.
repos_dir
+
@repo
dir
=
config
.
repos_dir
+
@repo
raise
Informative
,
"`
#{
@repo
}
` repo not found"
unless
dir
.
exist?
if
specs_dir
.
exist?
dir
=
specs_dir
elsif
dir
.
exist?
dir
else
raise
Informative
,
"`
#{
@repo
}
` repo not found either in
#{
specs_dir
}
or
#{
dir
}
"
end
dir
dir
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