Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Reduce distributed files in the gem #17

Closed
wants to merge 1 commit into from

Conversation

igas
Copy link

@igas igas commented Apr 1, 2021

Description

I reduced the files distributed with the gem, in particular executables, it's a development scripts, they got put into the user $PATH and also conflict with other gems that I plan to send similar PRs too.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • rake build
  • cd pkg
  • tar xf simplecov-material-1.0.0.gem
  • data.tar.gz
  • ls and made sure only relevant files there

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@@ -22,10 +22,16 @@ Gem::Specification.new do |spec|
spec.metadata["changelog_uri"] = "https://github.com/chiefpansancolt/simplecov-material/blob/master/CHANGELOG.md"
spec.metadata["bug_tracker_uri"] = "https://github.com/chiefpansancolt/simplecov-material/issues"

spec.files = `git ls-files`.split("\n")
spec.bindir = "bin"
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spec.files = `git ls-files`.split("\n")
spec.bindir = "bin"
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@zubin zubin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@igas igas deleted the minimise-shipped-files branch June 16, 2022 16:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants