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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa069a0a6854374d68e0bb2b82ecea5ce55e6772eacbc555385972ecd140536f
4
- data.tar.gz: e82446f2f894a47ae463cf34015a4e0c7730b086b1e9f5cc945043b9588f4516
3
+ metadata.gz: b4fe45f9b01899cbaf17abaaae7039d3d6b5c743bcb89fb9bc54a8cb947e26fd
4
+ data.tar.gz: f3ce3cc1e31a033f3d061a76e8f1e55ef159586a1bfc80fdf7542cf544a09035
5
5
  SHA512:
6
- metadata.gz: cf8ac60a98032e858f773d9e73888fc713b8107275de6d3e8b8005ffcadab0f21687d603bd3aef1afe949bdb257b54472f2328c62c303a4fe20c61d5abc4724c
7
- data.tar.gz: c389dd79d4f86f15aac97287aa12d287761aec970d5e4f20b1fd2e2c271fc56661f3f54abcad671a6f0c2b9f19dac7d72fccab8f9de518ec835cb3acbb47cc3c
6
+ metadata.gz: 8737e74522dbb7145f992293e3b915750483ffb5e2ec5160f54615ebe60c2a6b85d945a22ef52d9643fefc9f753b05ebcd1ed426a94b680bd5947769e45b28a5
7
+ data.tar.gz: edc6af6f80b000e194ddc5ec27b87ebfc169d5cc1f8cc031cb0b30e7fd394a73ed520d8bc65afa5e7babf951903e6f7c47145943e67b0601d5e61637ee68dc0d
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.19.gem
50
+ gem push delivery_state_jp-1.0.20.gem
51
51
  ```
@@ -1,3 +1,3 @@
1
1
  module DeliveryStateJp
2
- VERSION = "1.0.19"
2
+ VERSION = "1.0.20"
3
3
  end
@@ -1,9 +1,7 @@
1
1
  module DeliveryStateJp
2
2
  class Yamato < DeliveryStateJp::Base
3
3
  def self.delivery_state(args)
4
- doc = Nokogiri::HTML.parse(response_body(args).force_encoding("UTF-8"), nil, charset)
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
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.19
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - nyaahara