Skip to content

Commit

Permalink
[Specification] Temporarily support old default_subspecs format
Browse files Browse the repository at this point in the history
Aide the transition to trunk
  • Loading branch information
fabiopelosin committed May 19, 2014
1 parent 15a071e commit a4d3968
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cocoapods-core/specification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ def subspec_by_name(relative_name)
# @return [Array] the name of the default subspecs if provided.
#
def default_subspecs
Array(attributes_hash['default_subspecs'])
# TODO: remove singular form and update the JSON specs.
Array(attributes_hash['default_subspecs'] || attributes_hash['default_subspec'])
end

# Returns the dependencies on subspecs.
Expand Down

0 comments on commit a4d3968

Please sign in to comment.