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 134fba8069e9fa4d7b1ca58ce507f6e6c2d4fd8c Mon Sep 17 00:00:00 2001 From: yjwyuanwu <3518485636@qq.com> Date: Tue, 14 May 2024 18:38:21 +0800 Subject: [PATCH 2/2] Add output Github --- lib/fizzbuzz.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fizzbuzz.rb b/lib/fizzbuzz.rb index 717b0e7..c153126 100644 --- a/lib/fizzbuzz.rb +++ b/lib/fizzbuzz.rb @@ -1,7 +1,7 @@ class Fizzbuzz def calculate number if number.to_s.include? '7' - 'GitHub' + 'GitHub yuanwu' elsif number % 3 == 0 && number % 5 == 0 'fizzbuzz' elsif number % 3 == 0 @@ -12,4 +12,4 @@ def calculate number number end end -end \ No newline at end of file +end