diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-01-20 14:18:51 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-01-20 14:18:51 -0800 |
commit | 3cafe4bc64f18e8903e92ab67338f9d4fac4328c (patch) | |
tree | ea3f6836b433836cecec60e2d4a82bc5ee58ab7f /chef.gemspec | |
parent | abce41159a2adfbf5d97baee1b0b96b2d2720ce9 (diff) | |
download | chef-3cafe4bc64f18e8903e92ab67338f9d4fac4328c.tar.gz |
Don't ship dev gems in the shipping artifact
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'chef.gemspec')
-rw-r--r-- | chef.gemspec | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chef.gemspec b/chef.gemspec index 11dedca7ff..92277325db 100644 --- a/chef.gemspec +++ b/chef.gemspec @@ -1,4 +1,13 @@ $:.unshift(File.dirname(__FILE__) + "/lib") +vs_path = File.expand_path("chef-utils/lib/chef-utils/version_string.rb", __dir__) + +if File.exist?(vs_path) + # this is the moral equivalent of a require_relative since bundler makes require_relative here fail hard + eval(IO.read(vs_path)) +else + # if the path doesn't exist then we're just in the wild gem and not in the git repo + require "chef-utils/version_string" +end require "chef/version" Gem::Specification.new do |s| |