summaryrefslogtreecommitdiff
path: root/lib/chef/version_constraint.rb
diff options
context:
space:
mode:
authorBrian Cobb <bcobb@uwalumni.com>2014-07-14 08:06:36 -0500
committerBrian Cobb <bcobb@uwalumni.com>2014-07-14 08:06:36 -0500
commitff3ff93a1cf762024169016f78dd4c45c9dd5a76 (patch)
treef52d7d213d7e742053b8a545f27c285678d71c61 /lib/chef/version_constraint.rb
parent3ec42a522a5b40d1ef217f23831b7417bda65761 (diff)
downloadchef-ff3ff93a1cf762024169016f78dd4c45c9dd5a76.tar.gz
Version constraints only show patch level if one is given
Diffstat (limited to 'lib/chef/version_constraint.rb')
-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 7bfde41e74..eebbe8307c 100644
--- a/lib/chef/version_constraint.rb
+++ b/lib/chef/version_constraint.rb
@@ -50,11 +50,11 @@ class Chef
end
def inspect
- "(#{@op} #{@version})"
+ "(#{to_s})"
end
def to_s
- "#{@op} #{@version}"
+ "#{@op} #{@raw_version}"
end
def eql?(o)