faraday-gzip 1.0.0-java → 2.0.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +7 -3
- data/lib/faraday/gzip/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbe8f1b1d03d97821f4807de8b3f41d3e985afc35b8775644406d3bf0210d91c
|
4
|
+
data.tar.gz: 6eb84c80010fec2561ebf1a84b3624ca17fc227c6b8c7bd4490c2123967d1674
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 169f88d19682583634bbff1b44e6740307cded86d1b824bc8eb75da7d4660e6401e01de7f16d462f2d9bc13065d3a42a87794956152372f5f19cdd01f08081bd
|
7
|
+
data.tar.gz: b6fd3660a3b5b1da2c68ea6fc19a055f18453eb1dbb2e44df983f245a59525165f983a6a8eda57c6f7fe273d236683a9a30872bd93ec3d5431b59eb4b1db00a6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,11 @@
|
|
3
3
|
![CI](https://github.com/bodrovis/faraday-gzip/actions/workflows/ci.yaml/badge.svg)
|
4
4
|
[![Gem](https://img.shields.io/gem/v/faraday-gzip.svg?style=flat-square)](https://rubygems.org/gems/faraday-gzip)
|
5
5
|
|
6
|
-
The `Gzip` middleware adds the necessary `Accept-Encoding` headers and automatically decompresses the response. If the "Accept-Encoding" header wasn't set in the request, this sets it to "gzip,deflate" and appropriately handles the compressed response from the server. This resembles what Ruby does internally in Net::HTTP#get. If [Brotli](https://github.com/miyucy/brotli) is added to the Gemfile, it will also add "br" to the header.
|
6
|
+
The `Gzip` middleware for Faraday 1 and 2 adds the necessary `Accept-Encoding` headers and automatically decompresses the response. If the "Accept-Encoding" header wasn't set in the request, this sets it to "gzip,deflate" and appropriately handles the compressed response from the server. This resembles what Ruby does internally in Net::HTTP#get. If [Brotli](https://github.com/miyucy/brotli) is added to the Gemfile, it will also add "br" to the header.
|
7
|
+
|
8
|
+
## Prerequisites
|
9
|
+
|
10
|
+
This gem is tested with Ruby 2.6+ and JRuby 9.3+. Faraday 1 and 2 is supported.
|
7
11
|
|
8
12
|
## Installation
|
9
13
|
|
@@ -28,10 +32,10 @@ gem install faraday-gzip
|
|
28
32
|
## Usage
|
29
33
|
|
30
34
|
```ruby
|
31
|
-
require 'faraday/gzip'
|
35
|
+
require 'faraday/gzip' # <=== add this line
|
32
36
|
|
33
37
|
conn = Faraday.new(...) do |f|
|
34
|
-
f.request :gzip
|
38
|
+
f.request :gzip # <=== add this line
|
35
39
|
#...
|
36
40
|
end
|
37
41
|
```
|
data/lib/faraday/gzip/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday-gzip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Ilya Krukowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,7 +158,7 @@ licenses:
|
|
158
158
|
metadata:
|
159
159
|
bug_tracker_uri: https://github.com/bodrovis/faraday-gzip/issues
|
160
160
|
changelog_uri: https://github.com/bodrovis/faraday-gzip/blob/master/CHANGELOG.md
|
161
|
-
documentation_uri: http://www.rubydoc.info/gems/faraday-gzip/
|
161
|
+
documentation_uri: http://www.rubydoc.info/gems/faraday-gzip/2.0.0
|
162
162
|
homepage_uri: https://github.com/bodrovis/faraday-gzip
|
163
163
|
source_code_uri: https://github.com/bodrovis/faraday-gzip
|
164
164
|
rubygems_mfa_required: 'true'
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
rubygems_version: 3.
|
183
|
+
rubygems_version: 3.3.26
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: Automatically sets compression headers and decompresses the response
|