delivery_state_jp 1.0.19 → 1.0.20
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 +1 -3
- 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: b4fe45f9b01899cbaf17abaaae7039d3d6b5c743bcb89fb9bc54a8cb947e26fd
|
4
|
+
data.tar.gz: f3ce3cc1e31a033f3d061a76e8f1e55ef159586a1bfc80fdf7542cf544a09035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8737e74522dbb7145f992293e3b915750483ffb5e2ec5160f54615ebe60c2a6b85d945a22ef52d9643fefc9f753b05ebcd1ed426a94b680bd5947769e45b28a5
|
7
|
+
data.tar.gz: edc6af6f80b000e194ddc5ec27b87ebfc169d5cc1f8cc031cb0b30e7fd394a73ed520d8bc65afa5e7babf951903e6f7c47145943e67b0601d5e61637ee68dc0d
|
data/README.md
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
module DeliveryStateJp
|
2
2
|
class Yamato < DeliveryStateJp::Base
|
3
3
|
def self.delivery_state(args)
|
4
|
-
|
5
|
-
# binding.pry
|
6
|
-
content = doc.xpath('/html/body/p/script[4]').first.content
|
4
|
+
content = response_body(args).force_encoding("UTF-8")
|
7
5
|
if m = content.match(/1件目.+\n.+.+\n.+\n.+swd.write.+>(?<state>.+)\<br\>\<\/font\>\<\/td\>/)
|
8
6
|
m[:state]
|
9
7
|
else
|