summaryrefslogtreecommitdiff
path: root/lib/chef/version_constraint.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-01-15 13:07:58 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2019-01-15 13:07:58 -0800
commit990974ca5cd44df0c77bb6a12fc57a3c32b92e23 (patch)
tree5779719f58254764e57eb9cacde85837295fd2f6 /lib/chef/version_constraint.rb
parent4be1ebe66460efb0535e500d6ecb52a147346519 (diff)
downloadchef-990974ca5cd44df0c77bb6a12fc57a3c32b92e23.tar.gz
changes for rubocop engine upgrades.lcg/rubocop-upgrades
this is the result of changes to rules we already previously had enabled. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/version_constraint.rb')
-rw-r--r--lib/chef/version_constraint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/version_constraint.rb b/lib/chef/version_constraint.rb
index 6b57cfefe1..bce2a29887 100644
--- a/lib/chef/version_constraint.rb
+++ b/lib/chef/version_constraint.rb
@@ -21,7 +21,7 @@ class Chef
DEFAULT_CONSTRAINT = ">= 0.0.0".freeze
STANDARD_OPS = %w{< > <= >=}.freeze
OPS = %w{< > = <= >= ~>}.freeze
- PATTERN = /^(#{OPS.join('|')}) *([0-9].*)$/
+ PATTERN = /^(#{OPS.join('|')}) *([0-9].*)$/.freeze
VERSION_CLASS = Chef::Version
attr_reader :op, :version