sinsoku / gems_comparator

GemsComparator generates GitHub's compare view urls from Gemfile.lock
MIT License
9 stars 4 forks source link

Support for 4 digits version numbers #7

Closed hana-da closed 2 years ago

hana-da commented 2 years ago

Hi @sinsoku ,

I've added support for version numbers like Rails, where the version number may have 4 digits.

before

GemsComparator::GithubRepository.new('https://github.com/rails/rails').compare('7.0.2', '7.0.2.2')
# => "https://github.com/rails/rails/compare/v7.0.2.2...v7.0.2.2"

after

GemsComparator::GithubRepository.new('https://github.com/rails/rails').compare('7.0.2', '7.0.2.2')
# => "https://github.com/rails/rails/compare/v7.0.2...v7.0.2.2"
sinsoku commented 2 years ago

Thanks