webget 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webget/version.rb +1 -1
- data/lib/webget/webcache.rb +3 -0
- 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: 02e86218c6a57c74af512d34f813f15ad11f71a9
|
4
|
+
data.tar.gz: 7342247ad14c9b7567b129a029ab01ed5147aac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a823f3a5918013c085099482055d42d29ed163a48a67563bda48da164d3e86a11969a1ab8c873895c9880f41321be3e05b904272c5d78a787ddb04924fb388
|
7
|
+
data.tar.gz: 7b412faa9fd940d788072c2dcac2eff90f68538c730b273f087f1195fd146673023eee3c32ae2c0e48fd28cfa575bc00dcc2a34795e7570272fb38c57a9dd7b7
|
data/lib/webget/version.rb
CHANGED
data/lib/webget/webcache.rb
CHANGED
@@ -180,6 +180,9 @@ class DiskCache
|
|
180
180
|
.gsub( '=', '~')
|
181
181
|
|
182
182
|
req_path = "#{req_path}.html"
|
183
|
+
elsif host_dir.index( 'fbref.com' )
|
184
|
+
req_path = req_path.sub( 'en/', '' ) # shorten - cut off en/
|
185
|
+
req_path = "#{req_path}.html" # auto-add html extension
|
183
186
|
elsif host_dir.index( 'football-data.co.uk' )
|
184
187
|
req_path = req_path.sub( 'mmz4281/', '' ) # shorten - cut off mmz4281/
|
185
188
|
req_path = req_path.sub( 'new/', '' ) # shorten - cut off new/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webclient
|