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
a942ac10
Commit
a942ac10
authored
May 04, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Command::Spec::Linter] Minor improvements.
parent
43d8dc6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
spec.rb
lib/cocoapods/command/spec.rb
+12
-11
No files found.
lib/cocoapods/command/spec.rb
View file @
a942ac10
...
...
@@ -220,7 +220,9 @@ module Pod
def
peform_multiplatform_analysis
platform_names
.
each
do
|
platform_name
|
set_up_lint_environment
puts
"
\n\n
#{
spec
}
- Analyzing on
#{
Platform
.
new
platform_name
}
platform."
.
green
.
reversed
if
config
.
verbose?
install_pod
(
platform_name
)
puts
"Building with xcodebuild.
\n
"
.
yellow
if
config
.
verbose?
xcodebuild_output
.
concat
(
xcodebuild_output_for_platfrom
(
platform_name
))
file_patterns_errors
.
concat
(
file_patterns_errors_for_platfrom
(
platform_name
))
tear_down_lint_environment
...
...
@@ -232,13 +234,21 @@ module Pod
end
def
install_pod
(
platform_name
)
puts
"
\n\n
#{
spec
}
- generating build errors for
#{
platform_name
}
platform"
.
yellow
.
reversed
if
config
.
verbose?
podfile
=
podfile_from_spec
(
platform_name
)
config
.
verbose
Installer
.
new
(
podfile
).
install!
config
.
silent
end
def
podfile_from_spec
(
platform_name
)
name
=
spec
.
name
podspec
=
file
.
realpath
.
to_s
podfile
=
Pod
::
Podfile
.
new
do
platform
platform_name
dependency
name
,
:podspec
=>
podspec
end
end
def
set_up_lint_environment
tmp_dir
.
rmtree
if
tmp_dir
.
exist?
tmp_dir
.
mkpath
...
...
@@ -334,7 +344,7 @@ module Pod
def
deprecation_warnings
text
=
@file
.
read
deprecations
=
[]
deprecations
<<
"`config.ios?' and `config.osx
' will be removed in version 0.7"
if
text
.
=
~
/config\..os
?/
deprecations
<<
"`config.ios?' and `config.osx
?' are deprecated and will be removed in version 0.7"
if
text
.
=
~
/config\..?os.
?/
deprecations
<<
"The `post_install' hook is reserved for edge cases"
if
text
.
=
~
/post_install/
deprecations
end
...
...
@@ -366,15 +376,6 @@ module Pod
messages
end
def
podfile_from_spec
(
platform_name
)
name
=
spec
.
name
podspec
=
file
.
realpath
.
to_s
podfile
=
Pod
::
Podfile
.
new
do
platform
platform_name
dependency
name
,
:podspec
=>
podspec
end
end
def
process_xcode_build_output
(
output
)
output_by_line
=
output
.
split
(
"
\n
"
)
selected_lines
=
output_by_line
.
select
do
|
l
|
...
...
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