wayback_machine_downloader 0.4.8 → 0.4.9

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: 2fe008c699d3d8137e9dc73b9c6c77ae4cf7886b
4
- data.tar.gz: 864dd732b60b0cff81148b42601b3cac4a3743e4
3
+ metadata.gz: 73c0ec7ba53bc62a4ef801970325bcc56144e04d
4
+ data.tar.gz: 9096da258417570d757decce4ca2a847f39febac
5
5
  SHA512:
6
- metadata.gz: 303ada150902728471bb8c9e1c9142f196150c090bb639c6fd2065e0d9a46543817e741b5e38a347e3b3a7be92deddbaf32087789121364c7fe21edf5eb91d5a
7
- data.tar.gz: ae96aa328dc944d6a17e8fc614fadde6f39c79bb89054b676862012183ed9a0c0ff4a7f7b1ba09430b2f2b3dab8ff6908108b715894e15e50b8b7ec8b58ecadc
6
+ metadata.gz: 27407c32b02bfc2d1ffb267c6b654552a37fa17bb0605605bae4a2dd0fe89573a1e0e092ee3bc00faad97895d0e31277c7db0e675ea846c4e8be908d0d3b317f
7
+ data.tar.gz: 2155e4e85e4192b252c5b92b46237b824b34c6b905d1446586452163255687fc946e1e433cf03c764b6df0c71065be302f742c5a0b631ed4ef748c6ed1cc2d77
@@ -9,7 +9,7 @@ require_relative 'wayback_machine_downloader/to_regex'
9
9
 
10
10
  class WaybackMachineDownloader
11
11
 
12
- VERSION = "0.4.8"
12
+ VERSION = "0.4.9"
13
13
 
14
14
  attr_accessor :base_url, :from_timestamp, :to_timestamp, :only_filter, :exclude_filter, :all, :list
15
15
 
@@ -24,7 +24,11 @@ class WaybackMachineDownloader
24
24
  end
25
25
 
26
26
  def backup_name
27
- @base_url.split('/')[2]
27
+ if @base_url.include? '//'
28
+ @base_url.split('/')[2]
29
+ else
30
+ @base_url
31
+ end
28
32
  end
29
33
 
30
34
  def backup_path
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.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - hartator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-10 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake