wayback_machine_downloader 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wayback_machine_downloader.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8b8be7be5e839e0e7350fce3c54003484a53ada
|
4
|
+
data.tar.gz: 7f2f9eb8d64a45ad83c24937498dbbf0d9ee42a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7ebc824e1b0fbe59dc84ad4c5b93f32ce4dfd3e9f32cbc977f647cba1ccb0052035599efbf039a4eaa7f192405016e57ff319ec7d4208c0489fd2c7797e1581
|
7
|
+
data.tar.gz: af467686c99f3a3ce30b8dadecaa4a2340788e994c2b9888941a808a29b290aa3bfb21a21426f46a1f738a81f50062d6465024d89c8d0475b26adec6f524e49a
|
@@ -7,7 +7,7 @@ require_relative 'wayback_machine_downloader/to_regex'
|
|
7
7
|
|
8
8
|
class WaybackMachineDownloader
|
9
9
|
|
10
|
-
VERSION = "0.2.
|
10
|
+
VERSION = "0.2.4"
|
11
11
|
|
12
12
|
attr_accessor :base_url, :timestamp, :only_filter
|
13
13
|
|
@@ -110,7 +110,7 @@ class WaybackMachineDownloader
|
|
110
110
|
structure_dir_path dir_path
|
111
111
|
open(file_path, "wb") do |file|
|
112
112
|
begin
|
113
|
-
open("http://web.archive.org/web/#{file_timestamp}id_/#{file_url}") do |uri|
|
113
|
+
open("http://web.archive.org/web/#{file_timestamp}id_/#{file_url}", "Accept-Encoding" => "plain") do |uri|
|
114
114
|
file.write(uri.read)
|
115
115
|
end
|
116
116
|
rescue OpenURI::HTTPError => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wayback_machine_downloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hartator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|