Skip to content

Commit e8d7639

Browse files
authored
Reduce gem size (#233)
* 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.
1 parent f023dbf commit e8d7639

File tree

5 files changed

+3
-1
lines changed

5 files changed

+3
-1
lines changed

images/dragons.png

-16.4 KB
Binary file not shown.

images/ed25519.png

-91.2 KB
Binary file not shown.

images/hash.png

-15.5 KB
Loading

images/logo.png

-7.43 KB
Loading

rbnacl.gemspec

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ Gem::Specification.new do |spec|
2323
"source_code_uri" => "#{spec.homepage}/tree/v#{spec.version}",
2424
"wiki_uri" => "#{spec.homepage}/wiki"
2525
}
26-
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
26+
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR).reject do |f|
27+
f.start_with?("images/", "spec/", "tasks/", "Rakefile")
28+
end
2729
spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
2830
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
2931
spec.require_paths = ["lib"]

0 commit comments

Comments
 (0)