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 +4 -4
- data/lib/webget/version.rb +1 -1
- data/lib/webget/webcache.rb +13 -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: 1e55270df44760e784f72743f62bed6e23f7c4f4
|
|
4
|
+
data.tar.gz: f2e529e98e53b294813fc00f8a14ba7c4d6bc58c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a074c8c43fae86befca8c16b687a7701ebc7ae9e7e4a6ad3cee527178bd01a447440f1cbfaad6ff60f708fad43a5d70be90de9f20e576f8532658d3a47d08a5d
|
|
7
|
+
data.tar.gz: 968ae57d7a26b40f31ae17df384eb72f69fc83f2192c398a9982ea0549800c137bccc7bca0e4af669ee92aef3af7bccd43b48a6ee7d337d845f726d05dc68c46
|
data/lib/webget/version.rb
CHANGED
data/lib/webget/webcache.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2020-11-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: webclient
|