delivery_state_jp 1.0.11 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/delivery_state_jp/version.rb +1 -1
- data/lib/delivery_state_jp/yamato.rb +6 -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: 0c6a38481dabc89b53493509801da344af904edfee0fae51a96dbfbbead5dd06
|
4
|
+
data.tar.gz: d3a270aa5d60cd4c44bc1cf5645cf49a3abeca8751a00c34812e94c29fb71972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f420e7bb6fa26b65f1edded31be1ebd0e8ecef0ad7e76ce3e9ca354c3a84bc968a73865f395d083bbcbeff2355ee7d0966315faeedf76bb87cd4fcba49df3f3b
|
7
|
+
data.tar.gz: 2fcb8690e9c5f39e0d9bce85fe934e78954dfbb535bbf4962f8fc932f1f98d86bc8ed16ebd9bc0b6a1a005bd54ddb42e4cef3318c3c09f1ecbb47ba583e381b4
|
data/README.md
CHANGED
@@ -2,7 +2,12 @@ module DeliveryStateJp
|
|
2
2
|
class Yamato < DeliveryStateJp::Base
|
3
3
|
def self.delivery_state(args)
|
4
4
|
doc = Nokogiri::HTML.parse(response_body(args), nil, charset)
|
5
|
-
doc.
|
5
|
+
content = doc.xpath('/html/body/p/script[4]').first.children.first.content
|
6
|
+
if m = content.match(/1件目.+\n.+.+\n.+\n.+swd.write.+>(?<state>.+)\<br\>\<\/font\>\<\/td\>/)
|
7
|
+
m[:state]
|
8
|
+
else
|
9
|
+
'不明'
|
10
|
+
end
|
6
11
|
end
|
7
12
|
|
8
13
|
def self.action_url
|