Skip to content

Commit

Permalink
[GitHubDataProvider,FileSystemDataProvider] sort the pods
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Dec 2, 2013
1 parent 582a227 commit dcb2473
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cocoapods-core/source/file_system_data_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def pods
Dir.entries(specs_dir).select do |entry|
valid_name = !(entry == '.' || entry == '..' || entry == '.git')
valid_name && File.directory?(File.join(specs_dir_as_string, entry))
end
end.sort
end

# @return [Array<String>] All the available versions of a given Pod,
Expand Down
3 changes: 2 additions & 1 deletion lib/cocoapods-core/source/github_data_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def type
#
def pods
root_contents = get_github_contents("Specs")
dir_names(root_contents)
pods = dir_names(root_contents)
pods.sort if pods
end

# @return [Array<String>] All the available versions of a given Pod,
Expand Down

0 comments on commit dcb2473

Please sign in to comment.