From 6be1f85aa5d498c8ec88212cb255a735edc89131 Mon Sep 17 00:00:00 2001 From: Tom Richards Date: Tue, 22 Oct 2019 00:23:46 -0400 Subject: [PATCH 1/3] Remove spec files from bundled gem --- bugsnag.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bugsnag.gemspec b/bugsnag.gemspec index b5274eff3..69ed50c7b 100644 --- a/bugsnag.gemspec +++ b/bugsnag.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/bugsnag/bugsnag-ruby" s.licenses = ["MIT"] - s.files = `git ls-files`.split("\n").reject {|file| file.start_with? "example/"} + s.files = `git ls-files -z lib`.split("\x0") s.extra_rdoc_files = [ "LICENSE.txt", "README.md", From 303791d67a7a76dd6f1947c18a248ea407c657e4 Mon Sep 17 00:00:00 2001 From: Joe Haines Date: Mon, 3 Aug 2020 10:17:10 +0100 Subject: [PATCH 2/3] Include gemspec and VERSION files These are needed to be able to install the Gem from the built gemfile --- bugsnag.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bugsnag.gemspec b/bugsnag.gemspec index 69ed50c7b..a66724405 100644 --- a/bugsnag.gemspec +++ b/bugsnag.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/bugsnag/bugsnag-ruby" s.licenses = ["MIT"] - s.files = `git ls-files -z lib`.split("\x0") + s.files = `git ls-files -z lib bugsnag.gemspec VERSION`.split("\x0") s.extra_rdoc_files = [ "LICENSE.txt", "README.md", From 45b1df6ac2c22f18e1225b1c6fd643405b18708f Mon Sep 17 00:00:00 2001 From: Joe Haines Date: Mon, 3 Aug 2020 14:05:56 +0100 Subject: [PATCH 3/3] Add changelog entry --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec3a9c888..1d85e7df5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,10 @@ Changelog * Add support for runtime versions to Delayed Job, Mailman and Shoryuken integrations | [#620](https://github.com/bugsnag/bugsnag-ruby/pull/620) +* Reduce the size of the bundled gem + | [#571](https://github.com/bugsnag/bugsnag-ruby/pull/571) + | [t-richards](https://github.com/t-richards) + ## Fixes * The `app_type` configuration option should no longer be overwritten by Bugsnag and integrations should set this more consistently