wayback_machine_downloader 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ class WaybackMachineDownloader
14
14
 
15
15
  include ArchiveAPI
16
16
 
17
- VERSION = "1.1.3"
17
+ VERSION = "1.1.4"
18
18
 
19
19
  attr_accessor :base_url, :directory, :from_timestamp, :to_timestamp, :only_filter, :exclude_filter, :all, :list, :maximum_pages, :threads_count
20
20
 
@@ -4,9 +4,8 @@ module ArchiveAPI
4
4
  request_url = "http://web.archive.org/cdx/search/xd?url="
5
5
  request_url += url
6
6
  request_url += parameters_for_api page_index
7
- request_uri = URI.parse request_url
8
- response = Net::HTTP.get_response request_uri
9
- response.body
7
+
8
+ open(request_url).read
10
9
  end
11
10
 
12
11
  def parameters_for_api page_index
@@ -28,4 +27,4 @@ module ArchiveAPI
28
27
  parameters
29
28
  end
30
29
 
31
- end
30
+ end
metadata CHANGED
@@ -1,41 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wayback_machine_downloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - hartator
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-10-17 00:00:00.000000000 Z
12
+ date: 2016-11-15 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rake
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - "~>"
19
+ - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: '10.2'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: '10.2'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: minitest
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - "~>"
35
+ - - ~>
32
36
  - !ruby/object:Gem::Version
33
37
  version: '5.2'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - "~>"
43
+ - - ~>
39
44
  - !ruby/object:Gem::Version
40
45
  version: '5.2'
41
46
  description: Download an entire website from the Wayback Machine. Wayback Machine
@@ -48,33 +53,34 @@ executables:
48
53
  extensions: []
49
54
  extra_rdoc_files: []
50
55
  files:
51
- - bin/wayback_machine_downloader
52
56
  - lib/wayback_machine_downloader.rb
53
- - lib/wayback_machine_downloader/archive_api.rb
54
57
  - lib/wayback_machine_downloader/tidy_bytes.rb
55
58
  - lib/wayback_machine_downloader/to_regex.rb
59
+ - lib/wayback_machine_downloader/archive_api.rb
60
+ - bin/wayback_machine_downloader
56
61
  homepage: https://github.com/hartator/wayback-machine-downloader
57
62
  licenses:
58
63
  - MIT
59
- metadata: {}
60
64
  post_install_message:
61
65
  rdoc_options: []
62
66
  require_paths:
63
67
  - lib
64
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
65
70
  requirements:
66
- - - ">="
71
+ - - ! '>='
67
72
  - !ruby/object:Gem::Version
68
73
  version: 1.9.2
69
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
70
76
  requirements:
71
- - - ">="
77
+ - - ! '>='
72
78
  - !ruby/object:Gem::Version
73
79
  version: '0'
74
80
  requirements: []
75
81
  rubyforge_project:
76
- rubygems_version: 2.4.5.1
82
+ rubygems_version: 1.8.23.2
77
83
  signing_key:
78
- specification_version: 4
84
+ specification_version: 3
79
85
  summary: Download an entire website from the Wayback Machine.
80
86
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 13d8335c3ed5ff69f53d2e991bfd6448d9942ae3
4
- data.tar.gz: 19307b191ffbd04dc78e7b66723d81853452340a
5
- SHA512:
6
- metadata.gz: 3a08bfca3da8aeb1ffe9a53f3faa590d8dc9ded12dd0372f9fb32d9e751f7bb7345bcb97c5fca01bda6855017b06af3c2d9ad768e188d24f9dd050e48c954ccd
7
- data.tar.gz: 17ada047d0eebe6fc24773f757c9de839d61995a95975a53baab194a51f19cd68ae0fa5fd8c036f8e5c96d16035237313ea9c9d81da033bbfabb2dc434ef0c66