wayback_machine_downloader_straw 2.3.4 → 2.3.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: 220999514eb0c1dd5bce948a2ac028e4527eb07f089b9f6b437f02a6a00860be
4
- data.tar.gz: '03780351285ee37d38ba04652725ffa33f6112837e01e68469c8be3cda13eb45'
3
+ metadata.gz: d04d7ddf4b722425377ce84ad5c0f917e35553e38edb755c029ae7a2b8f8055d
4
+ data.tar.gz: 3d93f41ef2ba3b366a3adf071b947eabb66caf931d022b7ad8a521d3930dfe27
5
5
  SHA512:
6
- metadata.gz: 3b05448a6271b8e45d5655b5ee415851f6e8e2daaec5f9bb12b0681e58292c06fe4ab91ab4f2ca1530edb0632755808dc8a465165c5e73fea2673481dddad610
7
- data.tar.gz: 95440ee51316da6f2e48c3ec1d54f9fc391b2d59447625f07052222ecfeacf6fc26d430ac64ede6da589c0115fddc7a71fc7eb2fa45ff403491f1b3dc51b66ec
6
+ metadata.gz: 312dcd879a3589aa0a75d47296dbe04920eee06ae2fb83c18274d918d12517c8a2064c1e9e7a3c774e656636187cd5fc510f249ae71ea6a319cb437ee8d0314b
7
+ data.tar.gz: 8cd5dcd421077405f920a8ff966387817450e6169aa9578a9b5f25284d4100f1f5bf77304cda727f975464782064643c96d3ee0985a2b57e16aec523c9e17429
@@ -113,7 +113,7 @@ class WaybackMachineDownloader
113
113
 
114
114
  include ArchiveAPI
115
115
 
116
- VERSION = "2.3.4"
116
+ VERSION = "2.3.5"
117
117
  DEFAULT_TIMEOUT = 30
118
118
  MAX_RETRIES = 3
119
119
  RETRY_DELAY = 2
@@ -538,10 +538,9 @@ class WaybackMachineDownloader
538
538
  file_url = file_remote_info[:file_url].encode(current_encoding)
539
539
  file_id = file_remote_info[:file_id]
540
540
  file_timestamp = file_remote_info[:timestamp]
541
- original_file_id = @all_timestamps ? file_id.split('/', 2)[1] : file_id
542
- file_path_elements = original_file_id.split('/')
541
+ file_path_elements = file_id.split('/')
543
542
 
544
- if original_file_id == ""
543
+ if file_id == ""
545
544
  dir_path = backup_path
546
545
  file_path = backup_path + 'index.html'
547
546
  elsif file_url[-1] == '/' or not file_path_elements[-1].include? '.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wayback_machine_downloader_straw
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - strawberrymaster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-19 00:00:00.000000000 Z
11
+ date: 2025-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby