diff options
author | Seth Falcon <seth@opscode.com> | 2010-11-09 15:06:56 -0800 |
---|---|---|
committer | Seth Falcon <seth@opscode.com> | 2010-11-09 15:06:56 -0800 |
commit | b003d1007f7cb6b397a528d75579b05d461c651f (patch) | |
tree | 5b7e00a79e540c4fff617ab982c667c4ff20cea6 | |
parent | ed9b7f4b35830dca575058535278761abe006e31 (diff) | |
download | chef-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.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' |