ruby-brs 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -16
- data/lib/brs/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a66abcbdc6c29138075e622a75c3af830c333b3534429d97c57d08f568e0c6ae
|
4
|
+
data.tar.gz: 1326fc334ec25dcfef28777cbe9defa15ffde9d84df48773bfd5199d140510a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 690e7ac3f938f10028ea88d50933a5f6b59f7ad8040966356655760bc5dc3deaaa27a89fc3b98e85565edf373015075ca1424a6c894557c6d6dc7c52bee83a9f
|
7
|
+
data.tar.gz: 2daa6c5c07566869cdb1f5826a8ab9584ff7c1371140edfba33dcd1bdbaf1ea02dcbebb2c0ee405c44692658bdbbaad326482c4069d761d05e86a4dfc8dcdb9d
|
data/README.md
CHANGED
@@ -85,18 +85,18 @@ end
|
|
85
85
|
|
86
86
|
## Options
|
87
87
|
|
88
|
-
| Option | Values
|
89
|
-
|
90
|
-
| `source_buffer_length` |
|
91
|
-
| `destination_buffer_length` |
|
92
|
-
| `mode` | `MODES`
|
93
|
-
| `quality` |
|
94
|
-
| `lgwin` |
|
95
|
-
| `lgblock` |
|
96
|
-
| `disable_literal_context_modeling` |
|
97
|
-
| `disable_ring_buffer_reallocation` |
|
98
|
-
| `size_hint` |
|
99
|
-
| `large_window` |
|
88
|
+
| Option | Values | Default | Description |
|
89
|
+
|------------------------------------|------------|------------|-------------|
|
90
|
+
| `source_buffer_length` | 0 - inf | 0 (auto) | internal buffer length for source data |
|
91
|
+
| `destination_buffer_length` | 0 - inf | 0 (auto) | internal buffer length for description data |
|
92
|
+
| `mode` | `MODES` | `:generic` | compressor mode |
|
93
|
+
| `quality` | 0 - 11 | 11 | compression level |
|
94
|
+
| `lgwin` | 10 - 24 | 22 | compressor window size |
|
95
|
+
| `lgblock` | 16 - 24 | nil (auto) | compressor input block size |
|
96
|
+
| `disable_literal_context_modeling` | true/false | false | disables literal context modeling format |
|
97
|
+
| `disable_ring_buffer_reallocation` | true/false | false | disables ring buffer reallocation |
|
98
|
+
| `size_hint` | 0 - inf | 0 (auto) | size of input (if known) |
|
99
|
+
| `large_window` | true/false | false | enables large window |
|
100
100
|
|
101
101
|
There are internal buffers for compressed and decompressed data.
|
102
102
|
For example you want to use 1 KB as `source_buffer_length` for compressor - please use 256 B as `destination_buffer_length`.
|
@@ -108,10 +108,10 @@ You can also read brotli docs for more info about options.
|
|
108
108
|
|
109
109
|
| Option | Related constants |
|
110
110
|
|-----------|-------------------|
|
111
|
-
| `mode` | `BRS::Option::MODES =
|
112
|
-
| `quality` | `BRS::Option::MIN_QUALITY = 0
|
113
|
-
| `lgwin` | `BRS::Option::MIN_LGWIN = 10
|
114
|
-
| `lgblock` | `BRS::Option::MIN_LGBLOCK = 16
|
111
|
+
| `mode` | `BRS::Option::MODES` = `%i[text font generic]` |
|
112
|
+
| `quality` | `BRS::Option::MIN_QUALITY` = 0, `BRS::Option::MAX_QUALITY` = 11 |
|
113
|
+
| `lgwin` | `BRS::Option::MIN_LGWIN` = 10, `BRS::Option::MAX_LGWIN` = 24 |
|
114
|
+
| `lgblock` | `BRS::Option::MIN_LGBLOCK` = 16, `BRS::Option::MAX_LGBLOCK` = 24 |
|
115
115
|
|
116
116
|
Possible compressor options:
|
117
117
|
```
|
data/lib/brs/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-brs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Aladjev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codecov
|
@@ -191,16 +191,16 @@ require_paths:
|
|
191
191
|
- lib
|
192
192
|
required_ruby_version: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
|
-
- - "
|
194
|
+
- - ">="
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version: '2.
|
196
|
+
version: '2.5'
|
197
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
|
-
rubygems_version: 3.1.
|
203
|
+
rubygems_version: 3.1.4
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Ruby bindings for brotli library.
|