wayback_machine_downloader 0.5.4 → 1.0.0

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: f4dcc90f3f3f974aa5c894a6fda9e8158a7d8a2b
4
- data.tar.gz: 560460143036a84357328e9b4dfba09a8b78e9d8
3
+ metadata.gz: a09bb38fc8d8a248fe84bd05eda03a92b49cc16e
4
+ data.tar.gz: 13d4bbb5e2041c3414a568afdbe719e475e57039
5
5
  SHA512:
6
- metadata.gz: 3808d953b979cc18a5efd0a0875b96e988649141b3591bfa3cf7eca96d6a06ed218c6d6418e8f3c20d12aff0de89fc10773d7381eb1a07f53aeea79816abe0aa
7
- data.tar.gz: 1fd31782e408ae274546204033f7960accd8daeb79c5d09d62d53974298de717baf2c5c7e49f962e7a0101267c15a666c82941d7a9bd619bc7cd9d97e23e4343
6
+ metadata.gz: 7070199a5c9935b6617d7c5a390756ca517acbbb28a193619e192a8c31b6b3cdaa83bbbbae3fbebfb4ce379af4bd2a0e12dd7969739b6cbcf00f357a997a9ded
7
+ data.tar.gz: b17716daad7329c37ff9a2e876bf443aed97878c69e41ac0143c9040955f67269070f5193f26ac7093050e9edc9def8084223c02805fdf3ebf38ba53b18bf554
@@ -10,9 +10,11 @@ module ArchiveAPI
10
10
  end
11
11
 
12
12
  def parameters_for_api
13
- parameters = "&fl=timestamp,original&collapse=original&gzip=false"
14
- unless @all
15
- parameters += "&filter=statuscode:200"
13
+ parameters = "&fl=timestamp,original&gzip=false"
14
+ if @all
15
+ parameters += "&collapse=digest"
16
+ else
17
+ parameters += "&filter=statuscode:200&collapse=original"
16
18
  end
17
19
  if @from_timestamp and @from_timestamp != 0
18
20
  parameters += "&from=" + @from_timestamp.to_s
@@ -13,7 +13,7 @@ class WaybackMachineDownloader
13
13
 
14
14
  include ArchiveAPI
15
15
 
16
- VERSION = "0.5.4"
16
+ VERSION = "1.0.0"
17
17
 
18
18
  attr_accessor :base_url, :directory, :from_timestamp, :to_timestamp, :only_filter, :exclude_filter, :all, :list, :threads_count
19
19
 
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.5.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hartator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-17 00:00:00.000000000 Z
11
+ date: 2016-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake