Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[Platform] Specify deployment target only on initialization.

  • Loading branch information...
commit d0ebef6a7a38e2c259dd20de4edda1b99e61df98 1 parent 7bf8692
Fabio Pelosin irrationalfab authored

Showing 2 changed files with 0 additions and 14 deletions. Show diff stats Hide diff stats

  1. +0 6 lib/cocoapods/platform.rb
  2. +0 8 spec/unit/platform_spec.rb
6 lib/cocoapods/platform.rb
@@ -88,12 +88,6 @@ def name
88 88 #
89 89 attr_reader :declared_deployment_target
90 90
91   - # @todo Deprecate
92   - #
93   - def deployment_target= (version)
94   - @deployment_target = Pod::Version.create(version)
95   - end
96   -
97 91 # @param [Platform, Symbol] other The other platform to check.
98 92 #
99 93 # @note If a symbol is passed the comparison does not take into account
8 spec/unit/platform_spec.rb
@@ -56,14 +56,6 @@
56 56 p.deployment_target.should == Pod::Version.new('4.0.0')
57 57 end
58 58
59   - it "allows to specify the deployment target after initialization" do
60   - p = Pod::Platform.new(:ios, '4.0.0')
61   - p.deployment_target = '4.0.0'
62   - p.deployment_target.should == Pod::Version.new('4.0.0')
63   - p.deployment_target = Pod::Version.new('4.0.0')
64   - p.deployment_target.should == Pod::Version.new('4.0.0')
65   - end
66   -
67 59 it "provides a default deployment target on initialization" do
68 60 p = Pod::Platform.new(:ios)
69 61 p.deployment_target.should == Pod::Version.new('4.3')

0 comments on commit d0ebef6

Please sign in to comment.
Something went wrong with that request. Please try again.