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
bc63080b
Commit
bc63080b
authored
Mar 25, 2018
by
Dimitris Koutsogiorgas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inhibit warnings for all dependencies during validation except for the one being validated
parent
377d9cdf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
CHANGELOG.md
CHANGELOG.md
+3
-1
validator.rb
lib/cocoapods/validator.rb
+6
-4
validator_spec.rb
spec/unit/validator_spec.rb
+7
-0
No files found.
CHANGELOG.md
View file @
bc63080b
...
...
@@ -12,7 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
*
None.
*
Inhibit warnings for all dependencies during validation except for the one being validated
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#7434
](
https://github.com/CocoaPods/CocoaPods/issues/7434
)
## 1.5.0.beta.1 (2018-03-23)
...
...
lib/cocoapods/validator.rb
View file @
bc63080b
...
...
@@ -808,20 +808,22 @@ module Pod
urls
=
source_urls
Pod
::
Podfile
.
new
do
install!
'cocoapods'
,
:deterministic_uuids
=>
false
# By default inhibit warnings for all pods, except the one being validated.
inhibit_all_warnings!
urls
.
each
{
|
u
|
source
(
u
)
}
target
'App'
do
use_frameworks!
(
use_frameworks
)
platform
(
platform_name
,
deployment_target
)
if
local
pod
name
,
:path
=>
podspec
.
dirname
.
to_s
pod
name
,
:path
=>
podspec
.
dirname
.
to_s
,
:inhibit_warnings
=>
false
else
pod
name
,
:podspec
=>
podspec
.
to_s
pod
name
,
:podspec
=>
podspec
.
to_s
,
:inhibit_warnings
=>
false
end
test_spec_names
.
each
do
|
test_spec_name
|
if
local
pod
test_spec_name
,
:path
=>
podspec
.
dirname
.
to_s
pod
test_spec_name
,
:path
=>
podspec
.
dirname
.
to_s
,
:inhibit_warnings
=>
false
else
pod
test_spec_name
,
:podspec
=>
podspec
.
to_s
pod
test_spec_name
,
:podspec
=>
podspec
.
to_s
,
:inhibit_warnings
=>
false
end
end
end
...
...
spec/unit/validator_spec.rb
View file @
bc63080b
...
...
@@ -395,6 +395,13 @@ module Pod
(
!!
target_definition
.
uses_frameworks?
).
should
==
false
# rubocop:enable Style/DoubleNegation
end
it
'inhibits warnings for all pods except the one being validated'
do
podfile
=
@validator
.
send
(
:podfile_from_spec
,
:ios
,
'5.0'
)
target_definition
=
podfile
.
target_definitions
[
'App'
]
target_definition
.
should
.
not
.
inhibits_warnings_for_pod?
(
'JSONKit'
)
target_definition
.
should
.
inhibits_warnings_for_pod?
(
'NotJSONKit'
)
end
end
it
'empties sources when no dependencies'
do
...
...
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