Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JpPrefecture::Prefecture.find(name: xxx)の挙動を修正 #19

Merged
merged 3 commits into from
Mar 30, 2016
Merged

JpPrefecture::Prefecture.find(name: xxx)の挙動を修正 #19

merged 3 commits into from
Mar 30, 2016

Conversation

k-motoyan
Copy link

#18 のIssueに対する修正です。

引数に空文字、nilを与えた場合にnilを返すようにしました。
よろしくお願いしますm(_ _)m

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 535b271 on k-motoyan:issue_18 into 81cb697 on chocoby:master.

@@ -115,6 +115,9 @@ def self.all
# @return [Integer] 見つかった場合は都道府県コード
# @return [nil] 見つからない場合は nil
def self.find_code_by_name(name)
# nameがnil、空文字の場合は見つからないと判断してnilを返す。
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コードだけで説明できていますので、コメントは削除してもらっても良いですか?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 38db914 on k-motoyan:issue_18 into 81cb697 on chocoby:master.

@k-motoyan
Copy link
Author

コメントを削除したので、再度ご確認お願いします。

@chocoby
Copy link
Owner

chocoby commented Mar 30, 2016

確認しました :shipit: ありがとうございます 👏

@chocoby chocoby merged commit 31c506a into chocoby:master Mar 30, 2016
@chocoby
Copy link
Owner

chocoby commented Mar 30, 2016

v0.8.1 としてリリースしました 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants