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
09a33aa0
Commit
09a33aa0
authored
Jan 22, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodspecSource] Evaluate :podspec dependencies in their own directory if the path is local.
parent
332e7bb8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
CHANGELOG.md
CHANGELOG.md
+5
-0
podspec_source.rb
lib/cocoapods/external_sources/podspec_source.rb
+5
-0
podspec_source_spec.rb
spec/unit/external_sources/podspec_source_spec.rb
+1
-1
No files found.
CHANGELOG.md
View file @
09a33aa0
...
...
@@ -51,6 +51,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Dustin Clark
](
https://github.com/clarkda
)
[
#2558
](
https://github.com/CocoaPods/CocoaPods/issues/2558
)
*
Pods referenced via the
`:podspec`
option will have their podspecs properly
parsed in the local directory if the path points to a local file.
[
Samuel Giddins
](
https://github.com/segiddins
)
## 0.36.0.beta.1
[
CocoaPods
](
https://github.com/CocoaPods/CocoaPods/compare/0.35.0...0.36.0.beta.1
)
...
...
lib/cocoapods/external_sources/podspec_source.rb
View file @
09a33aa0
...
...
@@ -9,6 +9,10 @@ module Pod
def
fetch
(
sandbox
)
title
=
"Fetching podspec for `
#{
name
}
`
#{
description
}
"
UI
.
titled_section
(
title
,
:verbose_prefix
=>
'-> '
)
do
podspec_path
=
Pathname
(
podspec_uri
)
if
podspec_path
.
exist?
store_podspec
(
sandbox
,
podspec_path
,
podspec_path
.
extname
==
'.json'
)
else
is_json
=
podspec_uri
.
split
(
'.'
).
last
==
'json'
require
'open-uri'
begin
...
...
@@ -19,6 +23,7 @@ module Pod
end
end
end
end
# @see AbstractExternalSource#description
#
...
...
spec/unit/external_sources/podspec_source_spec.rb
View file @
09a33aa0
...
...
@@ -12,7 +12,7 @@ module Pod
it
'creates a copy of the podspec'
do
@subject
.
fetch
(
config
.
sandbox
)
path
=
config
.
sandbox
.
specifications_root
+
'Reachability.podspec'
path
=
config
.
sandbox
.
specifications_root
+
'Reachability.podspec
.json
'
path
.
should
.
exist?
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