faraday-gzip 0.1.0 → 2.0.0
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/CHANGELOG.md +10 -0
- data/LICENSE.md +1 -2
- data/README.md +7 -3
- data/lib/faraday/gzip/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60cdb34cbe925160d98dd8256e447ae308a8ef6ffdd6972f4d30d4fc29fd6a56
|
4
|
+
data.tar.gz: ca28bce1ae001e78ab6907f97a99f7816123a6d0332afe297d0cafbcc1725079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d65649549d5012254fe544bf230a089b474e49ba3dc3ffa2271ad78d920a2c95bf7576d5ff41c82e451a61c5a57f6d6484eca0debb3d848801090ff7046ced0c
|
7
|
+
data.tar.gz: 9fe5503f94111791b2c08598d400c72d402a61c13a9c612bd775ccf8a5a8b50656dd249bc3bdb20330439637b575202d7bf1c3700c7d021ee92b7b304005cae4
|
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
@@ -3,7 +3,11 @@
|
|
3
3
|

|
4
4
|
[](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: 0.
|
4
|
+
version: 2.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:
|
11
|
+
date: 2023-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '3.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|
|
@@ -172,7 +172,7 @@ licenses:
|
|
172
172
|
metadata:
|
173
173
|
bug_tracker_uri: https://github.com/bodrovis/faraday-gzip/issues
|
174
174
|
changelog_uri: https://github.com/bodrovis/faraday-gzip/blob/master/CHANGELOG.md
|
175
|
-
documentation_uri: http://www.rubydoc.info/gems/faraday-gzip/0.
|
175
|
+
documentation_uri: http://www.rubydoc.info/gems/faraday-gzip/2.0.0
|
176
176
|
homepage_uri: https://github.com/bodrovis/faraday-gzip
|
177
177
|
source_code_uri: https://github.com/bodrovis/faraday-gzip
|
178
178
|
rubygems_mfa_required: 'true'
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.4.17
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Automatically sets compression headers and decompresses the response
|