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
99d831e8
Commit
99d831e8
authored
Sep 25, 2014
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Analyzer] Only update source repos that are being used
parent
f9a55aac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
analyzer.rb
lib/cocoapods/installer/analyzer.rb
+1
-1
analyzer_spec.rb
spec/unit/installer/analyzer_spec.rb
+8
-1
No files found.
lib/cocoapods/installer/analyzer.rb
View file @
99d831e8
...
@@ -169,7 +169,7 @@ module Pod
...
@@ -169,7 +169,7 @@ module Pod
def
update_repositories_if_needed
def
update_repositories_if_needed
unless
config
.
skip_repo_update?
unless
config
.
skip_repo_update?
UI
.
section
'Updating spec repositories'
do
UI
.
section
'Updating spec repositories'
do
SourcesManager
.
update
sources
.
each
{
|
source
|
SourcesManager
.
update
(
source
.
name
)
}
end
end
end
end
end
end
...
...
spec/unit/installer/analyzer_spec.rb
View file @
99d831e8
...
@@ -62,7 +62,14 @@ module Pod
...
@@ -62,7 +62,14 @@ module Pod
it
'updates the repositories by default'
do
it
'updates the repositories by default'
do
config
.
skip_repo_update
=
false
config
.
skip_repo_update
=
false
SourcesManager
.
expects
(
:update
).
once
SourcesManager
.
expects
(
:update
).
twice
@analyzer
.
analyze
end
it
'does not update unused sources'
do
config
.
skip_repo_update
=
false
@analyzer
.
stubs
(
:sources
).
returns
(
SourcesManager
.
master
)
SourcesManager
.
expects
(
:update
).
once
.
with
(
'master'
)
@analyzer
.
analyze
@analyzer
.
analyze
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