summaryrefslogtreecommitdiff
path: root/lib/chef/version_constraint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/version_constraint.rb')
-rw-r--r--lib/chef/version_constraint.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/version_constraint.rb b/lib/chef/version_constraint.rb
index f10325f946..6b57cfefe1 100644
--- a/lib/chef/version_constraint.rb
+++ b/lib/chef/version_constraint.rb
@@ -18,9 +18,9 @@ require "chef/version_class"
class Chef
class VersionConstraint
- DEFAULT_CONSTRAINT = ">= 0.0.0"
- STANDARD_OPS = %w{< > <= >=}
- OPS = %w{< > = <= >= ~>}
+ DEFAULT_CONSTRAINT = ">= 0.0.0".freeze
+ STANDARD_OPS = %w{< > <= >=}.freeze
+ OPS = %w{< > = <= >= ~>}.freeze
PATTERN = /^(#{OPS.join('|')}) *([0-9].*)$/
VERSION_CLASS = Chef::Version