baza.rb 0.9.12 → 0.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70695fd3879e61407e448c32960af00dd5fcf3df08014551073b4e6041a5cc6f
4
- data.tar.gz: 6c407fbb83271e68b5da3eba246b35ece2326f63f66ca89d4609ac7ad7be4ce6
3
+ metadata.gz: 3925181637ee67621a9013cda972f3de775c644d67b530573814d40ff064f6f1
4
+ data.tar.gz: 0d883da9c8f1cc1c4538d303fc3e864e81f4145e443011c7277dc06673bb448d
5
5
  SHA512:
6
- metadata.gz: 80f1abe9dccf135b5cd75d1389c52bb28423014cf588a1ea66738576e8808d104d967a69108f459e590ebee9b2772abca3a419db7c8412f73d0114244d5d3b4e
7
- data.tar.gz: 8244c0a1d7db36a251380fb911df2bcebc2ac61a1f9aae52d0cb0ef852160c31761402e8164915665c80be651d685730063f0a680012120bdb57f4d52d0cc7f4
6
+ metadata.gz: 3b21df150b5c2c58efce934266400d589adec2d8fb594a43202801f4ae8050b182feda6b72c5b85a1490a6242483f093fc448323a285c51a0db383b166f4c198
7
+ data.tar.gz: fdf81673a2ac0a524ab0abd614fba9dae23a791dbff7311aed8d77afa001269b9cd571d84f57fde3f5f6cd7b4f018c6a8b8c79ff1eb78c326825aa3941ac3f39
@@ -16,4 +16,4 @@ jobs:
16
16
  runs-on: ubuntu-24.04
17
17
  steps:
18
18
  - uses: actions/checkout@v4
19
- - uses: crate-ci/typos@v1.34.0
19
+ - uses: crate-ci/typos@v1.35.2
data/Gemfile.lock CHANGED
@@ -30,13 +30,13 @@ GEM
30
30
  rexml
31
31
  decoor (0.1.0)
32
32
  docile (1.4.1)
33
- elapsed (0.1.0)
34
- loog (> 0)
35
- tago (> 0)
33
+ elapsed (0.2.0)
34
+ loog (~> 0.6)
35
+ tago (~> 0.1)
36
36
  ellipsized (0.3.0)
37
37
  ethon (0.16.0)
38
38
  ffi (>= 1.15.0)
39
- factbase (0.14.0)
39
+ factbase (0.14.3)
40
40
  backtrace (~> 0.4)
41
41
  decoor (~> 0.0)
42
42
  ellipsized (~> 0.3)
@@ -47,7 +47,7 @@ GEM
47
47
  others (~> 0.0)
48
48
  tago (~> 0.0)
49
49
  yaml (~> 0.3)
50
- faraday (2.13.2)
50
+ faraday (2.13.4)
51
51
  faraday-net_http (>= 2.0, < 3.5)
52
52
  json
53
53
  logger
@@ -65,7 +65,7 @@ GEM
65
65
  ffi (1.17.2-x86_64-linux-gnu)
66
66
  hashdiff (1.2.0)
67
67
  iri (0.11.2)
68
- json (2.13.1)
68
+ json (2.13.2)
69
69
  language_server-protocol (3.17.0.5)
70
70
  lint_roller (1.1.0)
71
71
  logger (1.7.0)
@@ -78,7 +78,7 @@ GEM
78
78
  minitest (>= 5.0)
79
79
  ruby-progressbar
80
80
  multipart-post (2.4.1)
81
- mustermann (3.0.3)
81
+ mustermann (3.0.4)
82
82
  ruby2_keywords (~> 0.0.1)
83
83
  net-http (0.6.0)
84
84
  uri
@@ -96,12 +96,12 @@ GEM
96
96
  os (1.1.4)
97
97
  others (0.1.1)
98
98
  parallel (1.27.0)
99
- parser (3.3.8.0)
99
+ parser (3.3.9.0)
100
100
  ast (~> 2.4.1)
101
101
  racc
102
102
  prism (1.4.0)
103
103
  public_suffix (6.0.2)
104
- puma (6.6.0)
104
+ puma (6.6.1)
105
105
  nio4r (~> 2.0)
106
106
  qbash (0.4.5)
107
107
  backtrace (> 0)
@@ -109,7 +109,7 @@ GEM
109
109
  loog (> 0)
110
110
  tago (> 0)
111
111
  racc (1.8.1)
112
- rack (3.1.16)
112
+ rack (3.2.0)
113
113
  rack-protection (4.1.1)
114
114
  base64 (>= 0.1.0)
115
115
  logger (>= 1.6.0)
@@ -123,10 +123,10 @@ GEM
123
123
  rake (13.3.0)
124
124
  random-port (0.7.5)
125
125
  tago (> 0)
126
- regexp_parser (2.10.0)
126
+ regexp_parser (2.11.0)
127
127
  retries (0.0.5)
128
128
  rexml (3.4.1)
129
- rubocop (1.79.0)
129
+ rubocop (1.79.2)
130
130
  json (~> 2.3)
131
131
  language_server-protocol (~> 3.17.0.2)
132
132
  lint_roller (~> 1.1.0)
@@ -136,7 +136,6 @@ GEM
136
136
  regexp_parser (>= 2.9.3, < 3.0)
137
137
  rubocop-ast (>= 1.46.0, < 2.0)
138
138
  ruby-progressbar (~> 1.7)
139
- tsort (>= 0.2.0)
140
139
  unicode-display_width (>= 2.4.0, < 4.0)
141
140
  rubocop-ast (1.46.0)
142
141
  parser (>= 3.3.7.2)
@@ -161,7 +160,7 @@ GEM
161
160
  simplecov-cobertura (3.0.0)
162
161
  rexml
163
162
  simplecov (~> 0.19)
164
- simplecov-html (0.13.1)
163
+ simplecov-html (0.13.2)
165
164
  simplecov_json_formatter (0.1.4)
166
165
  sinatra (4.1.1)
167
166
  logger (>= 1.6.0)
@@ -173,7 +172,6 @@ GEM
173
172
  tago (0.1.0)
174
173
  tilt (2.6.1)
175
174
  timeout (0.4.3)
176
- tsort (0.2.0)
177
175
  typhoeus (1.4.1)
178
176
  ethon (>= 0.9.0)
179
177
  unicode-display_width (3.1.4)
@@ -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.12'
16
+ VERSION = '0.10.0'
17
17
  end
data/lib/baza-rb.rb CHANGED
@@ -790,6 +790,7 @@ class BazaRb
790
790
  FileUtils.rm_f(file)
791
791
  FileUtils.touch(file)
792
792
  chunk = 0
793
+ blanks = [204, 302]
793
794
  elapsed(@loog) do
794
795
  loop do
795
796
  slice = ''
@@ -823,8 +824,8 @@ class BazaRb
823
824
  ('in gzip' if ret.headers['Content-Encoding'] == 'gzip'),
824
825
  ("ranged as #{ret.headers['Content-Range'].inspect}" if ret.headers['Content-Range'])
825
826
  ]
826
- ret = checked(ret, [200, 206, 302])
827
- next if ret.code == 302
827
+ ret = checked(ret, [200, 206, 204, 302])
828
+ next if blanks.include?(ret.code)
828
829
  if ret.headers['Content-Encoding'] == 'gzip'
829
830
  begin
830
831
  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.12
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko