diff options
author | Andre Arko <andre@arko.net> | 2015-08-22 20:04:03 -0700 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-01-25 10:45:41 -0600 |
commit | 4f293f8bee21732521683aed9830d2530ccbf325 (patch) | |
tree | 992aad3bbd34aa40012511f55e6308e12fe8c9f5 | |
parent | b3b1f2710101e294f5fbbb84d430595329f94b55 (diff) | |
download | bundler-4f293f8bee21732521683aed9830d2530ccbf325.tar.gz |
update artifice for compact_index 0.9.1
-rw-r--r-- | spec/support/artifice/compact_index.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/support/artifice/compact_index.rb b/spec/support/artifice/compact_index.rb index 5a4ec62c..8b96465a 100644 --- a/spec/support/artifice/compact_index.rb +++ b/spec/support/artifice/compact_index.rb @@ -67,9 +67,11 @@ class CompactIndexAPI < Endpoint file = tmp("versions.list") file.delete if file.file? file = CompactIndex::VersionsFile.new(file.to_path) - versions = gems.group_by {|s| s[:name] } + versions = gems.group_by {|s| s[:name] }.map do |name, versions| + {name: name, versions: versions} + end file.update_with(versions) - CompactIndex.versions(file, []) + CompactIndex.versions(file, nil, {}) end end |