postal_check 0.1.1 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +20 -9
- data/lib/postal_check/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e99c41d662cce506e4ff8b826e4446361543df955f7b9e9f989b9db18c8cd269
|
|
4
|
+
data.tar.gz: eed6010ce5c781454d278e0a29961250c914a995cdaa588f940453b300af105a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0129f1c0cb226d994c2b60b8d027ec251427eb9812e504e1e1fe2b873f562e25587d7e27c0112d6de1148e4e69d75403e1e0a39ab80bd30669e75b3ba8452ce1'
|
|
7
|
+
data.tar.gz: 8db6a3ea179976950614f31fdfdb132237879071a2828da8c3517e67fe23efa3c768c74c78337129bd324f0c72ebff2c99bdb2bb39a6d2f15b878cf661ce717a
|
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# PostalCheck
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
A Ruby gem for you know whether city code has zip code of Japan .
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
@@ -14,7 +12,7 @@ gem 'postal_check'
|
|
|
14
12
|
|
|
15
13
|
And then execute:
|
|
16
14
|
|
|
17
|
-
$ bundle
|
|
15
|
+
$ bundle install
|
|
18
16
|
|
|
19
17
|
Or install it yourself as:
|
|
20
18
|
|
|
@@ -22,17 +20,30 @@ Or install it yourself as:
|
|
|
22
20
|
|
|
23
21
|
## Usage
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
The first argument is city code.
|
|
26
24
|
|
|
27
|
-
|
|
25
|
+
The second argument is zip code.
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
```ruby
|
|
28
|
+
PostalCheck.check(13107,'130-0015') # true
|
|
29
|
+
PostalCheck.check(45456,'130-0015') # false
|
|
30
|
+
PostalCheck.check([13107,45456],'130-0015') # true
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
zip_code = '130-0015'
|
|
33
|
+
PostalCheck.check(13107, zip_code) # true
|
|
34
|
+
```
|
|
32
35
|
|
|
33
36
|
## Contributing
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
1.Fork it
|
|
39
|
+
|
|
40
|
+
2.Create your feature branch (`git checkout -b your-new-feature`)
|
|
41
|
+
|
|
42
|
+
3.Commit your changes (`git commit -m 'Add new feature'`)
|
|
43
|
+
|
|
44
|
+
4.Push to the branch (`git push origin your-new-feature`)
|
|
45
|
+
|
|
46
|
+
5.Create new Pull Request
|
|
36
47
|
|
|
37
48
|
## License
|
|
38
49
|
|
data/lib/postal_check/version.rb
CHANGED