rack-brotli 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/rack/brotli/deflater.rb +1 -1
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4b885e023ce5938f23f503190fc86ae48f4555a0
4
- data.tar.gz: 6463c7c62ec3609998cdb63d1d8716c7f62aa48d
2
+ SHA256:
3
+ metadata.gz: a4c7f6efbad1faf755c34e45077a48a30360997915ad9f34138374894ecfb3c8
4
+ data.tar.gz: 93901d3ea3d139740fd7ce5cd71a84eeab9f09bfa105a60cb3d7c45c7539c734
5
5
  SHA512:
6
- metadata.gz: d07f951feb103a5d6daec30258cdf44156365a174d4407e93bda8a802a2fb738c483ca227e49f2d0e29ad9fa4403cf2c97afd837af1306fd3d2f96d49eb77a43
7
- data.tar.gz: 12ce1703d86491b0c280e797d1a92fc86e1ca7a583f792c2e46465cc29b1959032b28973a4ad7f3c280620ffe4376ebe062ebb83a0dbbbfeef1faebb9cdd0371
6
+ metadata.gz: ec0f2002d1a5a371c8760c93247c33f06eaa99435b3f7ad9acca6a5e92d07c33527500a82157f307be3c8dd4adfdf9fdd59a0a46e0c4097d2bc88aac5da68932
7
+ data.tar.gz: 690cecfc19bc833e8270cbd17243c29d5544c0033c4f8950082e7823441406f88f9328d858ce6d7e251a5d01d4fceba4e1236f61474be8f718f9468b2e5dd01e
@@ -27,7 +27,7 @@ module Rack::Brotli
27
27
 
28
28
  @condition = options[:if]
29
29
  @compressible_types = options[:include]
30
- @deflater_options = options[:deflater]
30
+ @deflater_options = { quality: 5 }.merge(options[:deflater] || {})
31
31
  end
32
32
 
33
33
  def call(env)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-brotli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Costa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-28 00:00:00.000000000 Z
11
+ date: 2019-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -165,8 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubyforge_project:
169
- rubygems_version: 2.4.5
168
+ rubygems_version: 3.0.3
170
169
  signing_key:
171
170
  specification_version: 2
172
171
  summary: Brotli compression for Rack responses