Skip to content

Commit

Permalink
Merge pull request #2282 from reitermarkus/cask-versions-string
Browse files Browse the repository at this point in the history
Make `timestamped_versions` return an array of strings.
  • Loading branch information
reitermarkus authored Mar 7, 2017
2 parents 0a0c305 + ae8627e commit 394f9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cask/lib/hbc/cask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def timestamped_versions
Pathname.glob(metadata_master_container_path.join("*", "*"))
.map { |p| p.relative_path_from(metadata_master_container_path) }
.sort_by(&:basename) # sort by timestamp
.map(&:split)
.map { |p| p.split.map(&:to_s) }
end

def versions
Expand Down

0 comments on commit 394f9fa

Please sign in to comment.