Skip to content

Commit b003d10

Browse files
author
Seth Falcon
committed
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.
1 parent ed9b7f4 commit b003d10

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎chef/chef.gemspec‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
require File.dirname(__FILE__) + '/lib/chef/version'
1+
$:.unshift(File.dirname(__FILE__) + '/lib')
2+
require 'chef/version'
23

34
Gem::Specification.new do |s|
45
s.name = 'chef'

0 commit comments

Comments
 (0)