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
986d437b
Commit
986d437b
authored
Sep 30, 2014
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SourcesManager] Fix the handling of invalid URLs
parent
5b9704f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sources_manager.rb
lib/cocoapods/sources_manager.rb
+1
-1
analyzer_spec.rb
spec/unit/installer/analyzer_spec.rb
+1
-1
No files found.
lib/cocoapods/sources_manager.rb
View file @
986d437b
...
@@ -423,7 +423,7 @@ module Pod
...
@@ -423,7 +423,7 @@ module Pod
host
,
path
=
Regexp
.
last_match
.
captures
host
,
path
=
Regexp
.
last_match
.
captures
base
=
base_from_host_and_path
[
host
,
path
]
base
=
base_from_host_and_path
[
host
,
path
]
else
else
url
.
to_s
.
downcase
base
=
url
.
to_s
.
downcase
end
end
name
=
base
name
=
base
...
...
spec/unit/installer/analyzer_spec.rb
View file @
986d437b
...
@@ -502,7 +502,7 @@ module Pod
...
@@ -502,7 +502,7 @@ module Pod
@analyzer
.
instance_variable_set
(
:@podfile
,
podfile
)
@analyzer
.
instance_variable_set
(
:@podfile
,
podfile
)
should
.
raise
Informative
do
should
.
raise
Informative
do
@analyzer
.
send
(
:sources
)
@analyzer
.
send
(
:sources
)
end
.
message
.
should
.
match
/
not a valid URL
/
end
.
message
.
should
.
match
/
Unable to add
/
end
end
it
'fetches a specs repo that is specified by the podfile'
do
it
'fetches a specs repo that is specified by the podfile'
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