diff options
author | Seth Falcon <seth@opscode.com> | 2010-11-09 15:06:56 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2011-02-03 17:58:17 -0800 |
commit | 7e4835cf9f10c997f1d749dcfc5c783b2e3cae62 (patch) | |
tree | 6bb08c594d5538f635876e2c9396c4c5f2406d32 | |
parent | c0ae34a9f2c54ddc16b9ad22f88e5352d29c46ca (diff) | |
download | chef-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.gemspec | 3 |
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' |