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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8eabd4afc1041b393336a133f06367052b4b32e2
4
- data.tar.gz: aa87701702dc8452b2349b409c21325ed5ef3106
3
+ metadata.gz: e8b8be7be5e839e0e7350fce3c54003484a53ada
4
+ data.tar.gz: 7f2f9eb8d64a45ad83c24937498dbbf0d9ee42a8
5
5
  SHA512:
6
- metadata.gz: b5e983593bedcde5e07db47b0989c1ca17071d68ad49daa8a816756eb25b96316e61a43e76c7b240321bd84a01760b615038b63c327cbcf8562d1dfd67a47de7
7
- data.tar.gz: 980726cecfdd41534ea9dbf41df6ef04dec489d9f7041ae888cd5fecf5b0ffe169d32e3bafad4bac17a631ea9b78265bdbaa154313b61f17e6d91b6d87891626
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.3"
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.3
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-27 00:00:00.000000000 Z
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake