delivery_state_jp 1.0.15 → 1.0.19

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: 0c6a38481dabc89b53493509801da344af904edfee0fae51a96dbfbbead5dd06
4
- data.tar.gz: d3a270aa5d60cd4c44bc1cf5645cf49a3abeca8751a00c34812e94c29fb71972
3
+ metadata.gz: fa069a0a6854374d68e0bb2b82ecea5ce55e6772eacbc555385972ecd140536f
4
+ data.tar.gz: e82446f2f894a47ae463cf34015a4e0c7730b086b1e9f5cc945043b9588f4516
5
5
  SHA512:
6
- metadata.gz: f420e7bb6fa26b65f1edded31be1ebd0e8ecef0ad7e76ce3e9ca354c3a84bc968a73865f395d083bbcbeff2355ee7d0966315faeedf76bb87cd4fcba49df3f3b
7
- data.tar.gz: 2fcb8690e9c5f39e0d9bce85fe934e78954dfbb535bbf4962f8fc932f1f98d86bc8ed16ebd9bc0b6a1a005bd54ddb42e4cef3318c3c09f1ecbb47ba583e381b4
6
+ metadata.gz: cf8ac60a98032e858f773d9e73888fc713b8107275de6d3e8b8005ffcadab0f21687d603bd3aef1afe949bdb257b54472f2328c62c303a4fe20c61d5abc4724c
7
+ data.tar.gz: c389dd79d4f86f15aac97287aa12d287761aec970d5e4f20b1fd2e2c271fc56661f3f54abcad671a6f0c2b9f19dac7d72fccab8f9de518ec835cb3acbb47cc3c
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.15.gem
50
+ gem push delivery_state_jp-1.0.19.gem
51
51
  ```
@@ -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.add_development_dependency 'pry-byebug', '~> 0'
35
+ # spec.add_dependency 'pry-byebug'
36
36
  end
@@ -1,3 +1,5 @@
1
+ # require 'net/http'
2
+
1
3
  module DeliveryStateJp
2
4
  class Base
3
5
  def self.delivery_state(args)
@@ -1,3 +1,3 @@
1
1
  module DeliveryStateJp
2
- VERSION = "1.0.15"
2
+ VERSION = "1.0.19"
3
3
  end
@@ -1,8 +1,9 @@
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), nil, charset)
5
- content = doc.xpath('/html/body/p/script[4]').first.children.first.content
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
6
7
  if m = content.match(/1件目.+\n.+.+\n.+\n.+swd.write.+>(?<state>.+)\<br\>\<\/font\>\<\/td\>/)
7
8
  m[:state]
8
9
  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.15
4
+ version: 1.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - nyaahara