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
36e302a1
Commit
36e302a1
authored
Aug 24, 2016
by
Orta Therox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Create] Pass the Pod::version as a ENV var for the configure scripts to read
parent
534c997b
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 @
36e302a1
...
@@ -33,6 +33,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -33,6 +33,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
benasher44
](
https://github.com/benasher44
)
[
benasher44
](
https://github.com/benasher44
)
[
#5747
](
https://github.com/CocoaPods/CocoaPods/pull/5747
)
[
#5747
](
https://github.com/CocoaPods/CocoaPods/pull/5747
)
*
Pass the version of CocoaPods to
`pod lib create`
's configure script.
[
orta
](
https://github.com/orta
)
[
#5787
](
https://github.com/CocoaPods/CocoaPods/pull/5787
)
##### Bug Fixes
##### Bug Fixes
*
Hash scope suffixes if they are over 50 characters to prevent file paths from being too long.
*
Hash scope suffixes if they are over 50 characters to prevent file paths from being too long.
...
...
lib/cocoapods/command/lib/create.rb
View file @
36e302a1
...
@@ -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
(
'./configure'
,
@name
,
*
@additional_args
)
system
(
{
'COCOAPODS_VERSION'
=>
Pod
::
Version
},
'./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 @
36e302a1
...
@@ -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
(
'./configure'
,
'TestPod'
,
'foo'
).
once
@sut
.
any_instance
.
expects
(
:system
).
with
(
{
'COCOAPODS_VERSION'
=>
Pod
::
Version
},
'./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