summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Falcon <seth@opscode.com>2010-11-09 15:06:56 -0800
committerBryan McLellan <btm@opscode.com>2011-02-03 17:58:17 -0800
commit7e4835cf9f10c997f1d749dcfc5c783b2e3cae62 (patch)
tree6bb08c594d5538f635876e2c9396c4c5f2406d32
parentc0ae34a9f2c54ddc16b9ad22f88e5352d29c46ca (diff)
downloadchef-7e4835cf9f10c997f1d749dcfc5c783b2e3cae62.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'