yuso 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/console +2 -2
- data/lib/yuso.rb +7 -4
- data/lib/yuso/delivery_time_period.rb +14 -0
- data/lib/yuso/sagawa.rb +16 -0
- data/lib/yuso/version.rb +1 -1
- data/lib/yuso/yamato.rb +14 -0
- data/lib/yuso/yubin.rb +15 -0
- data/yuso.gemspec +1 -0
- metadata +21 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dba9c8b519b0c5abb47dc7a79c4da08f6f193c9
|
4
|
+
data.tar.gz: 2956348f5492561118d0728cc874ef1b1d8cf973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad6fe52787be4ff6aa3469aef33a059ef2a0b6659ca7a7fc261fe384872e85818a7e383e24e23b7885c5c889470ea3b1f8d9cdaa574c216a19de72ba5fce5e5d
|
7
|
+
data.tar.gz: c673e853866a7058503e5328c160d3cfd270797cb1f735f0e8bf878b508d3185bf81d825caccfd83e73d86c80fcdd531f11bb6148b3676b29c3207603e8ea936
|
data/bin/console
CHANGED
data/lib/yuso.rb
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require
|
4
|
-
require
|
1
|
+
require 'yuso/version'
|
2
|
+
require 'yuso/yamato/shipping_fee'
|
3
|
+
require 'yuso/sagawa/shipping_fee'
|
4
|
+
require 'yuso/yubin/shipping_fee'
|
5
|
+
require 'yuso/yamato'
|
6
|
+
require 'yuso/sagawa'
|
7
|
+
require 'yuso/yubin'
|
5
8
|
|
6
9
|
module Yuso
|
7
10
|
DATA_PATH = File.join(__dir__, '../data')
|
data/lib/yuso/sagawa.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'yuso/delivery_time_period'
|
2
|
+
module Yuso
|
3
|
+
class Sagawa
|
4
|
+
def self.delivery_time_periods
|
5
|
+
[
|
6
|
+
DeliveryTimePeriod.new(company: 'sagawa', period: '08:00 ~ 12:00'),
|
7
|
+
DeliveryTimePeriod.new(company: 'sagawa', period: '12:00 ~ 14:00'),
|
8
|
+
DeliveryTimePeriod.new(company: 'sagawa', period: '14:00 ~ 16:00'),
|
9
|
+
DeliveryTimePeriod.new(company: 'sagawa', period: '16:00 ~ 18:00'),
|
10
|
+
DeliveryTimePeriod.new(company: 'sagawa', period: '18:00 ~ 20:00'),
|
11
|
+
DeliveryTimePeriod.new(company: 'sagawa', period: '18:00 ~ 21:00'),
|
12
|
+
DeliveryTimePeriod.new(company: 'sagawa', period: '19:00 ~ 21:00')
|
13
|
+
]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/yuso/version.rb
CHANGED
data/lib/yuso/yamato.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'yuso/delivery_time_period'
|
2
|
+
module Yuso
|
3
|
+
class Yamato
|
4
|
+
def self.delivery_time_periods
|
5
|
+
[
|
6
|
+
Yuso::DeliveryTimePeriod.new(company: 'yamato', period: '08:00 ~ 12:00', deadline: '07:00'),
|
7
|
+
Yuso::DeliveryTimePeriod.new(company: 'yamato', period: '14:00 ~ 16:00', deadline: '13:40'),
|
8
|
+
Yuso::DeliveryTimePeriod.new(company: 'yamato', period: '16:00 ~ 18:00', deadline: '15:40'),
|
9
|
+
Yuso::DeliveryTimePeriod.new(company: 'yamato', period: '18:00 ~ 20:00', deadline: '17:40'),
|
10
|
+
Yuso::DeliveryTimePeriod.new(company: 'yamato', period: '19:00 ~ 21:00', deadline: '18:40')
|
11
|
+
]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/yuso/yubin.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'yuso/delivery_time_period'
|
2
|
+
module Yuso
|
3
|
+
class Yubin
|
4
|
+
def self.delivery_time_periods
|
5
|
+
[
|
6
|
+
DeliveryTimePeriod.new(company: 'yubin', period: '08:00 ~ 12:00'),
|
7
|
+
DeliveryTimePeriod.new(company: 'yubin', period: '12:00 ~ 14:00'),
|
8
|
+
DeliveryTimePeriod.new(company: 'yubin', period: '14:00 ~ 16:00'),
|
9
|
+
DeliveryTimePeriod.new(company: 'yubin', period: '16:00 ~ 18:00'),
|
10
|
+
DeliveryTimePeriod.new(company: 'yubin', period: '18:00 ~ 20:00'),
|
11
|
+
DeliveryTimePeriod.new(company: 'yubin', period: '20:00 ~ 21:00')
|
12
|
+
]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/yuso.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yuso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Okura Masafumi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
description: A library containing shipping fee data of three major shipping companies
|
70
84
|
in Japan.
|
71
85
|
email:
|
@@ -123,11 +137,15 @@ files:
|
|
123
137
|
- data/yubin/tohoku.json
|
124
138
|
- data/yubin/tokai.json
|
125
139
|
- lib/yuso.rb
|
140
|
+
- lib/yuso/delivery_time_period.rb
|
141
|
+
- lib/yuso/sagawa.rb
|
126
142
|
- lib/yuso/sagawa/mapping.rb
|
127
143
|
- lib/yuso/sagawa/shipping_fee.rb
|
128
144
|
- lib/yuso/version.rb
|
145
|
+
- lib/yuso/yamato.rb
|
129
146
|
- lib/yuso/yamato/mapping.rb
|
130
147
|
- lib/yuso/yamato/shipping_fee.rb
|
148
|
+
- lib/yuso/yubin.rb
|
131
149
|
- lib/yuso/yubin/mapping.rb
|
132
150
|
- lib/yuso/yubin/shipping_fee.rb
|
133
151
|
- yuso.gemspec
|
@@ -151,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
169
|
version: '0'
|
152
170
|
requirements: []
|
153
171
|
rubyforge_project:
|
154
|
-
rubygems_version: 2.6.
|
172
|
+
rubygems_version: 2.6.13
|
155
173
|
signing_key:
|
156
174
|
specification_version: 4
|
157
175
|
summary: A library containing shipping fee data of three major shipping companies
|