takuhai_status 1.3.0 → 1.3.1
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 +2 -2
- data/lib/takuhai_status/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a24b81af165a2716d7ae6c1372cf1b8e2f84a3c
|
4
|
+
data.tar.gz: 81e8b57c9ae11d9e205f11f517a54e1e62e4a916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3981fd39ec3eefae092a5410d460b54052bd33e0cdfe6792562e7c0a5a970a3406fc9e4d9cf7d5b748dcf6f6202f873bba0cd1e6ae4be7ab041bfc71cf9c511
|
7
|
+
data.tar.gz: 3b8fa907c8995157943ada0e47465e290f420e86803139589b8613a42cba0f7df6d84c85725cc42eb628f2b7504839e6fb61a4d2dd13402deb2edc83ca45162d
|
@@ -25,11 +25,11 @@ module TakuhaiStatus
|
|
25
25
|
state = "#{cells[0].text.strip} [#{cells[2].text.strip}]".sub(/^./, '')
|
26
26
|
time = Time.parse(cells[1].text.strip)
|
27
27
|
return time, state
|
28
|
-
rescue NoMethodError
|
28
|
+
rescue NoMethodError # detail2 table not found, use detail table
|
29
29
|
begin
|
30
30
|
time = Time.now
|
31
31
|
state = doc.css('.table_okurijo_detail').first.css('tr').last.css('td').text.strip
|
32
|
-
if state
|
32
|
+
if state =~ /恐れ入りますが、お問い合せ送り状NOをお確かめください。|お荷物データが登録されておりません。/
|
33
33
|
raise NotMyKey.new('invalid key')
|
34
34
|
end
|
35
35
|
return time, state
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: takuhai_status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TADA Tadashi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|