Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
nanoc-gzip.rb is a nanoc filter that integrates gzip into nanoc. The filter can be combined with the nginx module gzip_static or its equivalent in other web servers.
Defaults
The following example demonstrates the compression of "app.js". The uncompressed version (app.js) and the compressed version (app.js.gz) are both written to disk:
# Rules
require "nanoc-gzip"
compile "/js/app.js" do
write("/js/app.js")
filter(:gzip)
write("/js/app.js.gz")
end
Options
The filter can be configured with "level", and
"strategy" options. Both are integer values. The
default compression level is Zlib::BEST_COMPRESSION
.
And the default strategy is Zlib::DEFAULT_STRATEGY
. The
zlib manual
documents what integers are accepted and what
they represent. Example:
# Rules
require "nanoc-gzip"
compile "/js/app.js" do
write("/js/app.js")
filter(:gzip, {level: Zlib::BEST_SPEED, strategy: Zlib::HUFFMAN_ONLY})
write("/js/app.js.gz")
end
Rubygems.org
nanoc-gzip.rb can be installed via rubygems.org:
gem install nanoc-gzip.rb
FAQs
Unknown package
We found that nanoc-gzip.rb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.