portal_scraper 1.7.0 → 1.8.0

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: 720b81f1806f9e135f471667556e9cbe322bbd6cd7d3a0e52c13a4f998c0626d
4
- data.tar.gz: e891188589e402071e65fa9dc53309ca653267167a9e5bc789426b1f8bdf430e
3
+ metadata.gz: 1939dee0f771654ced16cfc0b9df2d7fad0e95028579bf47fb0ec75216a437b1
4
+ data.tar.gz: 5ee3c84ca36f19d1684b23b0929975d7210e5bb2f3f002e700fd61e5a1e2bd7f
5
5
  SHA512:
6
- metadata.gz: a486c14f993b7daef03e648df44b7f306efcf9efa0c63d39e79c43821823bf4205ee1e84a122a178c5957016c0941acb307ec07829380f00b56edf6cd9634bdf
7
- data.tar.gz: 608fd996c6bed19039ce3bcc1d1da3d29d2bb77135063b17fd814f69bad5185e0e815d6f2d4a779edeaa983efff6781aa9be1ff607e664fe1692c6a0c9260506
6
+ metadata.gz: c2a171f87a5463ac205e4c7bd6f4140d1a2db0e84a6a3f2cddbf381010708f8013cb03803d277e3e41692120ccb3409b10fece235b82b6a6c9fc81055849a24d
7
+ data.tar.gz: 462c1a675eec28ec90f1089987305cbb3a25d2add2cea43425ba5bdd7010d24c78c37d7b2b6f4e5ebc1cd0d1b191ba7914df293a4a719d96a0b8f2d98e58ffa5
@@ -27,7 +27,8 @@ module PortalScraper
27
27
  account = link.click
28
28
  accounts_data[:accounts] << {
29
29
  client_ref: find_table_value(account, 'Identifiant tiers'),
30
- balance: account.search('table#contrat th.n').text.gsub(/[[:space:]]+/, '').tr('.,', ',.').to_f
30
+ balance: account.search('table#contrat th.n').text.gsub(/[[:space:]]+/, '').tr('.,', ',.').to_f,
31
+ opened_on: account.search('table#contrat td').text.gsub(/\d{2}\/\d{2}\/\d{4}/)&.max
31
32
  }
32
33
  end
33
34
 
@@ -1,7 +1,7 @@
1
1
  module PortalScraper
2
2
  class Version
3
3
  MAJOR = 1
4
- MINOR = 7
4
+ MINOR = 8
5
5
  PATCH = 0
6
6
 
7
7
  def self.to_s
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.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armand Mégrot
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-11-13 00:00:00.000000000 Z
12
+ date: 2019-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mechanize