takuhai_status 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/takuhai_status/sagawa.rb +1 -1
- data/lib/takuhai_status/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2a6cc88961c420960012172ea25bc1b67a90f010f3b357d01f622d31ecd30fc
|
4
|
+
data.tar.gz: b84b61c3115dcfd533b74b50a7b0f211b1eaa28c316de16d80d4ed08181d9fe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da8f20c15ae48f54898848be82fe2a84f082167fb70f1c2c6e4db023087dc0922ac3ce2849284d20a4b20eb420385e4448f6bfc53ae6124d0535c65834f91df0
|
7
|
+
data.tar.gz: 28e7458d8c5c69855170c8426bc6cf6b917ed14e9be0dc6522c6d9688082ff912c319cb5ff21521e4da9b042c5ba28c73be940f544e83da7badbc8fd3e1fe461
|
@@ -25,7 +25,7 @@ module TakuhaiStatus
|
|
25
25
|
begin
|
26
26
|
cells = doc.css('.table_okurijo_detail2').css('tr').last.css('td')
|
27
27
|
state = "#{cells[0].text.strip} [#{cells[2].text.strip}]".sub(/^./, '')
|
28
|
-
time = Time.parse(cells[1].text.strip)
|
28
|
+
time = Time.parse(cells[1].text.strip) rescue Time.now
|
29
29
|
return time, state
|
30
30
|
rescue NoMethodError # detail2 table not found, use detail table
|
31
31
|
begin
|