Skip to content

Commit 491c352

Browse files
committedJun 27, 2024·
fixed reverse logic in RubyVersion ParseName
1 parent b84d3e1 commit 491c352

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎PluginOptions/RubyVersion.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public static partial class RubyVersionExtensions
3434
public static RubyVersion ParseName(string versionPattern)
3535
{
3636
var rubyVersion = ParseSemanticVersion(versionPattern);
37-
if (rubyVersion.AtLeast(MinSupportedVersion))
37+
if (!rubyVersion.AtLeast(MinSupportedVersion))
3838
throw new ArgumentException($"Provided version {rubyVersion} exceeds min version {MinSupportedVersion}");
39-
if (rubyVersion.AtMost(MaxSupportedVersion))
39+
if (!rubyVersion.AtMost(MaxSupportedVersion))
4040
throw new ArgumentException($"Provided version {rubyVersion} exceeds max version {MaxSupportedVersion}");
4141
return rubyVersion;
4242
}

0 commit comments

Comments
 (0)