Skip to content

Commit fd8be7d

Browse files
committed
Improve documentation
1 parent f13f9d5 commit fd8be7d

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## 1.2.0
8-
## Fixed
9-
- Support environments with string literals frozen by default. (thanks @danielmorrison)
10-
117
## 2.0.0
8+
## Added
9+
- Response body compression is now streamed.
1210
## Changed
1311
- Minimum supported version of Rack is 3.0.
1412

13+
## 1.2.0
14+
## Fixed
15+
- Support environments with string literals frozen by default. (thanks @danielmorrison)
16+
1517
## 1.1.0
1618
## Changed
1719
- Removed dependency on `git-version-bump` gem for versioning. `rack-brotli` now only depends on `rack` and `brotli`.

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rack::Brotli [![Gem Version](https://badge.fury.io/rb/rack-brotli.svg)](https://badge.fury.io/rb/rack-brotli) [![Build Status](https://travis-ci.org/marcotc/rack-brotli.svg?branch=master)](https://travis-ci.org/marcotc/rack-brotli)
1+
# Rack::Brotli [![Gem Version](https://badge.fury.io/rb/rack-brotli.svg)](https://badge.fury.io/rb/rack-brotli) [![Build Status](https://github.com/marcotc/rack-brotli/actions/workflows/test.yml/badge.svg)](https://github.com/marcotc/rack-brotli/actions/workflows/test.yml)
22

33
`Rack::Brotli` compresses `Rack` responses using [Google's Brotli](https://github.com/google/brotli) compression algorithm.
44

@@ -17,7 +17,10 @@ Requiring `'rack/brotli'` will autoload `Rack::Brotli` module. The following exa
1717
require 'rack'
1818
require 'rack/brotli'
1919

20-
use Rack::Brotli
20+
use Rack::Brotli # Default compression quality is 5
21+
22+
# You can also provide native Brotli compression options:
23+
# use Rack::Brotli, quality: 11
2124

2225
run theapp
2326
```
@@ -26,10 +29,10 @@ run theapp
2629

2730
To run the entire test suite, run
2831

29-
rake test
32+
bundle exec rake test
3033

3134
### Links
3235

33-
* rack-brotli on GitHub:: <http://github.com/marcotc/rack-brotli>
34-
* Rack:: <http://rack.rubyforge.org/>
35-
* Rack On GitHub:: <http://github.com/rack/rack>
36+
* rack-brotli: <http://github.com/marcotc/rack-brotli>
37+
* Brotli for Ruby: <https://github.com/miyucy/brotli>
38+
* Rack: <http://github.com/rack/rack>

rack-brotli.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
2727
s.extra_rdoc_files = %w[README.md COPYING]
2828

2929
s.add_runtime_dependency 'rack', '>= 3'
30-
s.add_runtime_dependency 'brotli', '>= 0.3'
30+
s.add_runtime_dependency 'brotli', '>= 0.3' # First version with support for streaming compression through Brotli::Writer
3131

3232
s.homepage = "http://github.com/marcotc/rack-brotli/"
3333
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "rack-brotli", "--main", "README"]

0 commit comments

Comments
 (0)