We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b84d3e1 commit 491c352Copy full SHA for 491c352
PluginOptions/RubyVersion.cs
@@ -34,9 +34,9 @@ public static partial class RubyVersionExtensions
34
public static RubyVersion ParseName(string versionPattern)
35
{
36
var rubyVersion = ParseSemanticVersion(versionPattern);
37
- if (rubyVersion.AtLeast(MinSupportedVersion))
+ if (!rubyVersion.AtLeast(MinSupportedVersion))
38
throw new ArgumentException($"Provided version {rubyVersion} exceeds min version {MinSupportedVersion}");
39
- if (rubyVersion.AtMost(MaxSupportedVersion))
+ if (!rubyVersion.AtMost(MaxSupportedVersion))
40
throw new ArgumentException($"Provided version {rubyVersion} exceeds max version {MaxSupportedVersion}");
41
return rubyVersion;
42
}
0 commit comments