Skip to content

Commit

Permalink
Reduce published gem size (#113)
Browse files Browse the repository at this point in the history
This change reduces the published gem size by excluding unneeded files for execution.
  • Loading branch information
ybiquitous authored Aug 17, 2023
1 parent b9f9c0c commit 4e03819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trino-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
gem.homepage = "https://github.com/treasure-data/trino-client-ruby"
gem.license = "Apache-2.0"

gem.files = `git ls-files`.split($\)
gem.files = `git ls-files -z`.split("\x0").reject { |f| f.start_with?(*%w[.git .standard modelgen spec trino-client-ruby Gemfile Rakefile publish.rb release.rb]) }
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
gem.require_paths = ["lib"]

Expand Down

0 comments on commit 4e03819

Please sign in to comment.