Commit 525180c8 authored by Joshua Kalpin's avatar Joshua Kalpin

Merge pull request #1567 from Kapin/fix-vendored-lib

Fix linter not throwing errors when a vendored library's path is invalid
parents 2d6232ee b2ed460c
...@@ -46,6 +46,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -46,6 +46,10 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[Joshua Kalpin](https://github.com/Kapin) [Joshua Kalpin](https://github.com/Kapin)
[Core#38](https://github.com/CocoaPods/Core/pull/38) [Core#38](https://github.com/CocoaPods/Core/pull/38)
* Vendored Libraries and Vendored Frameworks now have their paths validated correctly.
[Joshua Kalpin](https://github.com/Kapin)
[#1567](https://github.com/CocoaPods/CocoaPods/pull/1567)
## 0.27.1 ## 0.27.1
[CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.26.2...0.27.1) [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.26.2...0.27.1)
......
...@@ -250,7 +250,7 @@ module Pod ...@@ -250,7 +250,7 @@ module Pod
# @return [void] # @return [void]
# #
def check_file_patterns def check_file_patterns
[:source_files, :resources, :preserve_paths].each do |attr_name| [:source_files, :resources, :preserve_paths, :vendored_libraries, :vendored_frameworks].each do |attr_name|
# file_attr = Specification::DSL.attributes.values.find{|attr| attr.name == attr_name } # file_attr = Specification::DSL.attributes.values.find{|attr| attr.name == attr_name }
if !file_accessor.spec_consumer.send(attr_name).empty? && file_accessor.send(attr_name).empty? if !file_accessor.spec_consumer.send(attr_name).empty? && file_accessor.send(attr_name).empty?
error "The `#{attr_name}` pattern did not match any file." error "The `#{attr_name}` pattern did not match any file."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment