Skip to content

Commit ce952c1

Browse files
hsbtclaude
andcommitted
Pin that cooldown is inactive without publish dates
The legacy dependency API exposes no per-version publish dates, so the cooldown filter has nothing to compare against and silently does nothing. Document that limitation as a regression guard rather than a surprise. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c3ba220 commit ce952c1

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

spec/install/cooldown_spec.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,4 +488,28 @@
488488
expect(the_bundle).to include_gems("upgradable 3.0.0")
489489
end
490490
end
491+
492+
context "with a source that does not provide publish dates" do
493+
before do
494+
build_repo3 do
495+
build_gem "ripe_gem", "1.0.0"
496+
build_gem "ripe_gem", "2.0.0"
497+
end
498+
end
499+
500+
it "cannot apply cooldown and installs the latest version" do
501+
# The legacy dependency API does not expose per-version publish dates, so
502+
# the cooldown filter has nothing to compare against and is silently
503+
# inactive. This pins that limitation; flip the expectation if publish
504+
# dates ever become available over this endpoint.
505+
gemfile <<-G
506+
source "https://gem.repo3", cooldown: 7
507+
gem "ripe_gem"
508+
G
509+
510+
bundle "install", artifice: "endpoint"
511+
512+
expect(the_bundle).to include_gems("ripe_gem 2.0.0")
513+
end
514+
end
491515
end

0 commit comments

Comments
 (0)