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: d608df32d169b7481d65450c2c39c4cf338dff6e
4
- data.tar.gz: 5f4cace10867c2f5f48577c53e61fdde6c77e09d
3
+ metadata.gz: 42f032c41a609cb7a1367279d31e62f09621efa6
4
+ data.tar.gz: d1daad8eff2c273e3110731df09451b498a14ae9
5
5
  SHA512:
6
- metadata.gz: 64b6f31cf28c1aea5cbb6fe1de4809e3563ce5fded8a68f22068432b19cc219d2490feb56b573cc7510a8702bf1aec313e7dfb06580eb3c1a7ea98732dc7150a
7
- data.tar.gz: 03c3e295e567c5be33f0f746697b08afa55e4377ba21e9d0b718922c264fc4f5d0d5ace63a34691c3518fc4b23ec567b49d157bd036f71a4236f0d1a7e43dace
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("#{endpoint}#{path}")
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
- @endpoint = endpoint
26
+ @alternate_endpoint = endpoint
27
27
  end
28
28
 
29
29
  private
30
30
 
31
31
  def endpoint
32
- @endpoint || ENDPOINT
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
@@ -1,3 +1,3 @@
1
1
  module UniaraVirtualParser
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniara_virtual_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Ribeiro