diff options
author | Ryan Cragun <me@ryan.ec> | 2017-04-18 16:46:16 -0700 |
---|---|---|
committer | Ryan Cragun <me@ryan.ec> | 2017-04-20 10:32:12 -0700 |
commit | 9d6d393f56d9da97fe53e3bdd92a2c7bf10fc66d (patch) | |
tree | cafbe5a63a61008e9e8d42018b81d18be2edbb74 /mixlib-authentication.gemspec | |
parent | 0c5c683a23b7d4b6fd2cbb61a2010af2e513aacf (diff) | |
download | mixlib-authentication-9d6d393f56d9da97fe53e3bdd92a2c7bf10fc66d.tar.gz |
[CLOUD-319] Make mixlib-log an optional dependency
This change makes mixlib-log an optional dependency. When it's available
in the LOAD_PATH it will be used by default, otherwise, all logging will
will be forwarded to a null logger that does nothing. This is useful for
cases where small utilities can consume mixlib-authentication and not
have to pull in additional gems.
Signed-off-by: Ryan Cragun <me@ryan.ec>
Diffstat (limited to 'mixlib-authentication.gemspec')
-rw-r--r-- | mixlib-authentication.gemspec | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mixlib-authentication.gemspec b/mixlib-authentication.gemspec index 65cd629..0830546 100644 --- a/mixlib-authentication.gemspec +++ b/mixlib-authentication.gemspec @@ -12,9 +12,6 @@ Gem::Specification.new do |s| s.email = "info@chef.io" s.homepage = "https://www.chef.io" - # Uncomment this to add a dependency - s.add_dependency "mixlib-log" - s.require_path = "lib" s.files = %w{LICENSE README.md Gemfile Rakefile NOTICE} + Dir.glob("*.gemspec") + Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) } |