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
142570b5
Commit
142570b5
authored
May 07, 2015
by
Kyle Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[pod repo push] Find JSON podspecs
Closes #3494
parent
76892430
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
CHANGELOG.md
CHANGELOG.md
+6
-0
push.rb
lib/cocoapods/command/repo/push.rb
+2
-2
push_spec.rb
spec/functional/command/repo/push_spec.rb
+11
-1
No files found.
CHANGELOG.md
View file @
142570b5
...
...
@@ -13,6 +13,12 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Samuel Giddins
](
https://github.com/segiddins
)
[
cocoapods-try#31
](
https://github.com/CocoaPods/cocoapods-try/issues/31
)
##### Bug Fixes
*
`pod repo push`
will now find and push JSON podspecs.
[
#3494
](
https://github.com/CocoaPods/CocoaPods/issues/3494
)
[
Kyle Fuller
](
https://github.com/kylef
)
## 0.37.1
...
...
lib/cocoapods/command/repo/push.rb
View file @
142570b5
...
...
@@ -195,8 +195,8 @@ module Pod
raise
Informative
,
"Couldn't find
#{
@podspec
}
"
unless
path
.
exist?
[
path
]
else
files
=
Pathname
.
glob
(
'*.podspec'
)
raise
Informative
,
"Couldn't find any
.
podspec files in current directory"
if
files
.
empty?
files
=
Pathname
.
glob
(
'*.podspec
{,.json}
'
)
raise
Informative
,
"Couldn't find any podspec files in current directory"
if
files
.
empty?
files
end
end
...
...
spec/functional/command/repo/push_spec.rb
View file @
142570b5
...
...
@@ -22,7 +22,7 @@ module Pod
it
"complains if it can't find a spec"
do
repo_make
(
'test_repo'
)
e
=
lambda
{
run_command
(
'repo'
,
'push'
,
'test_repo'
)
}.
should
.
raise
Pod
::
Informative
e
.
message
.
should
.
match
(
/Couldn't find any
.
podspec/
)
e
.
message
.
should
.
match
(
/Couldn't find any podspec/
)
end
it
"complains if it can't find the given podspec"
do
...
...
@@ -44,6 +44,16 @@ module Pod
end
end
it
'finds JSON podspecs'
do
repo_make
(
'test_repo'
)
Dir
.
chdir
(
temporary_directory
)
do
File
.
open
(
'JSON.podspec.json'
,
'w'
)
{
|
f
|
f
.
write
(
'{}'
)
}
cmd
=
command
(
'repo'
,
'push'
,
'test_repo'
)
cmd
.
send
(
:podspec_files
).
should
==
[
Pathname
(
'JSON.podspec.json'
)]
end
end
#--------------------------------------#
before
do
...
...
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