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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: add979c08cf77cabce51e7eb11d2dd622165325792f63b8aa1a33b88374e23c2
4
- data.tar.gz: 52685f40b7a6c3276bd3309ce5cab96988bddce9d218879a0d648a3ce5a43aab
3
+ metadata.gz: e99c41d662cce506e4ff8b826e4446361543df955f7b9e9f989b9db18c8cd269
4
+ data.tar.gz: eed6010ce5c781454d278e0a29961250c914a995cdaa588f940453b300af105a
5
5
  SHA512:
6
- metadata.gz: 8e714d136b9b9b59b9766414b0f723f1a1311b87f524bdf2546008c31d177cea9dbb070c1d0ab1f91db9aebb19955b34295a8bef738c97968278c7c33f680d53
7
- data.tar.gz: 22f5107709936807069c2870b90630062a0ae9cdc7e248e638ca6f3575e6b94d4d052559085aa6591ef5b4ca10f5b2fdcd3a4d8ce886f881f4fb4264ca28e8c8
6
+ metadata.gz: '0129f1c0cb226d994c2b60b8d027ec251427eb9812e504e1e1fe2b873f562e25587d7e27c0112d6de1148e4e69d75403e1e0a39ab80bd30669e75b3ba8452ce1'
7
+ data.tar.gz: 8db6a3ea179976950614f31fdfdb132237879071a2828da8c3517e67fe23efa3c768c74c78337129bd324f0c72ebff2c99bdb2bb39a6d2f15b878cf661ce717a
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # PostalCheck
2
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/postal_check`. 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
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
- TODO: Write usage instructions here
23
+ The first argument is city code.
26
24
 
27
- ## Development
25
+ The second argument is zip code.
28
26
 
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.
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
- 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
+ zip_code = '130-0015'
33
+ PostalCheck.check(13107, zip_code) # true
34
+ ```
32
35
 
33
36
  ## Contributing
34
37
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/postal_check.
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
 
@@ -1,3 +1,3 @@
1
1
  module PostalCheck
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postal_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - akito