README.md in hanami-assets-0.3.0 vs README.md in hanami-assets-0.4.0
- old
+ new
@@ -23,11 +23,11 @@
* Forum: https://discuss.hanamirb.org
* Chat: http://chat.hanamirb.org
## Rubies
-__Hanami::Assets__ supports Ruby (MRI) 2.2+
+__Hanami::Assets__ supports Ruby (MRI) 2.3+ and JRuby 9.1.5.0+
## Installation
Add this line to your application's Gemfile:
@@ -370,22 +370,22 @@
javascript_compressor MyJavascriptCompressor.new
stylesheet_compressor MyStylesheetCompressor.new
end
```
-### Digest Mode
+### Fingerprint Mode
This is a mode that can be activated via configuration and it's suitable for production environments.
-When generating files, it adds a string to the end of each file name, which is a cachesum of its contents.
+When generating files, it adds a string to the end of each file name, which is a [checksum](https://en.wikipedia.org/wiki/Checksum) of its contents.
This lets you leverage caching while still ensuring that clients get the most up-to-date assets (this is known as *cache busting*).
```ruby
Hanami::Assets.configure do
- digest true
+ fingerprint true
end
```
-Once turned on, it will look at `/public/assets.json`, and helpers such as `javascript` will return a relative URL that includes the digest of the asset.
+Once turned on, it will look at `/public/assets.json`, and helpers such as `javascript` will return a relative URL that includes the fingerprint of the asset.
```erb
<%= javascript 'application' %>
```