delivery_state_jp 1.0.13 → 1.0.17

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: 6e625a18dad1db5a2bbf424d137ac10d44e01d42ae5a348067b58f84f5068382
4
- data.tar.gz: a382eda4511df1f53794b839e1d521357b4f165f4808b24a90fdb81a7789e6e6
3
+ metadata.gz: 31b640a14db16f41935581d9c54d2594c9d57b99b84cba5679432130961bc56a
4
+ data.tar.gz: 7d3fead26095d5042dd1f02ac1d64e56d09176caecbd2105ea1cc7b667aeb204
5
5
  SHA512:
6
- metadata.gz: 92a8562b9096ff648d21c87d3e1c43285de54a4d6df0ab0c54330224ac323077bb713bc716876ecff763ee8ded7738f19d3c947d87ae045020447c6373d7f617
7
- data.tar.gz: 61ec0118ba0fa76dcd7379a7e07d9e1ae68842349eac48387d2094bb5ec1e01e89a99e0612d8a11dc206c2c695644b6bc6bb8dae48c611680a8452ccf178d25b
6
+ metadata.gz: cdff1794f84f8be1e4c3a6aac6504150f141d047801e044155874f07ad29914b3d8defdb1f08836793e0a836a57d3d5187b98ecccaba0e3be0e10e5596187964
7
+ data.tar.gz: c248fc9eaa2280fde8e3658995af5c0104206b2c719fd2478df37a48d352f73c64abb71e1f945c5e68c74e94f36b5f28e7f9a4d8c5bac913cfbdf8cdbf00d885
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.13.gem
50
+ gem push delivery_state_jp-1.0.17.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_dependency 'pry-byebug'
35
+ # spec.add_development_dependency 'pry-byebug', '~> 0'
36
36
  end
@@ -1,5 +1,3 @@
1
- require 'net/http'
2
-
3
1
  module DeliveryStateJp
4
2
  class Base
5
3
  def self.delivery_state(args)
@@ -1,3 +1,3 @@
1
1
  module DeliveryStateJp
2
- VERSION = "1.0.13"
2
+ VERSION = "1.0.17"
3
3
  end
@@ -1,9 +1,8 @@
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
- sleep 1
6
- doc.css('a[class=js-tracking-detail]').text
4
+ # doc = Nokogiri::HTML.parse(response_body(args), nil, charset)
5
+ response_body(args).force_encoding("UTF-8")
7
6
  end
8
7
 
9
8
  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.13
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - nyaahara
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
- - !ruby/object:Gem::Dependency
70
- name: pry-byebug
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
69
  description: delivery_state_jp can get status from japanese delivery solutions
84
70
  email:
85
71
  - d.niihara@gmail.com