takuhai_status 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 +4 -4
- data/lib/takuhai_status/ups.rb +3 -3
- data/lib/takuhai_status/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: 56ebcfccdf508840d2c531bc1361eddffd0e1d34
|
4
|
+
data.tar.gz: 0b584393b77ea9fa30d7b0090949c8f3abd0e95d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3552a97f76306bd395fea6d97e2e6b2a9f2043a1ad16d273fbfffc286178e32bf6c3e5b48911bc60dc49d50df0b4d5c1e4fddd14fc82a748bee0f158fcf48cc5
|
7
|
+
data.tar.gz: d7eed04d387d8f02874ffae26f7e5c453f73a632134fd54d23a7b313abcdd75ec26a95441175095d72a8c9265478225f712e650e247bd39139e1fed6c98f9ebc
|
data/lib/takuhai_status/ups.rb
CHANGED
@@ -11,7 +11,7 @@ module TakuhaiStatus
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def finish?
|
14
|
-
return !!(@state =~
|
14
|
+
return !!(@state =~ /配達済み/)
|
15
15
|
end
|
16
16
|
|
17
17
|
private
|
@@ -24,8 +24,8 @@ module TakuhaiStatus
|
|
24
24
|
|
25
25
|
begin
|
26
26
|
state = doc.css('.newstatus #ttc_tt_spStatus h3')[0].text.strip
|
27
|
-
time = "#{doc.css('.secHead ul li')[0].text.match(/\d{4}\/\d
|
28
|
-
return Time.parse(time), state
|
27
|
+
time = "#{doc.css('.secHead ul li')[0].text.match(/\d{4}\/\d\d\/\d\d \d{1,2}:\d\d/)[0]}+0500)"
|
28
|
+
return Time.parse(time).localtime, state
|
29
29
|
rescue NoMethodError
|
30
30
|
raise NotMyKey
|
31
31
|
rescue ArgumentError
|