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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 199c22178984860a75e48ecc68db3be4f3e1f210
4
- data.tar.gz: ca9268c0e0650acee9125f333d567c8c3d65e3e2
3
+ metadata.gz: 02e86218c6a57c74af512d34f813f15ad11f71a9
4
+ data.tar.gz: 7342247ad14c9b7567b129a029ab01ed5147aac5
5
5
  SHA512:
6
- metadata.gz: 02e990893588bfef74a704a1de9b0c361e184759ba81f5579aa6724254dd8321bdb900ae4c50556c9b4f6f7cd02ea0f7c3e13ce16d7eb4da36f679d4285bc134
7
- data.tar.gz: 0ddefec72ef2900b43dc4160ddb97b1a94640c08fefcb1d4c0f5656e93d46e106ac6768ed030bbe905cbf03db0d4532ee89fcb87d956b894de2e2649e37db1cc
6
+ metadata.gz: 05a823f3a5918013c085099482055d42d29ed163a48a67563bda48da164d3e86a11969a1ab8c873895c9880f41321be3e05b904272c5d78a787ddb04924fb388
7
+ data.tar.gz: 7b412faa9fd940d788072c2dcac2eff90f68538c730b273f087f1195fd146673023eee3c32ae2c0e48fd28cfa575bc00dcc2a34795e7570272fb38c57a9dd7b7
@@ -3,7 +3,7 @@ class Webget
3
3
 
4
4
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
5
5
  MINOR = 2
6
- PATCH = 2
6
+ PATCH = 3
7
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
8
8
 
9
9
  def self.version
@@ -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.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 00:00:00.000000000 Z
11
+ date: 2020-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: webclient