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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac392e812ab3a78030ebb70e1cc262f7fc4c863db27faa1e066018185ab6217b
4
- data.tar.gz: 16019a502d7d6da391fdd0cb3fe9ed5e3fe958bcbdf51686323df0b59a994c71
3
+ metadata.gz: b4fe45f9b01899cbaf17abaaae7039d3d6b5c743bcb89fb9bc54a8cb947e26fd
4
+ data.tar.gz: f3ce3cc1e31a033f3d061a76e8f1e55ef159586a1bfc80fdf7542cf544a09035
5
5
  SHA512:
6
- metadata.gz: 2ed5f057f1813926fc6a9dc337da7246976974459a2c5938a4c68cdf2eb582463509b8e8a418c6ab8d52bd0187a99d3f83c55677a96560525fadc43a767ddb71
7
- data.tar.gz: c0dd97412e49fe2505c8381942426a7d65c5357cb679d57dcc938eb5c20fd1454ff7ead3508720c57c7a08df293d4ab435fd2591399b7923d2351f2d4c6246c7
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.16.gem
50
+ gem push delivery_state_jp-1.0.20.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.16"
2
+ VERSION = "1.0.20"
3
3
  end
@@ -1,8 +1,12 @@
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
- response_body(args)
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
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.16
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - nyaahara