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 +4 -4
- data/lib/la_poste/tracker.rb +3 -3
- data/lib/la_poste/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c806b1e6de96f79dd551edf3675b68657186a78
|
4
|
+
data.tar.gz: d6c54c1ff15f2ac2b01ebc3b235400bb0e67c0fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5cb9f65c5344d369dad0d071d967431790aefcbf13a36d37482e167acbdab8717b67cb05dc3d31788ce63d5db26a9a07547e7cc71b1d1e86b999282ed52edc1
|
7
|
+
data.tar.gz: b5b64d7409cf700056e2ed9e2ffaae94bf9911d679b5fcd38569e76ed9a5bde7538330419025ea7c5e4c0e9e85f34389c409c8c035b799e21162bdcd5f5d476d
|
data/lib/la_poste/tracker.rb
CHANGED
@@ -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")
|
data/lib/la_poste/version.rb
CHANGED