uniara_virtual_parser 2.1.0 → 2.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42f032c41a609cb7a1367279d31e62f09621efa6
|
4
|
+
data.tar.gz: d1daad8eff2c273e3110731df09451b498a14ae9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdc0ffb48929db94b39c00149cdc8e96020c4f9b6c295a5dcb610efc1458942e7ba3790a37848b2f7c47f4e4c6be4163aa088b6ce14c82773ec4da498e3e0e76
|
7
|
+
data.tar.gz: 6eaeb4396cd4f723d17e3d168faa0edf4d4ffee6702ddbc70d0858eca85b1a70fc54c8b987c9268221d32f02926d4ea1b72cc15a6fff016c0a5882891ceb24ba
|
@@ -18,18 +18,18 @@ module UniaraVirtualParser
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def post(path, body=nil)
|
21
|
-
uri = URI("#{
|
21
|
+
uri = URI("#{@alternate_endpoint}#{path}")
|
22
22
|
Net::HTTP.post_form(uri, body)
|
23
23
|
end
|
24
24
|
|
25
25
|
def configure_endpoint(endpoint)
|
26
|
-
@
|
26
|
+
@alternate_endpoint = endpoint
|
27
27
|
end
|
28
28
|
|
29
29
|
private
|
30
30
|
|
31
31
|
def endpoint
|
32
|
-
|
32
|
+
ENDPOINT
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -6,7 +6,9 @@ module UniaraVirtualParser
|
|
6
6
|
cookies = response['Set-Cookie']
|
7
7
|
|
8
8
|
fail InvalidLogin unless /UVXS233E3=S/.match cookies
|
9
|
-
cookies.match(/PHPSESSID=([^;]*);/)[1]
|
9
|
+
#cookies.match(/PHPSESSID=([^;]*);/)[1]
|
10
|
+
# temporary monkey patch for proxy
|
11
|
+
cookies.match(/PHPSESSID=([^,]*);/)[1]
|
10
12
|
end
|
11
13
|
end
|
12
14
|
end
|