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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '051489969db6aaa4791f080d6128042153c109f0e12ff479aa183a84f97410aa'
4
- data.tar.gz: e077af7059120447e3e108743b7b39a9be75e2e75674e4d0a52471956678857c
3
+ metadata.gz: 37792a5792e1200b8dd6a1932ef1bb25db1281704fa151c86df89cb200db9207
4
+ data.tar.gz: fb067ddad2efdebef70598517f33461a712d39a73bdc35b202c9b1aaf7445c6f
5
5
  SHA512:
6
- metadata.gz: 31cfe83b44cd5ec13f2eb86ab4769ac4c18d11676104528cbac006f5e88ab6c71056ff91c8be1e978693b15957cb41a8420aa0bcc99170354ff7a66f9769987a
7
- data.tar.gz: f617a27db54e84099aeed3db1fd671a4c80c3b9c83883b904cee142eb186d90a1eb9325aaae2c807e83022027af74dc1fc9b8405c32a81128151ea29b5fa49bb
6
+ metadata.gz: 5c95de6697b17f968d73b679b11c1f41d155a5504eb9f7412692d1fe749e1a816fb321766be3f4988ad42408796fc33ee6378a224d54dc0f1fdacc0799a3972c
7
+ data.tar.gz: b79ccdbdc1cc0e0177f6b1abb9e175f0ba5f30a4ff53dcd76861ae7dfdc3235b19d4a1ddc2a0fd55b339aabd382a41096d7f538f4a2093202a96e3e068a7342c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0 (27-Dec-2022)
4
+
5
+ * Added support for JRuby (thanks, @ashkulz)
6
+ * Test with Ruby 3.2
7
+ * Minor updates
8
+
9
+ ## 0.1.0 (04-Feb-2022)
10
+
11
+ * First stable release.
12
+
3
13
  ## 0.1.0.rc1
4
14
 
5
15
  * Initial release.
data/LICENSE.md CHANGED
@@ -1,6 +1,5 @@
1
1
  The MIT License (MIT)
2
- <% require 'date' %>
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
- [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/lostisland/faraday-gzip/ci)](https://github.com/lostisland/faraday-gzip/actions?query=branch%3Amain)
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module Gzip
5
- VERSION = '0.1.0.rc1'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
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.1.0.rc1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Ilya Bodrov-Krukowski
7
+ - Ilya Krukowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-04 00:00:00.000000000 Z
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.21.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.21.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.25.0
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.25.0
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.0'
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.0'
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/lostisland/faraday-gzip
169
+ homepage: https://github.com/bodrovis/faraday-gzip
170
170
  licenses:
171
171
  - MIT
172
172
  metadata:
173
- bug_tracker_uri: https://github.com/lostisland/faraday-gzip/issues
174
- changelog_uri: https://github.com/lostisland/faraday-gzip/blob/v0.1.0.rc1/CHANGELOG.md
175
- documentation_uri: http://www.rubydoc.info/gems/faraday-gzip/0.1.0.rc1
176
- homepage_uri: https://github.com/lostisland/faraday-gzip
177
- source_code_uri: https://github.com/lostisland/faraday-gzip
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: 1.3.1
195
+ version: '0'
197
196
  requirements: []
198
- rubygems_version: 3.3.5
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