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
d0ebef6a
Commit
d0ebef6a
authored
Jun 09, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Platform] Specify deployment target only on initialization.
parent
7bf8692c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
platform.rb
lib/cocoapods/platform.rb
+0
-6
platform_spec.rb
spec/unit/platform_spec.rb
+0
-8
No files found.
lib/cocoapods/platform.rb
View file @
d0ebef6a
...
@@ -88,12 +88,6 @@ module Pod
...
@@ -88,12 +88,6 @@ module Pod
#
#
attr_reader
:declared_deployment_target
attr_reader
:declared_deployment_target
# @todo Deprecate
#
def
deployment_target
=
(
version
)
@deployment_target
=
Pod
::
Version
.
create
(
version
)
end
# @param [Platform, Symbol] other The other platform to check.
# @param [Platform, Symbol] other The other platform to check.
#
#
# @note If a symbol is passed the comparison does not take into account
# @note If a symbol is passed the comparison does not take into account
...
...
spec/unit/platform_spec.rb
View file @
d0ebef6a
...
@@ -56,14 +56,6 @@ describe Pod::Platform do
...
@@ -56,14 +56,6 @@ describe Pod::Platform do
p
.
deployment_target
.
should
==
Pod
::
Version
.
new
(
'4.0.0'
)
p
.
deployment_target
.
should
==
Pod
::
Version
.
new
(
'4.0.0'
)
end
end
it
"allows to specify the deployment target after initialization"
do
p
=
Pod
::
Platform
.
new
(
:ios
,
'4.0.0'
)
p
.
deployment_target
=
'4.0.0'
p
.
deployment_target
.
should
==
Pod
::
Version
.
new
(
'4.0.0'
)
p
.
deployment_target
=
Pod
::
Version
.
new
(
'4.0.0'
)
p
.
deployment_target
.
should
==
Pod
::
Version
.
new
(
'4.0.0'
)
end
it
"provides a default deployment target on initialization"
do
it
"provides a default deployment target on initialization"
do
p
=
Pod
::
Platform
.
new
(
:ios
)
p
=
Pod
::
Platform
.
new
(
:ios
)
p
.
deployment_target
.
should
==
Pod
::
Version
.
new
(
'4.3'
)
p
.
deployment_target
.
should
==
Pod
::
Version
.
new
(
'4.3'
)
...
...
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