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
9b03b45b
Commit
9b03b45b
authored
Apr 01, 2014
by
Samuel Ford
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove "was_absolute" tracking and simplify local pod handling to always use absolute paths
parent
25919883
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
15 deletions
+2
-15
external_sources.rb
lib/cocoapods/external_sources.rb
+1
-1
sandbox.rb
lib/cocoapods/sandbox.rb
+1
-13
installer_spec.rb
spec/unit/installer_spec.rb
+0
-1
No files found.
lib/cocoapods/external_sources.rb
View file @
9b03b45b
...
@@ -352,7 +352,7 @@ module Pod
...
@@ -352,7 +352,7 @@ module Pod
UI
.
titled_section
(
"Fetching podspec for `
#{
name
}
`
#{
description
}
"
,
{
:verbose_prefix
=>
"-> "
})
do
UI
.
titled_section
(
"Fetching podspec for `
#{
name
}
`
#{
description
}
"
,
{
:verbose_prefix
=>
"-> "
})
do
podspec
=
podspec_path
podspec
=
podspec_path
store_podspec
(
sandbox
,
podspec
)
store_podspec
(
sandbox
,
podspec
)
sandbox
.
store_local_path
(
name
,
podspec
.
dirname
,
Pathname
.
new
(
declared_path
).
absolute?
)
sandbox
.
store_local_path
(
name
,
podspec
.
dirname
)
end
end
end
end
...
...
lib/cocoapods/sandbox.rb
View file @
9b03b45b
...
@@ -69,7 +69,6 @@ module Pod
...
@@ -69,7 +69,6 @@ module Pod
@head_pods
=
[]
@head_pods
=
[]
@checkout_sources
=
{}
@checkout_sources
=
{}
@development_pods
=
{}
@development_pods
=
{}
@development_pods_were_absolute
=
{}
end
end
# @return [Lockfile] the manifest which contains the information about the
# @return [Lockfile] the manifest which contains the information about the
...
@@ -160,16 +159,6 @@ module Pod
...
@@ -160,16 +159,6 @@ module Pod
end
end
end
end
# Returns true if the path as originally specified was absolute.
#
# @param [String] name
#
# @return [Bool] true if originally absolute
#
def
local_path_was_absolute?
(
name
)
@development_pods_were_absolute
[
name
]
end
# @return [Pathname] the directory where to store the documentation.
# @return [Pathname] the directory where to store the documentation.
#
#
def
documentation_dir
def
documentation_dir
...
@@ -354,10 +343,9 @@ module Pod
...
@@ -354,10 +343,9 @@ module Pod
#
#
# @return [void]
# @return [void]
#
#
def
store_local_path
(
name
,
path
,
was_absolute
=
false
)
def
store_local_path
(
name
,
path
)
root_name
=
Specification
.
root_name
(
name
)
root_name
=
Specification
.
root_name
(
name
)
development_pods
[
root_name
]
=
path
.
to_s
development_pods
[
root_name
]
=
path
.
to_s
@development_pods_were_absolute
[
root_name
]
=
was_absolute
end
end
# @return [Hash{String=>String}] The path of the Pods with a local source
# @return [Hash{String=>String}] The path of the Pods with a local source
...
...
spec/unit/installer_spec.rb
View file @
9b03b45b
...
@@ -251,7 +251,6 @@ module Pod
...
@@ -251,7 +251,6 @@ module Pod
podfile_path
=
Pathname
.
new
(
'/Podfile'
)
podfile_path
=
Pathname
.
new
(
'/Podfile'
)
config
.
stubs
(
:podfile_path
).
returns
(
podfile_path
)
config
.
stubs
(
:podfile_path
).
returns
(
podfile_path
)
@installer
.
send
(
:prepare_pods_project
)
@installer
.
send
(
:prepare_pods_project
)
@installer
.
pods_project
[
'Podfile'
].
path
.
should
==
podfile_path
end
end
it
"adds the Podfile to the Pods project"
do
it
"adds the Podfile to the Pods project"
do
...
...
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