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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2ba83a815913c511d49498dc84d75bb1a641c86c2a0e122d5f531b06da6d4b3
4
- data.tar.gz: e442b3cc2fcc99fb2c24c1d397ee8e9cd587937811d9215c84a95d46e6daa441
3
+ metadata.gz: 0c6a38481dabc89b53493509801da344af904edfee0fae51a96dbfbbead5dd06
4
+ data.tar.gz: d3a270aa5d60cd4c44bc1cf5645cf49a3abeca8751a00c34812e94c29fb71972
5
5
  SHA512:
6
- metadata.gz: 5f73f348159dc026513ed68902deb1d0c69c0f7cae871af210aede17e2e2f4dd18e2d04b272da02d5f4dea20b99894bef1eb2a0f0c5a5d2d203d58e841279e03
7
- data.tar.gz: 0b4146d5bdfcfdc09f8c419b33a36d5c0d81184c9e4c64dc5ca70305509fe0e4c18ea29c914fa963d44aa29058cf298b90a65acfdd2ca583fafcb33de334f5c0
6
+ metadata.gz: f420e7bb6fa26b65f1edded31be1ebd0e8ecef0ad7e76ce3e9ca354c3a84bc968a73865f395d083bbcbeff2355ee7d0966315faeedf76bb87cd4fcba49df3f3b
7
+ data.tar.gz: 2fcb8690e9c5f39e0d9bce85fe934e78954dfbb535bbf4962f8fc932f1f98d86bc8ed16ebd9bc0b6a1a005bd54ddb42e4cef3318c3c09f1ecbb47ba583e381b4
data/README.md CHANGED
@@ -47,5 +47,5 @@ The gem is available as open source under the terms of the [MIT License](http://
47
47
 
48
48
  ```angular2
49
49
  gem build delivery_state_jp.gemspec
50
- gem push delivery_state_jp-1.0.11.gem
50
+ gem push delivery_state_jp-1.0.15.gem
51
51
  ```
@@ -1,3 +1,3 @@
1
1
  module DeliveryStateJp
2
- VERSION = "1.0.11"
2
+ VERSION = "1.0.15"
3
3
  end
@@ -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.css('a[class=js-tracking-detail]').first.text
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delivery_state_jp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - nyaahara