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
3c58d923
Commit
3c58d923
authored
Sep 11, 2016
by
Orta Therox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Lib Create] Fix the version string coming into pod lib create
parent
cf12c1cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
CHANGELOG.md
CHANGELOG.md
+3
-1
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 @
3c58d923
...
@@ -12,7 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -12,7 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
##### Bug Fixes
*
None.
*
Passes in the version string, rather than the version class to
`pod lib create`
.
[
orta
](
https://github.com/orta
)
[
#5841
](
https://github.com/CocoaPods/CocoaPods/pull/5841
)
## 1.1.0.rc.1 (2016-09-10)
## 1.1.0.rc.1 (2016-09-10)
...
...
lib/cocoapods/command/lib/create.rb
View file @
3c58d923
...
@@ -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 @
3c58d923
...
@@ -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