yuso 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/data/sagawa/chugoku.json +86 -0
- data/data/sagawa/hokkaido.json +86 -0
- data/data/sagawa/hokuriku.json +86 -0
- data/data/sagawa/kansai.json +86 -0
- data/data/sagawa/kanto.json +86 -0
- data/data/sagawa/kitakyushu.json +86 -0
- data/data/sagawa/kitatohoku.json +86 -0
- data/data/sagawa/mapping.json +49 -0
- data/data/sagawa/minamikyushu.json +158 -0
- data/data/sagawa/minamitohoku.json +86 -0
- data/data/sagawa/okinawa.json +1 -0
- data/data/sagawa/shikoku.json +86 -0
- data/data/sagawa/shinetsu.json +86 -0
- data/data/sagawa/tokai.json +86 -0
- data/data/yamato/chubu.json +98 -0
- data/data/yamato/chugoku.json +98 -0
- data/data/yamato/hokkaido.json +98 -0
- data/data/yamato/hokuriku.json +98 -0
- data/data/yamato/kansai.json +98 -0
- data/data/yamato/kanto.json +98 -0
- data/data/yamato/kitatohoku.json +98 -0
- data/data/yamato/kyushu.json +98 -0
- data/data/yamato/mapping.json +49 -0
- data/data/yamato/minamitohoku.json +98 -0
- data/data/yamato/okinawa.json +98 -0
- data/data/yamato/shikoku.json +98 -0
- data/data/yamato/shinetsu.json +98 -0
- data/data/yubin/chugoku.json +101 -0
- data/data/yubin/hokkaido.json +101 -0
- data/data/yubin/hokuriku.json +101 -0
- data/data/yubin/kanto.json +101 -0
- data/data/yubin/kinki.json +101 -0
- data/data/yubin/kyushu.json +101 -0
- data/data/yubin/mapping.json +49 -0
- data/data/yubin/okinawa.json +101 -0
- data/data/yubin/shikoku.json +101 -0
- data/data/yubin/shinetsu.json +101 -0
- data/data/yubin/tohoku.json +101 -0
- data/data/yubin/tokai.json +101 -0
- data/lib/yuso.rb +8 -0
- data/lib/yuso/sagawa/shipping_fee.rb +15 -0
- data/lib/yuso/version.rb +3 -0
- data/lib/yuso/yamato/shipping_fee.rb +15 -0
- data/lib/yuso/yubin/shipping_fee.rb +15 -0
- data/yuso.gemspec +27 -0
- metadata +142 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8f512205343f8feb86f546224aca11b312255c89
|
4
|
+
data.tar.gz: 04a990826998e1e5d9bd7d3a818d55a04f1666bc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 57c1f398ef1fcb82aee6810e20a74413814cbc6e5207323df91a327f9bce861743d2c63f58683e3cc9b4e8f13e0a5b2fd00b205be59d1777d08bb4b8ca0a6a8c
|
7
|
+
data.tar.gz: c2afbc3314e24eb65543dc7a39cac1a7ab69d36ee4cb593ea780c81a24da79c7c0d49dd364b6177ba4039cfa89b3419846d5c52870a9289d53ede1dcc2eea041
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Okura Masafumi
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Yuso
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/yuso`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'yuso'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install yuso
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/yuso.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "yuso"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
{
|
2
|
+
"minamikyushu": {
|
3
|
+
"60": "756",
|
4
|
+
"80": "1,026",
|
5
|
+
"100": "1,296",
|
6
|
+
"140": "1,566",
|
7
|
+
"160": "1,836"
|
8
|
+
},
|
9
|
+
"kitakyushu": {
|
10
|
+
"60": "756",
|
11
|
+
"80": "1,026",
|
12
|
+
"100": "1,296",
|
13
|
+
"140": "1,566",
|
14
|
+
"160": "1,836"
|
15
|
+
},
|
16
|
+
"shikoku": {
|
17
|
+
"60": "864",
|
18
|
+
"80": "1,134",
|
19
|
+
"100": "1,404",
|
20
|
+
"140": "1,674",
|
21
|
+
"160": "1,944"
|
22
|
+
},
|
23
|
+
"chugoku": {
|
24
|
+
"60": "756",
|
25
|
+
"80": "1,026",
|
26
|
+
"100": "1,296",
|
27
|
+
"140": "1,566",
|
28
|
+
"160": "1,836"
|
29
|
+
},
|
30
|
+
"kaisai": {
|
31
|
+
"60": "756",
|
32
|
+
"80": "1,026",
|
33
|
+
"100": "1,296",
|
34
|
+
"140": "1,566",
|
35
|
+
"160": "1,836"
|
36
|
+
},
|
37
|
+
"hokuriku": {
|
38
|
+
"60": "864",
|
39
|
+
"80": "1,134",
|
40
|
+
"100": "1,404",
|
41
|
+
"140": "1,674",
|
42
|
+
"160": "1,944"
|
43
|
+
},
|
44
|
+
"tokai": {
|
45
|
+
"60": "864",
|
46
|
+
"80": "1,134",
|
47
|
+
"100": "1,404",
|
48
|
+
"140": "1,674",
|
49
|
+
"160": "1,944"
|
50
|
+
},
|
51
|
+
"shinetsu": {
|
52
|
+
"60": "972",
|
53
|
+
"80": "1,242",
|
54
|
+
"100": "1,512",
|
55
|
+
"140": "1,782",
|
56
|
+
"160": "2,052"
|
57
|
+
},
|
58
|
+
"kanto": {
|
59
|
+
"60": "972",
|
60
|
+
"80": "1,242",
|
61
|
+
"100": "1,512",
|
62
|
+
"140": "1,782",
|
63
|
+
"160": "2,052"
|
64
|
+
},
|
65
|
+
"minamitohoku": {
|
66
|
+
"60": "1,188",
|
67
|
+
"80": "1,458",
|
68
|
+
"100": "1,728",
|
69
|
+
"140": "1,998",
|
70
|
+
"160": "2,268"
|
71
|
+
},
|
72
|
+
"kitatohoku": {
|
73
|
+
"60": "1,188",
|
74
|
+
"80": "1,458",
|
75
|
+
"100": "1,728",
|
76
|
+
"140": "1,998",
|
77
|
+
"160": "2,268"
|
78
|
+
},
|
79
|
+
"hokkaido": {
|
80
|
+
"60": "1,620",
|
81
|
+
"80": "1,890",
|
82
|
+
"100": "2,160",
|
83
|
+
"140": "2,430",
|
84
|
+
"160": "2,700"
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
{
|
2
|
+
"minamikyushu": {
|
3
|
+
"60": "1,836",
|
4
|
+
"80": "2,106",
|
5
|
+
"100": "2,376",
|
6
|
+
"140": "2,646",
|
7
|
+
"160": "2,916"
|
8
|
+
},
|
9
|
+
"kitakyushu": {
|
10
|
+
"60": "1,836",
|
11
|
+
"80": "2,106",
|
12
|
+
"100": "2,376",
|
13
|
+
"140": "2,646",
|
14
|
+
"160": "2,916"
|
15
|
+
},
|
16
|
+
"shikoku": {
|
17
|
+
"60": "1,728",
|
18
|
+
"80": "1,998",
|
19
|
+
"100": "2,268",
|
20
|
+
"140": "2,538",
|
21
|
+
"160": "2,808"
|
22
|
+
},
|
23
|
+
"chugoku": {
|
24
|
+
"60": "1,620",
|
25
|
+
"80": "1,890",
|
26
|
+
"100": "2,160",
|
27
|
+
"140": "2,430",
|
28
|
+
"160": "2,700"
|
29
|
+
},
|
30
|
+
"kaisai": {
|
31
|
+
"60": "1,512",
|
32
|
+
"80": "1,782",
|
33
|
+
"100": "2,052",
|
34
|
+
"140": "2,322",
|
35
|
+
"160": "2,592"
|
36
|
+
},
|
37
|
+
"hokuriku": {
|
38
|
+
"60": "1,296",
|
39
|
+
"80": "1,566",
|
40
|
+
"100": "1,836",
|
41
|
+
"140": "2,106",
|
42
|
+
"160": "2,376"
|
43
|
+
},
|
44
|
+
"tokai": {
|
45
|
+
"60": "1,296",
|
46
|
+
"80": "1,566",
|
47
|
+
"100": "1,836",
|
48
|
+
"140": "2,106",
|
49
|
+
"160": "2,376"
|
50
|
+
},
|
51
|
+
"shinetsu": {
|
52
|
+
"60": "1,188",
|
53
|
+
"80": "1,458",
|
54
|
+
"100": "1,728",
|
55
|
+
"140": "1,998",
|
56
|
+
"160": "2,268"
|
57
|
+
},
|
58
|
+
"kanto": {
|
59
|
+
"60": "1,188",
|
60
|
+
"80": "1,458",
|
61
|
+
"100": "1,728",
|
62
|
+
"140": "1,998",
|
63
|
+
"160": "2,268"
|
64
|
+
},
|
65
|
+
"minamitohoku": {
|
66
|
+
"60": "1,080",
|
67
|
+
"80": "1,350",
|
68
|
+
"100": "1,620",
|
69
|
+
"140": "1,890",
|
70
|
+
"160": "2,160"
|
71
|
+
},
|
72
|
+
"kitatohoku": {
|
73
|
+
"60": "972",
|
74
|
+
"80": "1,242",
|
75
|
+
"100": "1,512",
|
76
|
+
"140": "1,782",
|
77
|
+
"160": "2,052"
|
78
|
+
},
|
79
|
+
"hokkaido": {
|
80
|
+
"60": "756",
|
81
|
+
"80": "1,026",
|
82
|
+
"100": "1,296",
|
83
|
+
"140": "1,566",
|
84
|
+
"160": "1,836"
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
{
|
2
|
+
"minamikyushu": {
|
3
|
+
"60": "972",
|
4
|
+
"80": "1,242",
|
5
|
+
"100": "1,512",
|
6
|
+
"140": "1,782",
|
7
|
+
"160": "2,052"
|
8
|
+
},
|
9
|
+
"kitakyushu": {
|
10
|
+
"60": "972",
|
11
|
+
"80": "1,242",
|
12
|
+
"100": "1,512",
|
13
|
+
"140": "1,782",
|
14
|
+
"160": "2,052"
|
15
|
+
},
|
16
|
+
"shikoku": {
|
17
|
+
"60": "972",
|
18
|
+
"80": "1,242",
|
19
|
+
"100": "1,512",
|
20
|
+
"140": "1,782",
|
21
|
+
"160": "2,052"
|
22
|
+
},
|
23
|
+
"chugoku": {
|
24
|
+
"60": "864",
|
25
|
+
"80": "1,134",
|
26
|
+
"100": "1,404",
|
27
|
+
"140": "1,674",
|
28
|
+
"160": "1,944"
|
29
|
+
},
|
30
|
+
"kaisai": {
|
31
|
+
"60": "756",
|
32
|
+
"80": "1,026",
|
33
|
+
"100": "1,296",
|
34
|
+
"140": "1,566",
|
35
|
+
"160": "1,836"
|
36
|
+
},
|
37
|
+
"hokuriku": {
|
38
|
+
"60": "756",
|
39
|
+
"80": "1,026",
|
40
|
+
"100": "1,296",
|
41
|
+
"140": "1,566",
|
42
|
+
"160": "1,836"
|
43
|
+
},
|
44
|
+
"tokai": {
|
45
|
+
"60": "756",
|
46
|
+
"80": "1,026",
|
47
|
+
"100": "1,296",
|
48
|
+
"140": "1,566",
|
49
|
+
"160": "1,836"
|
50
|
+
},
|
51
|
+
"shinetsu": {
|
52
|
+
"60": "756",
|
53
|
+
"80": "1,026",
|
54
|
+
"100": "1,296",
|
55
|
+
"140": "1,566",
|
56
|
+
"160": "1,836"
|
57
|
+
},
|
58
|
+
"kanto": {
|
59
|
+
"60": "756",
|
60
|
+
"80": "1,026",
|
61
|
+
"100": "1,296",
|
62
|
+
"140": "1,566",
|
63
|
+
"160": "1,836"
|
64
|
+
},
|
65
|
+
"minamitohoku": {
|
66
|
+
"60": "864",
|
67
|
+
"80": "1,134",
|
68
|
+
"100": "1,404",
|
69
|
+
"140": "1,674",
|
70
|
+
"160": "1,944"
|
71
|
+
},
|
72
|
+
"kitatohoku": {
|
73
|
+
"60": "972",
|
74
|
+
"80": "1,242",
|
75
|
+
"100": "1,512",
|
76
|
+
"140": "1,782",
|
77
|
+
"160": "2,052"
|
78
|
+
},
|
79
|
+
"hokkaido": {
|
80
|
+
"60": "1,296",
|
81
|
+
"80": "1,566",
|
82
|
+
"100": "1,836",
|
83
|
+
"140": "2,106",
|
84
|
+
"160": "2,376"
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
{
|
2
|
+
"minamikyushu": {
|
3
|
+
"60": "864",
|
4
|
+
"80": "1,134",
|
5
|
+
"100": "1,404",
|
6
|
+
"140": "1,674",
|
7
|
+
"160": "1,944"
|
8
|
+
},
|
9
|
+
"kitakyushu": {
|
10
|
+
"60": "864",
|
11
|
+
"80": "1,134",
|
12
|
+
"100": "1,404",
|
13
|
+
"140": "1,674",
|
14
|
+
"160": "1,944"
|
15
|
+
},
|
16
|
+
"shikoku": {
|
17
|
+
"60": "864",
|
18
|
+
"80": "1,134",
|
19
|
+
"100": "1,404",
|
20
|
+
"140": "1,674",
|
21
|
+
"160": "1,944"
|
22
|
+
},
|
23
|
+
"chugoku": {
|
24
|
+
"60": "756",
|
25
|
+
"80": "1,026",
|
26
|
+
"100": "1,296",
|
27
|
+
"140": "1,566",
|
28
|
+
"160": "1,836"
|
29
|
+
},
|
30
|
+
"kaisai": {
|
31
|
+
"60": "756",
|
32
|
+
"80": "1,026",
|
33
|
+
"100": "1,296",
|
34
|
+
"140": "1,566",
|
35
|
+
"160": "1,836"
|
36
|
+
},
|
37
|
+
"hokuriku": {
|
38
|
+
"60": "756",
|
39
|
+
"80": "1,026",
|
40
|
+
"100": "1,296",
|
41
|
+
"140": "1,566",
|
42
|
+
"160": "1,836"
|
43
|
+
},
|
44
|
+
"tokai": {
|
45
|
+
"60": "756",
|
46
|
+
"80": "1,026",
|
47
|
+
"100": "1,296",
|
48
|
+
"140": "1,566",
|
49
|
+
"160": "1,836"
|
50
|
+
},
|
51
|
+
"shinetsu": {
|
52
|
+
"60": "864",
|
53
|
+
"80": "1,134",
|
54
|
+
"100": "1,404",
|
55
|
+
"140": "1,674",
|
56
|
+
"160": "1,944"
|
57
|
+
},
|
58
|
+
"kanto": {
|
59
|
+
"60": "864",
|
60
|
+
"80": "1,134",
|
61
|
+
"100": "1,404",
|
62
|
+
"140": "1,674",
|
63
|
+
"160": "1,944"
|
64
|
+
},
|
65
|
+
"minamitohoku": {
|
66
|
+
"60": "972",
|
67
|
+
"80": "1,242",
|
68
|
+
"100": "1,512",
|
69
|
+
"140": "1,782",
|
70
|
+
"160": "2,052"
|
71
|
+
},
|
72
|
+
"kitatohoku": {
|
73
|
+
"60": "1,080",
|
74
|
+
"80": "1,350",
|
75
|
+
"100": "1,620",
|
76
|
+
"140": "1,890",
|
77
|
+
"160": "2,160"
|
78
|
+
},
|
79
|
+
"hokkaido": {
|
80
|
+
"60": "1,512",
|
81
|
+
"80": "1,782",
|
82
|
+
"100": "2,052",
|
83
|
+
"140": "2,322",
|
84
|
+
"160": "2,592"
|
85
|
+
}
|
86
|
+
}
|