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
738cf91b
Commit
738cf91b
authored
Nov 11, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Xcode::Project extension to xcode_project.rb and use the xcodeproj lib from HEAD during dev.
parent
be78f0dc
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
27 deletions
+36
-27
.gitmodules
.gitmodules
+3
-0
pod
bin/pod
+1
-0
xcodeproj
external/xcodeproj
+1
-0
cocoapods.rb
lib/cocoapods.rb
+5
-26
xcode_project.rb
lib/cocoapods/xcode_project.rb
+24
-0
spec_helper.rb
spec/spec_helper.rb
+2
-1
No files found.
.gitmodules
View file @
738cf91b
...
@@ -13,3 +13,6 @@
...
@@ -13,3 +13,6 @@
[submodule "spec/fixtures/integration/sstoolkit"]
[submodule "spec/fixtures/integration/sstoolkit"]
path = spec/fixtures/integration/sstoolkit
path = spec/fixtures/integration/sstoolkit
url = https://github.com/samsoffes/sstoolkit.git
url = https://github.com/samsoffes/sstoolkit.git
[submodule "external/xcodeproj"]
path = external/xcodeproj
url = git@github.com:alloy/xcodeproj.git
bin/pod
View file @
738cf91b
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
if $0 == __FILE__
if $0 == __FILE__
require 'rubygems'
require 'rubygems'
gem 'activesupport', '~> 3.1.1'
gem 'activesupport', '~> 3.1.1'
$:.unshift File.expand_path('../../external/xcodeproj/lib', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
end
end
...
...
xcodeproj
@
0c41e533
Subproject commit 0c41e5333bdf4ff409515815c25eb433c03c2ded
lib/cocoapods.rb
View file @
738cf91b
require
'rubygems'
require
'xcodeproj'
module
Pod
module
Pod
VERSION
=
'0.2.0'
VERSION
=
'0.2.0'
...
@@ -25,31 +22,13 @@ module Pod
...
@@ -25,31 +22,13 @@ module Pod
autoload
:Pathname
,
'pathname'
autoload
:Pathname
,
'pathname'
end
end
module
Xcode
autoload
:Config
,
'cocoapods/xcode_project'
autoload
:Project
,
'cocoapods/xcode_project'
end
class
Pathname
class
Pathname
def
glob
(
pattern
=
''
)
def
glob
(
pattern
=
''
)
Dir
.
glob
((
self
+
pattern
).
to_s
).
map
{
|
f
|
Pathname
.
new
(
f
)
}
Dir
.
glob
((
self
+
pattern
).
to_s
).
map
{
|
f
|
Pathname
.
new
(
f
)
}
end
end
end
end
# Sorry to dump these here...
class
Xcode
::
Project
# Shortcut access to the `Pods' PBXGroup.
def
pods
groups
.
find
{
|
g
|
g
.
name
==
'Pods'
}
||
groups
.
new
({
'name'
=>
'Pods'
})
end
# Adds a group as child to the `Pods' group.
def
add_pod_group
(
name
)
pods
.
groups
.
new
(
'name'
=>
name
)
end
class
PBXCopyFilesBuildPhase
def
self
.
new_pod_dir
(
project
,
pod_name
,
path
)
new
(
project
,
nil
,
{
"dstPath"
=>
"$(PUBLIC_HEADERS_FOLDER_PATH)/
#{
path
}
"
,
"name"
=>
"Copy
#{
pod_name
}
Public Headers"
,
})
end
end
end
lib/cocoapods/xcode_project.rb
0 → 100644
View file @
738cf91b
require
'xcodeproj'
module
Xcode
class
Project
# Shortcut access to the `Pods' PBXGroup.
def
pods
groups
.
find
{
|
g
|
g
.
name
==
'Pods'
}
||
groups
.
new
({
'name'
=>
'Pods'
})
end
# Adds a group as child to the `Pods' group.
def
add_pod_group
(
name
)
pods
.
groups
.
new
(
'name'
=>
name
)
end
class
PBXCopyFilesBuildPhase
def
self
.
new_pod_dir
(
project
,
pod_name
,
path
)
new
(
project
,
nil
,
{
"dstPath"
=>
"$(PUBLIC_HEADERS_FOLDER_PATH)/
#{
path
}
"
,
"name"
=>
"Copy
#{
pod_name
}
Public Headers"
,
})
end
end
end
end
spec/spec_helper.rb
View file @
738cf91b
...
@@ -5,7 +5,8 @@ require 'pathname'
...
@@ -5,7 +5,8 @@ require 'pathname'
ROOT
=
Pathname
.
new
(
File
.
expand_path
(
'../../'
,
__FILE__
))
ROOT
=
Pathname
.
new
(
File
.
expand_path
(
'../../'
,
__FILE__
))
gem
'activesupport'
,
'~> 3.1.1'
gem
'activesupport'
,
'~> 3.1.1'
$:
.
unshift
((
ROOT
+
'lib'
).
to_s
)
$:
.
unshift
File
.
expand_path
(
'../../external/xcodeproj/lib'
,
__FILE__
)
$:
.
unshift
(
ROOT
+
'lib'
).
to_s
require
'cocoapods'
require
'cocoapods'
$:
.
unshift
((
ROOT
+
'spec'
).
to_s
)
$:
.
unshift
((
ROOT
+
'spec'
).
to_s
)
...
...
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