uniara_virtual_parser 2.1.2 → 2.1.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: de2f1638dfb4996bc95ccb25aa15f94a744881ec
4
- data.tar.gz: a05732b999fa4f30d67f23d2d82fae8e1e427dfe
3
+ metadata.gz: a3e6018db9abeadb9c7bd676e11a2d0bc40c63b0
4
+ data.tar.gz: c5f8d508ba47252fa0c59a6afc5114f571ef8e60
5
5
  SHA512:
6
- metadata.gz: 5e2875d93602123605a0625116b9479ddc510edb72f7cdf510fa8666260d6c64e6793fa3d2a72f6dae48f41c3ee7dfe0210ab54ef831fb86e4db50377112468b
7
- data.tar.gz: f2bdbd9d2234670a7e1d1f14f708a9370d48fc3775d1cc188f9c533281239fb00246517b4033611ead83b345c5e52c1ff632380913cb98cfa6f1e7e2158041f1
6
+ metadata.gz: dad49c634c10aae8f8fbced01782a46bffbf34729bda16469b7ce82c96b044994fdf2a5e10dd7a7bd7ce881c590d8d937bdcd88eff8e79b876f4063b23325be9
7
+ data.tar.gz: 82830c1d05e4a974657412c383f87f1d69d1ea6e347c111fcbbeaba4ff74d47cd25e5ccc06c6cab20379af7dbebe0903ae12e0e783478ba6c7d3fd2c44118037
@@ -18,18 +18,18 @@ module UniaraVirtualParser
18
18
  end
19
19
 
20
20
  def post(path, body=nil)
21
- uri = URI("#{@alternate_endpoint}#{path}")
21
+ uri = URI("#{endpoint}#{path}")
22
22
  Net::HTTP.post_form(uri, body)
23
23
  end
24
24
 
25
25
  def configure_endpoint(endpoint)
26
- @alternate_endpoint = endpoint
26
+ @endpoint = endpoint
27
27
  end
28
28
 
29
29
  private
30
30
 
31
31
  def endpoint
32
- ENDPOINT
32
+ @endpoint || ENDPOINT
33
33
  end
34
34
  end
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module UniaraVirtualParser
2
- VERSION = '2.1.2'
2
+ VERSION = '2.1.3'
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.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Ribeiro