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
1a3222e6
Commit
1a3222e6
authored
Sep 12, 2016
by
Orta
Committed by
GitHub
Sep 12, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5842 from CocoaPods/dani_fix_pod_create
Correctly pass Pod::VERSION during pod lib create
parents
7c96f173
1403cead
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
CHANGELOG.md
CHANGELOG.md
+4
-0
create.rb
lib/cocoapods/command/lib/create.rb
+1
-1
create_spec.rb
spec/functional/command/lib/create_spec.rb
+1
-1
No files found.
CHANGELOG.md
View file @
1a3222e6
...
@@ -25,6 +25,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -25,6 +25,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
##### Bug Fixes
*
Correctly pass Pod:VERSION in
`pod lib create`
.
[
Danielle Tomlinson
](
https://github.com/dantoml
)
[
#5840
](
https://github.com/CocoaPods/CocoaPods/issues/5840
)
*
Prevent crash when generating acknowledgements when license type is not specified.
*
Prevent crash when generating acknowledgements when license type is not specified.
[
Marcelo Fabri
](
https://github.com/marcelofabri
)
[
Marcelo Fabri
](
https://github.com/marcelofabri
)
[
#5826
](
https://github.com/CocoaPods/CocoaPods/issues/5826
)
[
#5826
](
https://github.com/CocoaPods/CocoaPods/issues/5826
)
...
...
lib/cocoapods/command/lib/create.rb
View file @
1a3222e6
...
@@ -75,7 +75,7 @@ module Pod
...
@@ -75,7 +75,7 @@ module Pod
UI
.
section
(
"Configuring
#{
@name
}
template."
)
do
UI
.
section
(
"Configuring
#{
@name
}
template."
)
do
Dir
.
chdir
(
@name
)
do
Dir
.
chdir
(
@name
)
do
if
File
.
exist?
(
'configure'
)
if
File
.
exist?
(
'configure'
)
system
({
'COCOAPODS_VERSION'
=>
Pod
::
V
ersion
},
'./configure'
,
@name
,
*
@additional_args
)
system
({
'COCOAPODS_VERSION'
=>
Pod
::
V
ERSION
},
'./configure'
,
@name
,
*
@additional_args
)
else
else
UI
.
warn
'Template does not have a configure file.'
UI
.
warn
'Template does not have a configure file.'
end
end
...
...
spec/functional/command/lib/create_spec.rb
View file @
1a3222e6
...
@@ -34,7 +34,7 @@ module Pod
...
@@ -34,7 +34,7 @@ module Pod
dir
=
SpecHelper
.
temporary_directory
+
'TestPod'
dir
=
SpecHelper
.
temporary_directory
+
'TestPod'
dir
.
mkpath
dir
.
mkpath
File
.
stubs
(
:exist?
).
with
(
'configure'
).
returns
(
true
)
File
.
stubs
(
:exist?
).
with
(
'configure'
).
returns
(
true
)
@sut
.
any_instance
.
expects
(
:system
).
with
({
'COCOAPODS_VERSION'
=>
Pod
::
V
ersion
},
'./configure'
,
'TestPod'
,
'foo'
).
once
@sut
.
any_instance
.
expects
(
:system
).
with
({
'COCOAPODS_VERSION'
=>
Pod
::
V
ERSION
},
'./configure'
,
'TestPod'
,
'foo'
).
once
run_command
(
'lib'
,
'create'
,
'TestPod'
,
'foo'
,
'--verbose'
)
run_command
(
'lib'
,
'create'
,
'TestPod'
,
'foo'
,
'--verbose'
)
end
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