delivery_state_jp 1.0.16 → 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/delivery_state_jp.gemspec +1 -1
- data/lib/delivery_state_jp/base.rb +2 -0
- data/lib/delivery_state_jp/version.rb +1 -1
- data/lib/delivery_state_jp/yamato.rb +6 -2
- 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
data/delivery_state_jp.gemspec
CHANGED
@@ -32,5 +32,5 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency 'bundler', '~> 1.11'
|
33
33
|
spec.add_development_dependency 'rake', '~> 10.0'
|
34
34
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
35
|
-
# spec.
|
35
|
+
# spec.add_dependency 'pry-byebug'
|
36
36
|
end
|
@@ -1,8 +1,12 @@
|
|
1
1
|
module DeliveryStateJp
|
2
2
|
class Yamato < DeliveryStateJp::Base
|
3
3
|
def self.delivery_state(args)
|
4
|
-
|
5
|
-
|
4
|
+
content = response_body(args).force_encoding("UTF-8")
|
5
|
+
if m = content.match(/1件目.+\n.+.+\n.+\n.+swd.write.+>(?<state>.+)\<br\>\<\/font\>\<\/td\>/)
|
6
|
+
m[:state]
|
7
|
+
else
|
8
|
+
'不明'
|
9
|
+
end
|
6
10
|
end
|
7
11
|
|
8
12
|
def self.action_url
|