From 93af17fe3e3059ed41beb8c9a96d0ccf291377c9 Mon Sep 17 00:00:00 2001 From: Michael Scrivo Date: Thu, 11 Apr 2024 10:23:01 -0400 Subject: [PATCH] chore(build): Only include things that are necessary in gem The main impetus for this change is that because of the Gemfile.lock was being included in the published gem, it's causing our security scanners to go nuts with all the old dependencies listed in it. --- looker-sdk.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/looker-sdk.gemspec b/looker-sdk.gemspec index 55f1278..532c04f 100644 --- a/looker-sdk.gemspec +++ b/looker-sdk.gemspec @@ -18,8 +18,8 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 2.7' s.requirements = 'Looker version 4.0 or later' # informational - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test}/*`.split("\n") + s.files = Dir["lib/**/*", "*.md"] + s.test_files = Dir["test/**/*"] s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = %w(lib) s.add_dependency 'jruby-openssl' if s.platform == :jruby