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
fa609480
Commit
fa609480
authored
Jul 03, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SandboxAnalyzer] mark as changed Pods whose head state doesn't mathc
Closes #1160
parent
a9d87406
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
sandbox_analyzer.rb
lib/cocoapods/installer/analyzer/sandbox_analyzer.rb
+8
-0
sandbox_analyzer_spec.rb
spec/unit/installer/analyzer/sandbox_analyzer_spec.rb
+6
-0
No files found.
lib/cocoapods/installer/analyzer/sandbox_analyzer.rb
View file @
fa609480
...
...
@@ -150,6 +150,7 @@ module Pod
return
true
if
resolved_spec_names
(
pod
)
!=
sandbox_spec_names
(
pod
)
return
true
if
sandbox
.
predownloaded?
(
pod
)
return
true
if
folder_empty?
(
pod
)
return
true
if
sandbox
.
head_pod?
(
pod
)
!=
sandbox_head_verision?
(
pod
)
if
update_mode
return
true
if
sandbox
.
head_pod?
(
pod
)
end
...
...
@@ -235,6 +236,13 @@ module Pod
sandbox_manifest
.
checksum
(
pod
)
end
# @return [Bool] Wether the Pod is installed in the sandbox is in head
# mode.
#
def
sandbox_head_verision?
(
pod
)
sandbox_version
(
pod
).
head?
==
true
end
#--------------------------------------#
def
folder_exist?
(
pod
)
...
...
spec/unit/installer/analyzer/sandbox_analyzer_spec.rb
View file @
fa609480
...
...
@@ -88,6 +88,11 @@ module Pod
@analyzer
.
send
(
:pod_changed?
,
'BananaLib'
).
should
==
true
end
it
"considers changed a Pod whose head state doesn't match"
do
@sandbox
.
stubs
(
:head_pod?
).
returns
(
true
)
@analyzer
.
send
(
:pod_changed?
,
'BananaLib'
).
should
==
true
end
it
"considers changed a Pod whose specification is in head mode if in update mode"
do
@sandbox
.
stubs
(
:head_pod?
).
returns
(
true
)
@analyzer
.
stubs
(
:update_mode
).
returns
(
true
)
...
...
@@ -96,6 +101,7 @@ module Pod
it
"doesn't consider changed a Pod whose specification is in head mode if not in update mode"
do
@sandbox
.
stubs
(
:head_pod?
).
returns
(
true
)
@analyzer
.
stubs
(
:sandbox_head_verision?
).
returns
(
true
)
@analyzer
.
stubs
(
:update_mode
).
returns
(
false
)
@analyzer
.
send
(
:pod_changed?
,
'BananaLib'
).
should
==
false
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