Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zealot128
Copy link
Contributor

Background: I want to use gitlab gem to run in a CLI and vendor all the dependencies. Gitlab was the largest with over 1MB. Granted, compared to node_modules the overhead is tiny, but nevertheless there are some needless configs that are shipped with the Gem but never needed for a usage.

Removed /specs + Docker configs + Dev configs

Size of the unzipped gem dir:
Before: 1,4MB
After: 380KB (-72%)

Instead of reject { .. regex } one could use grep_v, which is available from Ruby 2.3. I was not sure, if you are supporting Ruby 2.2 and lower though.

…uted gem

Removed Specs + Docker configs + Dev configs

Before: 1,4MB
After: 380KB
@NARKOZ
Copy link
Owner

NARKOZ commented Jun 16, 2018

LGTM 👍

Instead of reject { .. regex } one could use grep_v, which is available from Ruby 2.3. I was not sure, if you are supporting Ruby 2.2 and lower though.

No, we don't support Ruby 2.2 anymore as it reached EOL. https://www.ruby-lang.org/en/downloads/branches/

@NARKOZ NARKOZ merged commit e26d583 into NARKOZ:master Jul 27, 2018
@NARKOZ
Copy link
Owner

NARKOZ commented Jul 27, 2018

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants