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
809745bd
Commit
809745bd
authored
May 24, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specification] Raise if it can't find a subspec.
parent
9f1b33b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
specification.rb
lib/cocoapods/specification.rb
+2
-0
No files found.
lib/cocoapods/specification.rb
View file @
809745bd
...
@@ -327,6 +327,8 @@ module Pod
...
@@ -327,6 +327,8 @@ module Pod
# If this was the last component in the name, then return the subspec,
# If this was the last component in the name, then return the subspec,
# otherwise we recursively keep calling subspec_by_name until we reach the
# otherwise we recursively keep calling subspec_by_name until we reach the
# last one and return that
# last one and return that
raise
Informative
,
"Unable to find a subspec named `
#{
name
}
'."
unless
subspec
remainder
.
empty?
?
subspec
:
subspec
.
subspec_by_name
(
name
)
remainder
.
empty?
?
subspec
:
subspec
.
subspec_by_name
(
name
)
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