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
99cd1a5b
Commit
99cd1a5b
authored
Jul 16, 2012
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy platform name and deployment target seperately.
parent
cae31b0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
spec.rb
lib/cocoapods/command/spec.rb
+1
-1
spec_spec.rb
spec/unit/command/spec_spec.rb
+2
-2
No files found.
lib/cocoapods/command/spec.rb
View file @
99cd1a5b
...
@@ -257,7 +257,7 @@ module Pod
...
@@ -257,7 +257,7 @@ module Pod
podspec
=
file
.
realpath
.
to_s
podspec
=
file
.
realpath
.
to_s
platform
=
@platform
platform
=
@platform
podfile
=
Pod
::
Podfile
.
new
do
podfile
=
Pod
::
Podfile
.
new
do
platform
(
platform
)
platform
(
platform
.
to_sym
,
platform
.
deployment_target
)
pod
name
,
:podspec
=>
podspec
pod
name
,
:podspec
=>
podspec
end
end
podfile
podfile
...
...
spec/unit/command/spec_spec.rb
View file @
99cd1a5b
...
@@ -61,7 +61,7 @@ describe "Pod::Command::Spec::Linter" do
...
@@ -61,7 +61,7 @@ describe "Pod::Command::Spec::Linter" do
linter
.
warnings
.
should
.
not
.
be
.
empty
linter
.
warnings
.
should
.
not
.
be
.
empty
end
end
it
"validates in lenient mode if there are no erros but there are warnings"
do
it
"validates in lenient mode if there are no erro
r
s but there are warnings"
do
spec
,
file
=
write_podspec
(
stub_podspec
(
/.*license.*/
,
""
))
spec
,
file
=
write_podspec
(
stub_podspec
(
/.*license.*/
,
""
))
linter
=
Pod
::
Command
::
Spec
::
Linter
.
new
(
spec
)
linter
=
Pod
::
Command
::
Spec
::
Linter
.
new
(
spec
)
linter
.
lenient
,
linter
.
quick
=
true
,
true
linter
.
lenient
,
linter
.
quick
=
true
,
true
...
@@ -107,7 +107,7 @@ describe "Pod::Command::Spec::Linter" do
...
@@ -107,7 +107,7 @@ describe "Pod::Command::Spec::Linter" do
linter
.
errors
.
join
(
' | '
).
should
.
include
"The resources did not match any file"
linter
.
errors
.
join
(
' | '
).
should
.
include
"The resources did not match any file"
end
end
it
"
U
ses the deployment target of the specification"
do
it
"
u
ses the deployment target of the specification"
do
spec
,
file
=
write_podspec
(
stub_podspec
)
spec
,
file
=
write_podspec
(
stub_podspec
)
spec
.
stubs
(
:available_platforms
).
returns
([
Pod
::
Platform
.
new
(
:ios
,
"5.0"
)])
spec
.
stubs
(
:available_platforms
).
returns
([
Pod
::
Platform
.
new
(
:ios
,
"5.0"
)])
linter
=
Pod
::
Command
::
Spec
::
Linter
.
new
(
spec
)
linter
=
Pod
::
Command
::
Spec
::
Linter
.
new
(
spec
)
...
...
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