faraday-gzip 0.1.0.rc1 → 0.1.0
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 +2 -3
- data/lib/faraday/gzip/middleware.rb +1 -0
- data/lib/faraday/gzip/version.rb +1 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80c26e09d166892a031c4cdfab53c898e87ec793124cf65562809fa0e0943501
|
4
|
+
data.tar.gz: fcb6c5ea1f358b0ab19869eb911760421a3f23037760b23746fc700ffdee63f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1e6e52c81ad69a4b508f0b786ebf96022b21fb9154703a12138c794d957122906728a3f565ee05a906b9474b0c28c81fc276979a78068671f19e838f4b056c1
|
7
|
+
data.tar.gz: 24a6277baa6cd34620b08f3d0e12e71deb7a198c1b849cc87f0ddc443e0d09061c8e1ba5c5685a53bd2f6ba7830936616d93db02feae7113de2894608bb2c084
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
# Faraday Gzip
|
2
2
|
|
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
|
-
[![License](https://img.shields.io/github/license/lostisland/faraday-gzip.svg?style=flat-square)](LICENSE.md)
|
6
5
|
|
7
|
-
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 is added to the Gemfile, it will also add "br" to the header.
|
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.
|
8
7
|
|
9
8
|
## Installation
|
10
9
|
|
@@ -8,6 +8,7 @@ module Faraday
|
|
8
8
|
# "Accept-Encoding" header wasn't set in the request, this sets it to
|
9
9
|
# "gzip,deflate" and appropriately handles the compressed response from the
|
10
10
|
# server. This resembles what Ruby 1.9+ does internally in Net::HTTP#get.
|
11
|
+
# Based on https://github.com/lostisland/faraday_middleware/blob/main/lib/faraday_middleware/gzip.rb
|
11
12
|
|
12
13
|
class Middleware < Faraday::Middleware
|
13
14
|
def self.optional_dependency(lib = nil)
|
data/lib/faraday/gzip/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday-gzip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Bodrov-Krukowski
|
@@ -166,16 +166,15 @@ files:
|
|
166
166
|
- lib/faraday/gzip.rb
|
167
167
|
- lib/faraday/gzip/middleware.rb
|
168
168
|
- lib/faraday/gzip/version.rb
|
169
|
-
homepage: https://github.com/
|
169
|
+
homepage: https://github.com/bodrovis/faraday-gzip
|
170
170
|
licenses:
|
171
171
|
- MIT
|
172
172
|
metadata:
|
173
|
-
bug_tracker_uri: https://github.com/
|
174
|
-
changelog_uri: https://github.com/
|
175
|
-
documentation_uri: http://www.rubydoc.info/gems/faraday-gzip/0.1.0
|
176
|
-
homepage_uri: https://github.com/
|
177
|
-
source_code_uri: https://github.com/
|
178
|
-
wiki_uri: https://github.com/lostisland/faraday-gzip/wiki
|
173
|
+
bug_tracker_uri: https://github.com/bodrovis/faraday-gzip/issues
|
174
|
+
changelog_uri: https://github.com/bodrovis/faraday-gzip/blob/master/CHANGELOG.md
|
175
|
+
documentation_uri: http://www.rubydoc.info/gems/faraday-gzip/0.1.0
|
176
|
+
homepage_uri: https://github.com/bodrovis/faraday-gzip
|
177
|
+
source_code_uri: https://github.com/bodrovis/faraday-gzip
|
179
178
|
rubygems_mfa_required: 'true'
|
180
179
|
post_install_message:
|
181
180
|
rdoc_options: []
|
@@ -191,9 +190,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
190
|
version: '4'
|
192
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
192
|
requirements:
|
194
|
-
- - "
|
193
|
+
- - ">="
|
195
194
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
195
|
+
version: '0'
|
197
196
|
requirements: []
|
198
197
|
rubygems_version: 3.3.5
|
199
198
|
signing_key:
|