Skip to content

Commit

Permalink
Reduce gem size (#233)
Browse files Browse the repository at this point in the history
* Delete two unused images

They were used in the Readme, but no longer refenced since b133a1b.

* Reduce size of images

Lossless optimization of two png files, reducing file size by about 33%.
I used ImageOptim[^1] for this task.

[^1]: https://imageoptim.com/mac

* Build a smaller gem

Removing unnecessary files from the built gem, reducing its size.
  • Loading branch information
bquorning authored Oct 15, 2024
1 parent f023dbf commit e8d7639
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1 deletion.
Binary file removed images/dragons.png
Binary file not shown.
Binary file removed images/ed25519.png
Binary file not shown.
Binary file modified images/hash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion rbnacl.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ Gem::Specification.new do |spec|
"source_code_uri" => "#{spec.homepage}/tree/v#{spec.version}",
"wiki_uri" => "#{spec.homepage}/wiki"
}
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR).reject do |f|
f.start_with?("images/", "spec/", "tasks/", "Rakefile")
end
spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
Expand Down

0 comments on commit e8d7639

Please sign in to comment.