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
bf6fad15
Commit
bf6fad15
authored
Jan 04, 2016
by
Darryl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make de-integration wording less verbose.
parent
ebc5e9a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
installer.rb
lib/cocoapods/installer.rb
+2
-2
No files found.
lib/cocoapods/installer.rb
View file @
bf6fad15
...
@@ -502,11 +502,11 @@ module Pod
...
@@ -502,11 +502,11 @@ module Pod
def
deintegrate_if_different_major_version
def
deintegrate_if_different_major_version
return
unless
lockfile
return
unless
lockfile
return
if
lockfile
.
cocoapods_version
.
major
==
Version
.
create
(
VERSION
).
major
return
if
lockfile
.
cocoapods_version
.
major
==
Version
.
create
(
VERSION
).
major
UI
.
section
(
'
Fully deintegrating due to major version update
'
)
do
UI
.
section
(
'
Re-creating CocoaPods due to CocoaPods major version update.
'
)
do
projects
=
Pathname
.
glob
(
config
.
installation_root
+
'*.xcodeproj'
).
map
{
|
path
|
Xcodeproj
::
Project
.
open
(
path
)
}
projects
=
Pathname
.
glob
(
config
.
installation_root
+
'*.xcodeproj'
).
map
{
|
path
|
Xcodeproj
::
Project
.
open
(
path
)
}
deintegrator
=
Deintegrator
.
new
deintegrator
=
Deintegrator
.
new
projects
.
sort
.
each
do
|
project
|
projects
.
sort
.
each
do
|
project
|
deintegrator
.
deintegrate_project
(
project
)
config
.
with_changes
(
silent:
true
)
{
deintegrator
.
deintegrate_project
(
project
)
}
project
.
save
if
project
.
dirty?
project
.
save
if
project
.
dirty?
end
end
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