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
4dcef288
Commit
4dcef288
authored
Aug 27, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Xcodeproj] Adapt for improved path handling
parent
c06de172
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
Gemfile.lock
Gemfile.lock
+1
-1
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+1
-2
project.rb
lib/cocoapods/project.rb
+3
-3
project_spec.rb
spec/unit/project_spec.rb
+1
-1
No files found.
Gemfile.lock
View file @
4dcef288
...
...
@@ -17,7 +17,7 @@ GIT
GIT
remote: https://github.com/CocoaPods/Xcodeproj.git
revision:
230cd26ab0c73c70e6017458a8eea920e5f76233
revision:
b1878be0ea3e2f212a2f61be089c757d13b637db
branch: paths-refactor
specs:
xcodeproj (0.9.0)
...
...
lib/cocoapods/installer/target_installer.rb
View file @
4dcef288
...
...
@@ -126,8 +126,7 @@ module Pod
# @return [PBXFileReference] the file reference of the added file.
#
def
add_file_to_support_group
(
path
)
relative_path
=
path
.
relative_path_from
(
sandbox
.
root
)
support_files_group
.
new_file
(
relative_path
)
support_files_group
.
new_file
(
path
)
end
#-----------------------------------------------------------------------#
...
...
lib/cocoapods/project.rb
View file @
4dcef288
...
...
@@ -157,7 +157,7 @@ module Pod
existing
=
file_reference
(
file
)
unless
existing
file
=
Pathname
.
new
(
file
)
ref
=
group
.
new_file
(
relativize
(
file
)
)
ref
=
group
.
new_file
(
file
)
@refs_by_absolute_path
[
file
]
=
ref
end
end
...
...
@@ -166,7 +166,7 @@ module Pod
# TODO: missing customization for file reference
#
def
add_file_reference
(
absolute_path
,
group
)
ref
=
group
.
new_file
(
relativize
(
absolute_path
)
)
ref
=
group
.
new_file
(
absolute_path
)
@refs_by_absolute_path
[
absolute_path
]
=
ref
end
...
...
@@ -192,7 +192,7 @@ module Pod
#
def
add_podfile
(
podfile_path
)
podfile_path
=
Pathname
.
new
(
podfile_path
)
podfile_ref
=
new_file
(
relativize
(
podfile_path
)
)
podfile_ref
=
new_file
(
podfile_path
)
podfile_ref
.
xc_language_specification_identifier
=
'xcode.lang.ruby'
podfile_ref
.
last_known_file_type
=
'text'
podfile_ref
...
...
spec/unit/project_spec.rb
View file @
4dcef288
...
...
@@ -83,7 +83,7 @@ module Pod
it
"adds the Podfile configured as a Ruby file"
do
@project
.
add_podfile
(
config
.
sandbox
.
root
+
'../Podfile'
)
f
=
@project
[
'Podfile'
]
f
.
source_tree
.
should
==
'
SOURCE_ROOT
'
f
.
source_tree
.
should
==
'
<group>
'
f
.
xc_language_specification_identifier
.
should
==
'xcode.lang.ruby'
f
.
path
.
should
==
'../Podfile'
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