summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Falcon <seth@opscode.com>2010-11-09 15:06:56 -0800
committerSeth Falcon <seth@opscode.com>2010-11-09 15:06:56 -0800
commitb003d1007f7cb6b397a528d75579b05d461c651f (patch)
tree5b7e00a79e540c4fff617ab982c667c4ff20cea6
parented9b7f4b35830dca575058535278761abe006e31 (diff)
downloadchef-b003d1007f7cb6b397a528d75579b05d461c651f.tar.gz
CHEF-1858 Use standard require for chef/version in gemspec file
This avoids warnings about already defined constants when using chef as a dependency in a bundler-based project.
-rw-r--r--chef/chef.gemspec3
1 files changed, 2 insertions, 1 deletions
diff --git a/chef/chef.gemspec b/chef/chef.gemspec
index 8c231e20ab..59de4ebf04 100644
--- a/chef/chef.gemspec
+++ b/chef/chef.gemspec
@@ -1,4 +1,5 @@
-require File.dirname(__FILE__) + '/lib/chef/version'
+$:.unshift(File.dirname(__FILE__) + '/lib')
+require 'chef/version'
Gem::Specification.new do |s|
s.name = 'chef'