summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Cobb <bcobb@uwalumni.com>2014-07-14 11:20:15 -0500
committerBrian Cobb <bcobb@uwalumni.com>2014-07-14 11:20:15 -0500
commitc92ae8f7a5728d499a9dbbf935bd865589432c18 (patch)
tree7673d7ad3949c06ab5ddb03b82c47900300050f5
parentdd18f500bc6b92f6a11b18b819693f43714e5aeb (diff)
downloadchef-c92ae8f7a5728d499a9dbbf935bd865589432c18.tar.gz
VersionConstraint does not need a raw_version attribute
-rw-r--r--lib/chef/version_constraint.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/version_constraint.rb b/lib/chef/version_constraint.rb
index eebbe8307c..a78e32e94f 100644
--- a/lib/chef/version_constraint.rb
+++ b/lib/chef/version_constraint.rb
@@ -24,7 +24,7 @@ class Chef
PATTERN = /^(#{OPS.join('|')}) *([0-9].*)$/
VERSION_CLASS = Chef::Version
- attr_reader :op, :version, :raw_version
+ attr_reader :op, :version
def initialize(constraint_spec=DEFAULT_CONSTRAINT)
case constraint_spec
@@ -106,7 +106,7 @@ class Chef
@op = $1
@raw_version = $2
@version = self.class::VERSION_CLASS.new(@raw_version)
- if raw_version.split('.').size <= 2
+ if @raw_version.split('.').size <= 2
@missing_patch_level = true
end
else