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
124ab63d
Commit
124ab63d
authored
Feb 21, 2014
by
Eric Allam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include declared_path in 'No podspec found..' error message for PathSource (ref #1825)
parent
a3ec49e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
external_sources.rb
lib/cocoapods/external_sources.rb
+1
-1
external_sources_spec.rb
spec/unit/external_sources_spec.rb
+1
-1
No files found.
lib/cocoapods/external_sources.rb
View file @
124ab63d
...
@@ -378,7 +378,7 @@ module Pod
...
@@ -378,7 +378,7 @@ module Pod
pathname
=
Pathname
.
new
(
absolute_path
)
pathname
=
Pathname
.
new
(
absolute_path
)
unless
pathname
.
exist?
unless
pathname
.
exist?
raise
Informative
,
"No podspec found for `
#{
name
}
` in `
#{
params
[
:local
]
}
`"
raise
Informative
,
"No podspec found for `
#{
name
}
` in `
#{
declared_path
}
`"
end
end
pathname
pathname
end
end
...
...
spec/unit/external_sources_spec.rb
View file @
124ab63d
...
@@ -295,7 +295,7 @@ module Pod
...
@@ -295,7 +295,7 @@ module Pod
it
"raises if the podspec cannot be found"
do
it
"raises if the podspec cannot be found"
do
@external_source
.
stubs
(
:params
).
returns
(
:path
=>
temporary_directory
)
@external_source
.
stubs
(
:params
).
returns
(
:path
=>
temporary_directory
)
e
=
lambda
{
@external_source
.
send
(
:podspec_path
)
}.
should
.
raise
Informative
e
=
lambda
{
@external_source
.
send
(
:podspec_path
)
}.
should
.
raise
Informative
e
.
message
.
should
.
match
/No podspec found/
e
.
message
.
should
.
match
/No podspec found
for `Reachability` in `
#{
temporary_directory
}
`
/
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