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
c8174897
Commit
c8174897
authored
Jul 16, 2016
by
Danielle Tomlinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Installer] Remove Migrator
parent
6f91fdb4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
95 deletions
+3
-95
CHANGELOG.md
CHANGELOG.md
+3
-1
installer.rb
lib/cocoapods/installer.rb
+0
-2
migrator.rb
lib/cocoapods/installer/migrator.rb
+0
-86
migrator_spec.rb
spec/unit/installer/migrator_spec.rb
+0
-6
No files found.
CHANGELOG.md
View file @
c8174897
...
@@ -8,7 +8,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -8,7 +8,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Enhancements
##### Enhancements
*
None.
*
Remove references to the pre-1.0 Migrator.
[
Danielle Tomlinson
](
https://github.com/dantoml
)
[
#5635
](
https://github.com/CocoaPods/CocoaPods/pull/5635
)
##### Bug Fixes
##### Bug Fixes
...
...
lib/cocoapods/installer.rb
View file @
c8174897
...
@@ -34,7 +34,6 @@ module Pod
...
@@ -34,7 +34,6 @@ module Pod
autoload
:PostInstallHooksContext
,
'cocoapods/installer/post_install_hooks_context'
autoload
:PostInstallHooksContext
,
'cocoapods/installer/post_install_hooks_context'
autoload
:PreInstallHooksContext
,
'cocoapods/installer/pre_install_hooks_context'
autoload
:PreInstallHooksContext
,
'cocoapods/installer/pre_install_hooks_context'
autoload
:SourceProviderHooksContext
,
'cocoapods/installer/source_provider_hooks_context'
autoload
:SourceProviderHooksContext
,
'cocoapods/installer/source_provider_hooks_context'
autoload
:Migrator
,
'cocoapods/installer/migrator'
autoload
:PodfileValidator
,
'cocoapods/installer/podfile_validator'
autoload
:PodfileValidator
,
'cocoapods/installer/podfile_validator'
autoload
:PodSourceInstaller
,
'cocoapods/installer/pod_source_installer'
autoload
:PodSourceInstaller
,
'cocoapods/installer/pod_source_installer'
autoload
:PodSourcePreparer
,
'cocoapods/installer/pod_source_preparer'
autoload
:PodSourcePreparer
,
'cocoapods/installer/pod_source_preparer'
...
@@ -133,7 +132,6 @@ module Pod
...
@@ -133,7 +132,6 @@ module Pod
deintegrate_if_different_major_version
deintegrate_if_different_major_version
sandbox
.
prepare
sandbox
.
prepare
ensure_plugins_are_installed!
ensure_plugins_are_installed!
Migrator
.
migrate
(
sandbox
)
run_plugins_pre_install_hooks
run_plugins_pre_install_hooks
end
end
end
end
...
...
lib/cocoapods/installer/migrator.rb
deleted
100644 → 0
View file @
6f91fdb4
require
'fileutils'
module
Pod
class
Installer
# Migrates installations performed by previous versions of CocoaPods.
#
class
Migrator
class
<<
self
# Performs the migration.
#
# @param [Sandbox] sandbox
# The sandbox which should be migrated.
#
def
migrate
(
sandbox
)
return
unless
sandbox
.
manifest
end
# @!group Migration Steps
# @!group Private helpers
# Check whether a migration is required
#
# @param [#to_s] target_version
# See Version#new.
#
# @param [Sandbox] sandbox
# The sandbox
#
# @return [void]
#
def
installation_minor?
(
target_version
,
sandbox
)
sandbox
.
manifest
.
cocoapods_version
<
Version
.
new
(
target_version
)
end
# Makes a path creating any intermediate directory and printing an UI
# message.
#
# @path [#to_s] path
# The path.
#
# @return [void]
#
def
make_path
(
path
)
return
if
path
.
exist?
UI
.
message
"- Making path
#{
UI
.
path
(
path
)
}
"
do
path
.
mkpath
end
end
# Moves a path to another one printing an UI message.
#
# @path [#to_s] source
# The path to move.
#
# @path [#to_s] destination
# The destination path.
#
# @return [void]
#
def
move
(
source
,
destination
)
return
unless
source
.
exist?
make_path
(
destination
.
dirname
)
UI
.
message
"- Moving
#{
UI
.
path
(
source
)
}
to
#{
UI
.
path
(
destination
)
}
"
do
FileUtils
.
mv
(
source
.
to_s
,
destination
.
to_s
)
end
end
# Deletes a path, including non empty directories, printing an UI
# message.
#
# @path [#to_s] path
# The path.
#
# @return [void]
#
def
delete
(
path
)
return
unless
path
.
exist?
UI
.
message
"- Deleting
#{
UI
.
path
(
path
)
}
"
do
FileUtils
.
rm_rf
(
path
)
end
end
end
end
end
end
spec/unit/installer/migrator_spec.rb
deleted
100644 → 0
View file @
6f91fdb4
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
module
Pod
describe
Installer
::
Migrator
do
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