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
3edf0f3f
Unverified
Commit
3edf0f3f
authored
Mar 07, 2018
by
Samuel Giddins
Committed by
GitHub
Mar 07, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7482 from CocoaPods/seg-fix-inch
Fix documentation
parents
93011ece
48f4d3a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
podfile_dependency_cache.rb
lib/cocoapods/installer/analyzer/podfile_dependency_cache.rb
+6
-0
podfile_validator.rb
lib/cocoapods/installer/podfile_validator.rb
+4
-0
project.rb
lib/cocoapods/project.rb
+10
-2
No files found.
lib/cocoapods/installer/analyzer/podfile_dependency_cache.rb
View file @
3edf0f3f
...
@@ -30,6 +30,12 @@ module Pod
...
@@ -30,6 +30,12 @@ module Pod
# Creates a {PodfileDependencyCache} from the given {Podfile}
# Creates a {PodfileDependencyCache} from the given {Podfile}
#
#
# @param [Podfile] podfile
# The {Podfile} from which dependencies should be cached
#
# @return [PodfileDependencyCache]
# A warmed, immutable cache of all the dependencies in the {Podfile}
#
def
self
.
from_podfile
(
podfile
)
def
self
.
from_podfile
(
podfile
)
podfile_dependencies
=
[]
podfile_dependencies
=
[]
dependencies_by_target_definition
=
{}
dependencies_by_target_definition
=
{}
...
...
lib/cocoapods/installer/podfile_validator.rb
View file @
3edf0f3f
...
@@ -17,9 +17,13 @@ module Pod
...
@@ -17,9 +17,13 @@ module Pod
attr_reader
:warnings
attr_reader
:warnings
# Initialize a new instance
# Initialize a new instance
#
# @param [Podfile] podfile
# @param [Podfile] podfile
# The podfile to validate
# The podfile to validate
#
#
# @param [Analyzer::PodfileDependencyCache] podfile_dependency_cache
# An (optional) cache of all the dependencies in the podfile
#
def
initialize
(
podfile
,
podfile_dependency_cache
=
Analyzer
::
PodfileDependencyCache
.
from_podfile
(
podfile
))
def
initialize
(
podfile
,
podfile_dependency_cache
=
Analyzer
::
PodfileDependencyCache
.
from_podfile
(
podfile
))
@podfile
=
podfile
@podfile
=
podfile
@podfile_dependency_cache
=
podfile_dependency_cache
@podfile_dependency_cache
=
podfile_dependency_cache
...
...
lib/cocoapods/project.rb
View file @
3edf0f3f
...
@@ -40,8 +40,16 @@ module Pod
...
@@ -40,8 +40,16 @@ module Pod
#
#
attr_reader
:development_pods
attr_reader
:development_pods
# Overridden to generate UUIDs in a much faster way, since we don't need to check for collisions
# Generates a list of new UUIDs that created objects can be assigned.
# (as the Pods project is regenerated each time, and thus all UUIDs will have come from this method)
#
# @note Overridden to generate UUIDs in a much faster way, since we don't need to check for collisions
# (as the Pods project is regenerated each time, and thus all UUIDs will have come from this method)
#
# @param [Integer] count
# The number of UUIDs to generate
#
# @return [Void]
#
def
generate_available_uuid_list
(
count
=
100
)
def
generate_available_uuid_list
(
count
=
100
)
start
=
@generated_uuids
.
size
start
=
@generated_uuids
.
size
uniques
=
Array
.
new
(
count
)
{
|
i
|
format
(
'%011X0'
,
start
+
i
)
}
uniques
=
Array
.
new
(
count
)
{
|
i
|
format
(
'%011X0'
,
start
+
i
)
}
...
...
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