Skip to content

Commit

Permalink
[Spec::Linter] Support for YAML specs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed May 15, 2013
1 parent 13f9004 commit 81120f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cocoapods-core/specification/linter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def run_validation_hooks(attributes)
#
def _validate_name(n)
if spec.name && file
names_match = (file.basename.to_s == spec.root.name + '.podspec')
names_match = (file.basename.to_s == spec.root.name + '.podspec') || (file.basename.to_s == spec.root.name + '.podspec.yaml')
unless names_match
error "The name of the spec should match the name of the file."
end
Expand Down

0 comments on commit 81120f6

Please sign in to comment.