Permalink
Browse files

[GitHubDataProvider,FileSystemDataProvider] Sort the pods

  • Loading branch information...
1 parent 4a1be34 commit 7df92f9aa35e420ce1bf8d371b8416c0b67ba5fc @fabiopelosin fabiopelosin committed Dec 2, 2013
@@ -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,
@@ -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,

0 comments on commit 7df92f9

Please sign in to comment.