Skip to content

Commit

Permalink
Merge pull request #376 from dnkoutso/fix_typo
Browse files Browse the repository at this point in the history
Fix typo in `specification.rb`
  • Loading branch information
orta authored May 27, 2017
2 parents 6249077 + 84a3b72 commit 147bea2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

##### Bug Fixes

* None.
* Fix typo in `specification.rb`
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#376](https://github.com/CocoaPods/Core/pull/376)


## 1.2.1 (2017-04-11)
Expand Down
6 changes: 3 additions & 3 deletions lib/cocoapods-core/specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def recursive_subspecs
#
# @return [Specification] the subspec with the given name or self.
#
def subspec_by_name(relative_name, raise_if_missing = true, include_test_specications = false)
def subspec_by_name(relative_name, raise_if_missing = true, include_test_specifications = false)
if relative_name.nil? || relative_name == base_name
self
elsif relative_name.downcase == base_name.downcase
Expand All @@ -264,7 +264,7 @@ def subspec_by_name(relative_name, raise_if_missing = true, include_test_specica
else
remainder = relative_name[base_name.size + 1..-1]
subspec_name = remainder.split('/').shift
subspec = subspecs.find { |s| s.base_name == subspec_name && (include_test_specications || !s.test_specification?) }
subspec = subspecs.find { |s| s.base_name == subspec_name && (include_test_specifications || !s.test_specification?) }
unless subspec
if raise_if_missing
raise Informative, 'Unable to find a specification named ' \
Expand All @@ -273,7 +273,7 @@ def subspec_by_name(relative_name, raise_if_missing = true, include_test_specica
return nil
end
end
subspec.subspec_by_name(remainder, raise_if_missing, include_test_specications)
subspec.subspec_by_name(remainder, raise_if_missing, include_test_specifications)
end
end

Expand Down

0 comments on commit 147bea2

Please sign in to comment.