diff options
author | Brian Cobb <bcobb@uwalumni.com> | 2014-07-14 11:20:15 -0500 |
---|---|---|
committer | Brian Cobb <bcobb@uwalumni.com> | 2014-07-14 11:20:15 -0500 |
commit | c92ae8f7a5728d499a9dbbf935bd865589432c18 (patch) | |
tree | 7673d7ad3949c06ab5ddb03b82c47900300050f5 /lib/chef/version_constraint.rb | |
parent | dd18f500bc6b92f6a11b18b819693f43714e5aeb (diff) | |
download | chef-c92ae8f7a5728d499a9dbbf935bd865589432c18.tar.gz |
VersionConstraint does not need a raw_version attribute
Diffstat (limited to 'lib/chef/version_constraint.rb')
-rw-r--r-- | lib/chef/version_constraint.rb | 4 |
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 |