baza.rb 0.9.4 → 0.9.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 308b7b84631ae61841fb9d58192f6c257fc5b60d68dd8b95c01caf5cf53f39a8
4
- data.tar.gz: ddafe4b9c94292616c5a9588b057869b63ccfce655954bd87f79bb54182ac800
3
+ metadata.gz: aef802e2941e27ceb8b0db8f2d19fe4bc0108de161f076dba14c8a7fa3aa4b46
4
+ data.tar.gz: 2eeff3f680e3792a45286fc484d02bcd90682e5469bd0a608d9bef86c4ba64e7
5
5
  SHA512:
6
- metadata.gz: e4077997c0ac3aea8d026c48fd63472f9c4d146f091656552a7ae3a72814fa507e915c2d75fc93d76fdb85640235503c611bc82de5489406449276023edd5e3e
7
- data.tar.gz: e39d0fbdc6dadf2c53edc647c4ef7acf9194af9d9968299af4a7a2fafbbae6e7892a811e0337049e742f5e2353db8d86e7c2370291b3cde32e9a1d0ab5fda0a6
6
+ metadata.gz: 20143f780ef916617d3f447dd703a713b874a7787c6ef4c11123f4df03a1ccb4136266dc50e570733d3c54d126a2b24a9b249c0d38e7033d47e695d4ba13170b
7
+ data.tar.gz: d123d577520dbe5cf41fcbf79f9bc7b03a8e10c83a06c0012fdc355e55b1e9c9d989534f7fa51150a9e9ffc95f358df0547c47d991516cf4c1278cf642f5f173
data/Gemfile.lock CHANGED
@@ -51,9 +51,9 @@ GEM
51
51
  logger
52
52
  faraday-http-cache (2.5.1)
53
53
  faraday (>= 0.8)
54
- faraday-multipart (1.1.0)
54
+ faraday-multipart (1.1.1)
55
55
  multipart-post (~> 2.0)
56
- faraday-net_http (3.4.0)
56
+ faraday-net_http (3.4.1)
57
57
  net-http (>= 0.5.0)
58
58
  faraday-retry (2.3.1)
59
59
  faraday (~> 2.0)
@@ -122,7 +122,7 @@ GEM
122
122
  regexp_parser (2.10.0)
123
123
  retries (0.0.5)
124
124
  rexml (3.4.1)
125
- rubocop (1.76.1)
125
+ rubocop (1.76.2)
126
126
  json (~> 2.3)
127
127
  language_server-protocol (~> 3.17.0.2)
128
128
  lint_roller (~> 1.1.0)
@@ -130,7 +130,7 @@ GEM
130
130
  parser (>= 3.3.0.2)
131
131
  rainbow (>= 2.2.2, < 4.0)
132
132
  regexp_parser (>= 2.9.3, < 3.0)
133
- rubocop-ast (>= 1.45.0, < 2.0)
133
+ rubocop-ast (>= 1.45.1, < 2.0)
134
134
  ruby-progressbar (~> 1.7)
135
135
  unicode-display_width (>= 2.4.0, < 4.0)
136
136
  rubocop-ast (1.45.1)
@@ -13,5 +13,5 @@
13
13
  # Copyright:: Copyright (c) 2024-2025 Yegor Bugayenko
14
14
  # License:: MIT
15
15
  class BazaRb
16
- VERSION = '0.9.4'
16
+ VERSION = '0.9.5'
17
17
  end
data/lib/baza-rb.rb CHANGED
@@ -765,7 +765,8 @@ class BazaRb
765
765
  ('in gzip' if ret.headers['Content-Encoding'] == 'gzip'),
766
766
  ("ranged as #{ret.headers['Content-Range'].inspect}" if ret.headers['Content-Range'])
767
767
  ]
768
- ret = checked(ret, [200, 206])
768
+ ret = checked(ret, [200, 206, 302])
769
+ next if ret.code == 302
769
770
  if ret.headers['Content-Encoding'] == 'gzip'
770
771
  begin
771
772
  slice = unzip(slice)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baza.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko