delivery_state_jp 1.0.9 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -0
- data/delivery_state_jp.gemspec +1 -1
- data/lib/delivery_state_jp/base.rb +2 -0
- data/lib/delivery_state_jp/version.rb +1 -1
- data/lib/delivery_state_jp/yamato.rb +6 -0
- metadata +20 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6e625a18dad1db5a2bbf424d137ac10d44e01d42ae5a348067b58f84f5068382
|
4
|
+
data.tar.gz: a382eda4511df1f53794b839e1d521357b4f165f4808b24a90fdb81a7789e6e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92a8562b9096ff648d21c87d3e1c43285de54a4d6df0ab0c54330224ac323077bb713bc716876ecff763ee8ded7738f19d3c947d87ae045020447c6373d7f617
|
7
|
+
data.tar.gz: 61ec0118ba0fa76dcd7379a7e07d9e1ae68842349eac48387d2094bb5ec1e01e89a99e0612d8a11dc206c2c695644b6bc6bb8dae48c611680a8452ccf178d25b
|
data/README.md
CHANGED
data/delivery_state_jp.gemspec
CHANGED
@@ -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
|
-
|
35
|
+
spec.add_dependency 'pry-byebug'
|
36
36
|
end
|
@@ -1,5 +1,11 @@
|
|
1
1
|
module DeliveryStateJp
|
2
2
|
class Yamato < DeliveryStateJp::Base
|
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
|
7
|
+
end
|
8
|
+
|
3
9
|
def self.action_url
|
4
10
|
'http://toi.kuronekoyamato.co.jp/cgi-bin/tneko'
|
5
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delivery_state_jp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nyaahara
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -66,6 +66,20 @@ 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'
|
69
83
|
description: delivery_state_jp can get status from japanese delivery solutions
|
70
84
|
email:
|
71
85
|
- d.niihara@gmail.com
|
@@ -96,7 +110,7 @@ licenses:
|
|
96
110
|
- MIT
|
97
111
|
metadata:
|
98
112
|
allowed_push_host: https://rubygems.org
|
99
|
-
post_install_message:
|
113
|
+
post_install_message:
|
100
114
|
rdoc_options: []
|
101
115
|
require_paths:
|
102
116
|
- lib
|
@@ -111,9 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
125
|
- !ruby/object:Gem::Version
|
112
126
|
version: '0'
|
113
127
|
requirements: []
|
114
|
-
|
115
|
-
|
116
|
-
signing_key:
|
128
|
+
rubygems_version: 3.2.3
|
129
|
+
signing_key:
|
117
130
|
specification_version: 4
|
118
131
|
summary: delivery_state_jp can get status from japanese delivery solutions
|
119
132
|
test_files: []
|