faraday-gzip 0.1.0.rc1 → 1.0.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 +10 -0
- data/LICENSE.md +1 -2
- data/README.md +2 -3
- data/lib/faraday/gzip/middleware.rb +1 -0
- data/lib/faraday/gzip/version.rb +1 -1
- metadata +18 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37792a5792e1200b8dd6a1932ef1bb25db1281704fa151c86df89cb200db9207
|
4
|
+
data.tar.gz: fb067ddad2efdebef70598517f33461a712d39a73bdc35b202c9b1aaf7445c6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c95de6697b17f968d73b679b11c1f41d155a5504eb9f7412692d1fe749e1a816fb321766be3f4988ad42408796fc33ee6378a224d54dc0f1fdacc0799a3972c
|
7
|
+
data.tar.gz: b79ccdbdc1cc0e0177f6b1abb9e175f0ba5f30a4ff53dcd76861ae7dfdc3235b19d4a1ddc2a0fd55b339aabd382a41096d7f538f4a2093202a96e3e068a7342c
|
data/CHANGELOG.md
CHANGED
data/LICENSE.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2022 Ilya Bodrov-Krukowski
|
2
|
+
Copyright (c) 2022 Ilya Krukowski
|
4
3
|
|
5
4
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
5
|
of this software and associated documentation files (the "Software"), to deal
|
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,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: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Ilya
|
7
|
+
- Ilya Krukowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -86,28 +86,28 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: '0.22'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: '0.22'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.
|
103
|
+
version: '1.32'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.
|
110
|
+
version: '1.32'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rubocop-packaging
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '2.
|
145
|
+
version: '2.11'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '2.
|
152
|
+
version: '2.11'
|
153
153
|
description: 'Faraday plugin to automatically set compression headers (GZip, Deflate,
|
154
154
|
Brotli) and decompress the response.
|
155
155
|
|
@@ -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/
|
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/1.0.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,11 +190,11 @@ 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
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.4.1
|
199
198
|
signing_key:
|
200
199
|
specification_version: 4
|
201
200
|
summary: Automatically sets compression headers and decompresses the response
|