You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Changelog.md file is quite large--105 KB according to ls:
~/code/rspec-core/ [main] ls -al | grep Changelog.md
-rw-r--r-- 1 myron staff 104657 Feb 19 20:35 Changelog.md
According to rubygems.org, rspec-core 3.10.1 is 161 KB, meaning the Changelog is approximately 65% of the total size of the rspec-core gem.
In my experience, Ruby developers rarely look at the Changelog file within a local gem install. I don't think most ruby developers know the exact directory a gem install ... or bundle install puts gems to even go look there. I think I've only ever looked at Changelogs either on github or in a local git clone. I don't think the value of including Changelog.md in a gem release is high enough to bloat the size of the gem so much.
What do y'all think about excluding it from gem releases? Or, if you do want to include it, you could periodically prune it to the last N versions or something. Whatever policy is chosen here, probably worth doing in the other rspec gems, too.
Thoughts?
The text was updated successfully, but these errors were encountered:
My 2 cents as a user: I don't think it's neccessary to trim the changelog; the size reported by rubygems.org is the size of the .gem file, which is compressed and text files usually compress well. So comparing the uncompressed size of the changelog to the compressed size of the total gem file can lead you to wrong conclusions. The installed size of rspec-core-3.10.1 for me is ~790k:
So while the Changelog does make up a large amount of the gems total size, it's more in the range of 13%.
In environments where you're optimizing for size (e.g. production docker containers), you'd be excluding bundles test group most of the time anyway.
The
Changelog.md
file is quite large--105 KB according tols
:According to rubygems.org, rspec-core 3.10.1 is 161 KB, meaning the Changelog is approximately 65% of the total size of the rspec-core gem.
In my experience, Ruby developers rarely look at the Changelog file within a local gem install. I don't think most ruby developers know the exact directory a
gem install ...
orbundle install
puts gems to even go look there. I think I've only ever looked at Changelogs either on github or in a local git clone. I don't think the value of includingChangelog.md
in a gem release is high enough to bloat the size of the gem so much.What do y'all think about excluding it from gem releases? Or, if you do want to include it, you could periodically prune it to the last N versions or something. Whatever policy is chosen here, probably worth doing in the other rspec gems, too.
Thoughts?
The text was updated successfully, but these errors were encountered: