From e2eb4361a00b0a6568ddb220f6c8b71094f013f2 Mon Sep 17 00:00:00 2001 From: Bin Liu Date: Thu, 8 Sep 2016 16:37:18 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 117858a..9b883c6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ fizzbuzz [![Build Status](https://travis-ci.org/ituring/fizzbuzz.png)](https://travis-ci.org/ituring/fizzbuzz) 本仓库供本书读者参考用,不接收任何形式的Pull Request,敬请谅解。 + +Pull request 请到 https://github.com/ituring/first-pr 。 From e3205e49586ec1546f35c90b619d02a0b91ff5fc Mon Sep 17 00:00:00 2001 From: DDDoki <1061882403@qq.com> Date: Tue, 1 Sep 2020 22:09:00 +0800 Subject: [PATCH 2/2] Add output Github --- lib/fizzbuzz.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/fizzbuzz.rb b/lib/fizzbuzz.rb index 717b0e7..11dbbc6 100644 --- a/lib/fizzbuzz.rb +++ b/lib/fizzbuzz.rb @@ -8,6 +8,8 @@ def calculate number 'fizz' elsif number % 5 == 0 'buzz' + elsif number % 7 == 0 + 'github' else number end