portal_scraper 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: ccad098b23566f5d701390d2b26ca64f1aaa1683d5f23c11d41621e280b49d13
4
- data.tar.gz: e6a8f24944f3360d741a22a7b2d4698a20a3c6412795a8349037759c803f6bd2
3
+ metadata.gz: 482837b19f398e53105bbff8bff9dba223a563da10db64f0a8b44a26e7ff7ace
4
+ data.tar.gz: e3ba79a2d1b42e5e76b1d56142440b88b26c8fa76884ff3e6c3425a3bd2f9bf1
5
5
  SHA512:
6
- metadata.gz: 38ca0e84ec2ea07966ee28565a55f1973fd4140433a0da55968f4647970b8861d216acd00d088f46f0d649b38fa9f18751eb1d5a7f44e0ce94b3c914cdc1c8e2
7
- data.tar.gz: 750a7dbe9f3384786fbd1a46a8f38c30a0182f3ec27726b32e4efd9dccdbc14e708b21a9f6a9bac0432a7723237c6a2d632962a9024d919945a30d9c674e23ef
6
+ metadata.gz: 4e977caf1916e017478fca710350ad31fb6f25b4511a10c396200aabc0e634cb3cefc54155f80458a09d79168ae266c716e942ac682a67d9f277e560cdedf56d
7
+ data.tar.gz: a341421ec6f0ca479137673bfb1eebba78531ab99f2e30a7a1e78030f3880b0eb995d5c30aeb7eb805a8a697c49b9d8ce1d8da2489d1ee77e840cb3825b7c0a0
@@ -39,7 +39,7 @@ module PortalScraper
39
39
  account = link.click
40
40
  accounts_data[:accounts] << {
41
41
  client_ref: find_table_value(account, 'Identifiant tiers'),
42
- balance: account.search('table#contrat th.n').text.gsub(/[[:space:]]+/, '').to_f
42
+ balance: account.search('table#contrat th.n').text.gsub(/[[:space:]]+/, '').tr('.,', ',.').to_f
43
43
  }
44
44
  end
45
45
  accounts_data
@@ -2,7 +2,7 @@ module PortalScraper
2
2
  class Version
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  def self.to_s
8
8
  [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portal_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armand Mégrot