summaryrefslogtreecommitdiff
path: root/lib/chef/version
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/version')
-rw-r--r--lib/chef/version/platform.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/version/platform.rb b/lib/chef/version/platform.rb
index 426d3d9834..07b1a17b11 100644
--- a/lib/chef/version/platform.rb
+++ b/lib/chef/version/platform.rb
@@ -22,7 +22,7 @@ class Chef
protected
- def parse(str="")
+ def parse(str = "")
@major, @minor, @patch =
case str.to_s
when /^(\d+)\.(\d+)\.(\d+)$/
@@ -31,7 +31,7 @@ class Chef
[ $1.to_i, $2.to_i, 0 ]
when /^(\d+)$/
[ $1.to_i, 0, 0 ]
- when /^(\d+).(\d+)-[a-z]+\d?(-p(\d+))?$/i # Match FreeBSD
+ when /^(\d+).(\d+)-[a-z]+\d?(-p(\d+))?$/i # Match FreeBSD
[ $1.to_i, $2.to_i, ($4 ? $4.to_i : 0)]
else
msg = "'#{str}' does not match 'x.y.z', 'x.y' or 'x'"