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
bf09f4bd
Commit
bf09f4bd
authored
Mar 31, 2014
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring: Renamed Installer#update_mode to Installer#update
parent
43576820
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
project.rb
lib/cocoapods/command/project.rb
+1
-1
installer.rb
lib/cocoapods/installer.rb
+6
-5
installer_spec.rb
spec/unit/installer_spec.rb
+1
-1
No files found.
lib/cocoapods/command/project.rb
View file @
bf09f4bd
...
@@ -34,7 +34,7 @@ module Pod
...
@@ -34,7 +34,7 @@ module Pod
#
#
def
run_install_with_update
(
update
)
def
run_install_with_update
(
update
)
installer
=
Installer
.
new
(
config
.
sandbox
,
config
.
podfile
,
config
.
lockfile
)
installer
=
Installer
.
new
(
config
.
sandbox
,
config
.
podfile
,
config
.
lockfile
)
installer
.
update
_mode
=
update
installer
.
update
=
update
installer
.
install!
installer
.
install!
end
end
end
end
...
...
lib/cocoapods/installer.rb
View file @
bf09f4bd
...
@@ -64,11 +64,12 @@ module Pod
...
@@ -64,11 +64,12 @@ module Pod
@lockfile
=
lockfile
@lockfile
=
lockfile
end
end
# @return [Bool] Whether the installer is in update mode. In update mode
# @return [Hash, Boolean, nil] Pods that have been requested to be
# the contents of the Lockfile are not taken into account for
# updated or true if all Pods should be updated.
# deciding what Pods to install.
# If all Pods should been updated the contents of the Lockfile are
# not taken into account for deciding what Pods to install.
#
#
attr_accessor
:update
_mode
attr_accessor
:update
# Installs the Pods.
# Installs the Pods.
#
#
...
@@ -169,7 +170,7 @@ module Pod
...
@@ -169,7 +170,7 @@ module Pod
end
end
analyzer
=
Analyzer
.
new
(
sandbox
,
podfile
,
lockfile
)
analyzer
=
Analyzer
.
new
(
sandbox
,
podfile
,
lockfile
)
analyzer
.
update_mode
=
update
_mode
analyzer
.
update_mode
=
update
@analysis_result
=
analyzer
.
analyze
@analysis_result
=
analyzer
.
analyze
@aggregate_targets
=
analyzer
.
result
.
targets
@aggregate_targets
=
analyzer
.
result
.
targets
end
end
...
...
spec/unit/installer_spec.rb
View file @
bf09f4bd
...
@@ -113,7 +113,7 @@ module Pod
...
@@ -113,7 +113,7 @@ module Pod
end
end
it
"configures the analyzer to use update mode if appropriate"
do
it
"configures the analyzer to use update mode if appropriate"
do
@installer
.
update
_mode
=
true
@installer
.
update
=
true
Installer
::
Analyzer
.
any_instance
.
expects
(
:update_mode
=
).
with
(
true
)
Installer
::
Analyzer
.
any_instance
.
expects
(
:update_mode
=
).
with
(
true
)
@installer
.
send
(
:analyze
)
@installer
.
send
(
:analyze
)
@installer
.
aggregate_targets
.
map
(
&
:name
).
sort
.
should
==
[
'Pods'
]
@installer
.
aggregate_targets
.
map
(
&
:name
).
sort
.
should
==
[
'Pods'
]
...
...
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