dependabot-common 0.98.42 → 0.98.43

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03f4f32d3cc711c1fa8bb7941c1c9fe72cfd642c507a786f69e23583e89b1de0
4
- data.tar.gz: 8979bf8319fc18128e267126dfa642abbe2755f2d0c188b2fad217adce4d61ee
3
+ metadata.gz: 22887ffbf044ddfbcb0ce034b3388690e32a197bed5de1242a41028f57604582
4
+ data.tar.gz: 62a46e53168ce9e06fc577110f88b3bf82fbca70095b506c49eec09606c3a484
5
5
  SHA512:
6
- metadata.gz: 4e0e8d9622c45424384a720b813d39ca1a889365c0787bedaef7439deb27f3741db7fc5f097fdd6a5f7e9389126cfef8c5f53cef0256675db039cd371a6ac9fb
7
- data.tar.gz: 7fa2856f07697019a301ff2f1597373e9c076e29b30cad089b554992dfa2d66cb2cc59eff6572f8ad5e763b5f7584ac21b901b52bd90a20ab7800602bb4d38d8
6
+ metadata.gz: cd3aee9c6b7dc849896cd132feacb2ccfecaf8736e01ba09329eaf890d658b008608d89c599605f1d73495e7e49ade0d64511a6bc9a9f10722691367775ad5ca
7
+ data.tar.gz: c822607dc2afa37c468d2ad0c42cb8e898250603185b4333541ad4d53fd876f21e4d4c39797e4b6e5fc8bd253f204a3b54280d81c6a498bd2838bbe68e948417
@@ -113,9 +113,12 @@ module Dependabot
113
113
  releases.reject do |release|
114
114
  cleaned_tag = release.tag_name.gsub(/^[^0-9]*/, "")
115
115
  cleaned_name = release.name&.gsub(/^[^0-9]*/, "")
116
+ dot_count = [cleaned_tag, cleaned_name].compact.reject(&:empty?).
117
+ map { |nm| nm.chars.count(".") }.max
116
118
 
117
119
  tag_version = [cleaned_tag, cleaned_name].compact.reject(&:empty?).
118
120
  select { |nm| version_class.correct?(nm) }.
121
+ select { |nm| nm.chars.count(".") == dot_count }.
119
122
  map { |nm| version_class.new(nm) }.max
120
123
 
121
124
  next conservative unless tag_version
@@ -132,9 +135,12 @@ module Dependabot
132
135
  releases.reject do |release|
133
136
  cleaned_tag = release.tag_name.gsub(/^[^0-9]*/, "")
134
137
  cleaned_name = release.name&.gsub(/^[^0-9]*/, "")
138
+ dot_count = [cleaned_tag, cleaned_name].compact.reject(&:empty?).
139
+ map { |nm| nm.chars.count(".") }.max
135
140
 
136
141
  tag_version = [cleaned_tag, cleaned_name].compact.reject(&:empty?).
137
142
  select { |nm| version_class.correct?(nm) }.
143
+ select { |nm| nm.chars.count(".") == dot_count }.
138
144
  map { |nm| version_class.new(nm) }.min
139
145
 
140
146
  next conservative unless tag_version
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.98.42"
4
+ VERSION = "0.98.43"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.98.42
4
+ version: 0.98.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot