la_poste 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: 3550b84ed53d17953232302112645a2cb77cc14f
4
- data.tar.gz: b652e65a8311e384c9fd4c333607b9618fcb8740
3
+ metadata.gz: 8c806b1e6de96f79dd551edf3675b68657186a78
4
+ data.tar.gz: d6c54c1ff15f2ac2b01ebc3b235400bb0e67c0fb
5
5
  SHA512:
6
- metadata.gz: 7caad6e8810e770a7c2c3bb4d11605f8e73a11ae7964978c73c1eb501a6c900bb117a541c646037f577bc1b8ebdf1ee87b1e495f69e30912c3115537ead268a0
7
- data.tar.gz: a0ee622e16b63f75d66fb8ff2d8556635f786033736a2f72b2466e72969275463a9c70bf37cc0ffd6b3c5d21ab6067e43e02301530ee712a710251369543e9bb
6
+ metadata.gz: c5cb9f65c5344d369dad0d071d967431790aefcbf13a36d37482e167acbdab8717b67cb05dc3d31788ce63d5db26a9a07547e7cc71b1d1e86b999282ed52edc1
7
+ data.tar.gz: b5b64d7409cf700056e2ed9e2ffaae94bf9911d679b5fcd38569e76ed9a5bde7538330419025ea7c5e4c0e9e85f34389c409c8c035b799e21162bdcd5f5d476d
@@ -56,9 +56,9 @@ module LaPoste
56
56
  table_infos = table.css("td.table_information")
57
57
  acheminement_infos = table_infos.css(".ach_courrier_box")
58
58
  if !acheminement_infos.empty?
59
- _date = acheminement_infos.css("span.ach_courrier_box_date").text
60
- _status = acheminement_infos.css("span.ach_courrier_box_statut").text
61
- _cp = acheminement_infos.css("span.ach_courrier_box_cp").text
59
+ _date = acheminement_infos.css("span.ach_courrier_box_date").text.strip
60
+ _status = acheminement_infos.css("span.ach_courrier_box_statut").text.strip
61
+ _cp = acheminement_infos.css("span.ach_courrier_box_cp").text.strip
62
62
  @data[:logs] << { date: _date, event: "#{_status}, #{_cp}" }
63
63
  end
64
64
  wrapper_infos = table_infos.css(".table_information_wrapper")
@@ -1,3 +1,3 @@
1
1
  module LaPoste
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: la_poste
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Lantaume