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
aadecd9a
Commit
aadecd9a
authored
Feb 04, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Project] Add #resources
parent
0b264e6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
project.rb
lib/cocoapods/project.rb
+9
-0
project_spec.rb
spec/unit/project_spec.rb
+4
-0
No files found.
lib/cocoapods/project.rb
View file @
aadecd9a
...
@@ -69,6 +69,15 @@ module Pod
...
@@ -69,6 +69,15 @@ module Pod
@local_pods
||=
new_group
(
'Local Pods'
)
@local_pods
||=
new_group
(
'Local Pods'
)
end
end
# Returns the `Local Pods` group, creating it if needed. This group is used
# to contain locally sourced pods.
#
# @return [PBXGroup] the group.
#
def
resources
@resources
||=
new_group
(
'Resources'
)
end
# Adds a group as child to the `Pods` group namespacing subspecs.
# Adds a group as child to the `Pods` group namespacing subspecs.
#
#
# @param [String] spec_name
# @param [String] spec_name
...
...
spec/unit/project_spec.rb
View file @
aadecd9a
...
@@ -18,6 +18,10 @@ describe Pod::Project do
...
@@ -18,6 +18,10 @@ describe Pod::Project do
@project
.
local_pods
.
name
.
should
==
'Local Pods'
@project
.
local_pods
.
name
.
should
==
'Local Pods'
end
end
it
"returns the `Resources` group"
do
@project
.
resources
.
name
.
should
==
'Resources'
end
it
"adds a group for a specification"
do
it
"adds a group for a specification"
do
group
=
@project
.
add_spec_group
(
'JSONKit'
,
@project
.
pods
)
group
=
@project
.
add_spec_group
(
'JSONKit'
,
@project
.
pods
)
@project
.
pods
.
children
.
should
.
include?
(
group
)
@project
.
pods
.
children
.
should
.
include?
(
group
)
...
...
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