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
8c77cff3
Commit
8c77cff3
authored
Apr 02, 2014
by
Piet Brauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use configure instead of _CONFIGURE.rb file
parent
86dce91c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lib.rb
lib/cocoapods/command/lib.rb
+5
-1
lib_spec.rb
spec/functional/command/lib_spec.rb
+2
-1
No files found.
lib/cocoapods/command/lib.rb
View file @
8c77cff3
...
...
@@ -66,7 +66,11 @@ module Pod
def
configure_template
UI
.
section
(
"Configuring template"
)
do
Dir
.
chdir
(
@name
)
do
ruby!
"_CONFIGURE.rb
#{
@name
}
"
if
File
.
exists?
"configure"
system
"./configure
#{
@name
}
"
else
UI
.
warn
"Template does not have a configure file."
end
end
end
end
...
...
spec/functional/command/lib_spec.rb
View file @
8c77cff3
...
...
@@ -27,7 +27,8 @@ module Pod
@sut
.
any_instance
.
stubs
(
:clone_template
)
dir
=
SpecHelper
.
temporary_directory
+
'TestPod'
dir
.
mkpath
@sut
.
any_instance
.
expects
(
:ruby!
).
with
(
"_CONFIGURE.rb TestPod"
).
once
File
.
stub
(
:exists?
).
with
(
"configure"
).
returns
(
true
)
@sut
.
any_instance
.
expects
(
:system
).
with
(
"./configure TestPod"
).
once
run_command
(
'lib'
,
'create'
,
'TestPod'
)
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