Skip to content

Commit

Permalink
Apply change to python
Browse files Browse the repository at this point in the history
  • Loading branch information
amazimbe committed Oct 22, 2024
1 parent 9710ee6 commit bcacd95
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/lib/dependabot/python/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ def dev_cmp_key
T.must(dev)
end

sig { returns(String) }
def lowest_prerelease_suffix
"dev0"
end

private

sig { params(other: Dependabot::Python::Version).returns(Integer) }
Expand Down
8 changes: 8 additions & 0 deletions python/spec/dependabot/python/version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,14 @@
end
end

describe "#lowest_prerelease_suffix" do
subject { version.lowest_prerelease_suffix }

let(:version_string) { "1.2.3" }

it { is_expected.to eq "dev0" }
end

describe "compatibility with Gem::Requirement" do
subject { requirement.satisfied_by?(version) }

Expand Down

0 comments on commit bcacd95

Please sign in to comment.