summaryrefslogtreecommitdiff
path: root/lib/chef/version_constraint.rb
diff options
context:
space:
mode:
authorXabier de Zuazo <xabier.zuazo@evandti.com>2013-06-23 13:33:50 +0200
committerXabier de Zuazo <xabier.zuazo@evandti.com>2013-06-23 13:33:50 +0200
commit02ee78c8e21c7708b33ce4a622d24d26dbbf84d7 (patch)
treef698423293f81665946498e3d3cf2b21ff496ea2 /lib/chef/version_constraint.rb
parent750eecd2120c69ff0dc53bfbe5b7514920541413 (diff)
downloadchef-02ee78c8e21c7708b33ce4a622d24d26dbbf84d7.tar.gz
[CHEF-4298] dependencies in metadata.rb require a space
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 cc213abb3d..38686441a8 100644
--- a/lib/chef/version_constraint.rb
+++ b/lib/chef/version_constraint.rb
@@ -21,7 +21,7 @@ class Chef
DEFAULT_CONSTRAINT = ">= 0.0.0"
STANDARD_OPS = %w(< > <= >=)
OPS = %w(< > = <= >= ~>)
- PATTERN = /^(#{OPS.join('|')}) (.+)$/
+ PATTERN = /^(#{OPS.join('|')}) *([0-9].*)$/
VERSION_CLASS = Chef::Version
attr_reader :op, :version