webget 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbf6e29e3e80b0a0fe7b80ad8a4870c00601006c
4
- data.tar.gz: c03efecb7b2362efef7392f26293c921f8422eca
3
+ metadata.gz: 1e55270df44760e784f72743f62bed6e23f7c4f4
4
+ data.tar.gz: f2e529e98e53b294813fc00f8a14ba7c4d6bc58c
5
5
  SHA512:
6
- metadata.gz: a3d026c4b3b6932eca4b22377ce1da9b08bd7836713c4e69c6a5fd28ba8de52449b28bca2be877e759eb73a30fb17b62966b779bed25a26fd072913abd284120
7
- data.tar.gz: 5f7822300304672b181a3001fb5d5e4cb3ad2adc55853179895ba100e03b21a8ede90a800ad2cced34e3b13603162d22876acaf34abfabe61c665f1d821f0455
6
+ metadata.gz: a074c8c43fae86befca8c16b687a7701ebc7ae9e7e4a6ad3cee527178bd01a447440f1cbfaad6ff60f708fad43a5d70be90de9f20e576f8532658d3a47d08a5d
7
+ data.tar.gz: 968ae57d7a26b40f31ae17df384eb72f69fc83f2192c398a9982ea0549800c137bccc7bca0e4af669ee92aef3af7bccd43b48a6ee7d337d845f726d05dc68c46
@@ -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 = 0
6
+ PATCH = 1
7
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
8
8
 
9
9
  def self.version
@@ -151,6 +151,19 @@ class DiskCache
151
151
  puts "ERROR: expected request_uri for >#{host_dir}< ending with '/'; got: >#{req_path}<"
152
152
  exit 1
153
153
  end
154
+ elsif host_dir.index( 'tipp3.at' )
155
+ req_path = req_path.sub( '.jsp', '' ) # shorten - cut off .jsp extension
156
+
157
+ ## change ? to -I-
158
+ ## change = to ~
159
+ ## Example:
160
+ ## sportwetten/classicresults.jsp?oddsetProgramID=888
161
+ ## =>
162
+ ## sportwetten/classicresults-I-oddsetProgramID~888
163
+ req_path = req_path.gsub( '?', '-I-' )
164
+ .gsub( '=', '~')
165
+
166
+ req_path = "#{req_path}.html"
154
167
  elsif host_dir.index( 'football-data.org' )
155
168
  req_path = req_path.sub( 'v2/', '' ) # shorten - cut off v2/
156
169
 
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.0
4
+ version: 0.2.1
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-10-06 00:00:00.000000000 Z
11
+ date: 2020-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: webclient