ruby-fizzbuzz 0.7.0 → 0.8.0
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 +5 -5
- checksums.yaml.gz.sig +5 -0
- data.tar.gz.sig +0 -0
- data/AUTHORS +1 -1
- data/CHANGELOG.md +175 -0
- data/COPYRIGHT +1 -1
- data/README.md +46 -0
- data/VERSION +1 -1
- data/bin/fizzbuzz +33 -61
- data/ext/fizzbuzz/common.h +39 -29
- data/ext/fizzbuzz/extconf.rb +24 -43
- data/ext/fizzbuzz/fizzbuzz.c +100 -117
- data/ext/fizzbuzz/fizzbuzz.h +60 -118
- data/kwilczynski-public.pem +25 -0
- data/lib/fizzbuzz.rb +106 -40
- data/lib/fizzbuzz/core/array.rb +9 -36
- data/lib/fizzbuzz/core/bignum.rb +9 -38
- data/lib/fizzbuzz/core/integer.rb +9 -38
- data/lib/fizzbuzz/core/range.rb +2 -31
- data/lib/fizzbuzz/version.rb +2 -29
- metadata +51 -24
- metadata.gz.sig +0 -0
- data/CHANGES +0 -84
- data/CHANGES.rdoc +0 -84
- data/README +0 -5
- data/README.rdoc +0 -12
- data/Rakefile +0 -97
- data/TODO +0 -16
- data/benchmark/benchmark_fizzbuzz.rb +0 -107
- data/ruby-fizzbuzz.gemspec +0 -65
- data/test/test_fizzbuzz.rb +0 -639
data/lib/fizzbuzz/core/array.rb
CHANGED
@@ -1,27 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
# :stopdoc:
|
4
|
-
|
5
|
-
#
|
6
|
-
# core/array.rb
|
7
|
-
#
|
8
|
-
# Copyright 2012-2014 Krzysztof Wilczynski
|
9
|
-
#
|
10
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
# you may not use this file except in compliance with the License.
|
12
|
-
# You may obtain a copy of the License at
|
13
|
-
#
|
14
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
#
|
16
|
-
# Unless required by applicable law or agreed to in writing, software
|
17
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
# See the License for the specific language governing permissions and
|
20
|
-
# limitations under the License.
|
21
|
-
#
|
22
|
-
|
23
|
-
# :startdoc:
|
24
|
-
|
25
1
|
#
|
26
2
|
# Provides a convenient integration of _FizzBuzz_ with _Array_ class.
|
27
3
|
#
|
@@ -42,8 +18,8 @@ class Array
|
|
42
18
|
# Example:
|
43
19
|
#
|
44
20
|
# array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
45
|
-
# array.fizzbuzz
|
46
|
-
# array.fizzbuzz(true)
|
21
|
+
# array.fizzbuzz #=> [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz"]
|
22
|
+
# array.fizzbuzz(true) #=> ["FizzBuzz", 14, 13, "Fizz", 11, "Buzz", "Fizz", 8, 7, "Fizz", "Buzz", 4, "Fizz", 2, 1]
|
47
23
|
#
|
48
24
|
# Example:
|
49
25
|
#
|
@@ -70,19 +46,16 @@ class Array
|
|
70
46
|
#
|
71
47
|
# See also: FizzBuzz::fizzbuzz, FizzBuzz#to_a, FizzBuzz#each and FizzBuzz#reverse_each
|
72
48
|
#
|
73
|
-
def fizzbuzz(reverse = false)
|
74
|
-
values = self.send(reverse ? :reverse : :to_a)
|
75
|
-
|
49
|
+
def fizzbuzz(reverse = false, &block)
|
76
50
|
if block_given?
|
77
|
-
|
51
|
+
send(reverse ? :reverse : :to_a).each do |i|
|
52
|
+
yield FizzBuzz[i]
|
53
|
+
end
|
78
54
|
self
|
79
55
|
else
|
80
|
-
|
56
|
+
send(reverse ? :reverse : :to_a).map do |i|
|
57
|
+
FizzBuzz[i]
|
58
|
+
end
|
81
59
|
end
|
82
60
|
end
|
83
61
|
end
|
84
|
-
|
85
|
-
# :enddoc:
|
86
|
-
|
87
|
-
# vim: set ts=2 sw=2 sts=2 et :
|
88
|
-
# encoding: utf-8
|
data/lib/fizzbuzz/core/bignum.rb
CHANGED
@@ -1,27 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
# :stopdoc:
|
4
|
-
|
5
|
-
#
|
6
|
-
# core/bignum.rb
|
7
|
-
#
|
8
|
-
# Copyright 2012-2014 Krzysztof Wilczynski
|
9
|
-
#
|
10
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
# you may not use this file except in compliance with the License.
|
12
|
-
# You may obtain a copy of the License at
|
13
|
-
#
|
14
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
#
|
16
|
-
# Unless required by applicable law or agreed to in writing, software
|
17
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
# See the License for the specific language governing permissions and
|
20
|
-
# limitations under the License.
|
21
|
-
#
|
22
|
-
|
23
|
-
# :startdoc:
|
24
|
-
|
25
1
|
#
|
26
2
|
# Provides a convenient integration of _FizzBuzz_ with _Bignum_ class.
|
27
3
|
#
|
@@ -35,9 +11,9 @@ class Bignum
|
|
35
11
|
#
|
36
12
|
# Example:
|
37
13
|
#
|
38
|
-
# 1000000000000.fizz?
|
39
|
-
# 1000000000002.fizz?
|
40
|
-
# 1000000000005.fizz?
|
14
|
+
# 1000000000000.fizz? #=> false
|
15
|
+
# 1000000000002.fizz? #=> true
|
16
|
+
# 1000000000005.fizz? #=> false
|
41
17
|
#
|
42
18
|
# See also: FizzBuzz::[] and FizzBuzz::is_fizz?
|
43
19
|
#
|
@@ -54,9 +30,9 @@ class Bignum
|
|
54
30
|
#
|
55
31
|
# Example:
|
56
32
|
#
|
57
|
-
# 1000000000000.buzz?
|
58
|
-
# 1000000000002.buzz?
|
59
|
-
# 1000000000005.buzz?
|
33
|
+
# 1000000000000.buzz? #=> true
|
34
|
+
# 1000000000002.buzz? #=> false
|
35
|
+
# 1000000000005.buzz? #=> false
|
60
36
|
#
|
61
37
|
# See also: FizzBuzz::[] and FizzBuzz::is_buzz?
|
62
38
|
#
|
@@ -73,9 +49,9 @@ class Bignum
|
|
73
49
|
#
|
74
50
|
# Example:
|
75
51
|
#
|
76
|
-
# 1000000000000.fizzbuzz?
|
77
|
-
# 1000000000002.fizzbuzz?
|
78
|
-
# 1000000000005.fizzbuzz?
|
52
|
+
# 1000000000000.fizzbuzz? #=> false
|
53
|
+
# 1000000000002.fizzbuzz? #=> false
|
54
|
+
# 1000000000005.fizzbuzz? #=> true
|
79
55
|
#
|
80
56
|
# See also: FizzBuzz::[] and FizzBuzz::is_fizzbuzz?
|
81
57
|
#
|
@@ -83,8 +59,3 @@ class Bignum
|
|
83
59
|
FizzBuzz.is_fizzbuzz?(self)
|
84
60
|
end
|
85
61
|
end
|
86
|
-
|
87
|
-
# :enddoc:
|
88
|
-
|
89
|
-
# vim: set ts=2 sw=2 sts=2 et :
|
90
|
-
# encoding: utf-8
|
@@ -1,27 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
# :stopdoc:
|
4
|
-
|
5
|
-
#
|
6
|
-
# core/integer.rb
|
7
|
-
#
|
8
|
-
# Copyright 2012-2014 Krzysztof Wilczynski
|
9
|
-
#
|
10
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
# you may not use this file except in compliance with the License.
|
12
|
-
# You may obtain a copy of the License at
|
13
|
-
#
|
14
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
#
|
16
|
-
# Unless required by applicable law or agreed to in writing, software
|
17
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
# See the License for the specific language governing permissions and
|
20
|
-
# limitations under the License.
|
21
|
-
#
|
22
|
-
|
23
|
-
# :startdoc:
|
24
|
-
|
25
1
|
#
|
26
2
|
# Provides a convenient integration of _FizzBuzz_ with _Integer_ class.
|
27
3
|
#
|
@@ -35,9 +11,9 @@ class Integer
|
|
35
11
|
#
|
36
12
|
# Example:
|
37
13
|
#
|
38
|
-
# 3.fizz?
|
39
|
-
# 5.fizz?
|
40
|
-
# 15.fizz?
|
14
|
+
# 3.fizz? #=> true
|
15
|
+
# 5.fizz? #=> false
|
16
|
+
# 15.fizz? #=> false
|
41
17
|
#
|
42
18
|
# See also: FizzBuzz::[] and FizzBuzz::is_fizz?
|
43
19
|
#
|
@@ -54,9 +30,9 @@ class Integer
|
|
54
30
|
#
|
55
31
|
# Example:
|
56
32
|
#
|
57
|
-
# 3.buzz?
|
58
|
-
# 5.buzz?
|
59
|
-
# 15.buzz?
|
33
|
+
# 3.buzz? #=> false
|
34
|
+
# 5.buzz? #=> true
|
35
|
+
# 15.buzz? #=> false
|
60
36
|
#
|
61
37
|
# See also: FizzBuzz::[] and FizzBuzz::is_buzz?
|
62
38
|
#
|
@@ -73,9 +49,9 @@ class Integer
|
|
73
49
|
#
|
74
50
|
# Example:
|
75
51
|
#
|
76
|
-
# 3.fizzbuzz?
|
77
|
-
# 5.fizzbuzz?
|
78
|
-
# 15.fizzbuzz?
|
52
|
+
# 3.fizzbuzz? #=> false
|
53
|
+
# 5.fizzbuzz? #=> false
|
54
|
+
# 15.fizzbuzz? #=> true
|
79
55
|
#
|
80
56
|
# See also: FizzBuzz::[] and FizzBuzz::is_fizzbuzz?
|
81
57
|
#
|
@@ -83,8 +59,3 @@ class Integer
|
|
83
59
|
FizzBuzz.is_fizzbuzz?(self)
|
84
60
|
end
|
85
61
|
end
|
86
|
-
|
87
|
-
# :enddoc:
|
88
|
-
|
89
|
-
# vim: set ts=2 sw=2 sts=2 et :
|
90
|
-
# encoding: utf-8
|
data/lib/fizzbuzz/core/range.rb
CHANGED
@@ -1,27 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
# :stopdoc:
|
4
|
-
|
5
|
-
#
|
6
|
-
# core/range.rb
|
7
|
-
#
|
8
|
-
# Copyright 2012-2014 Krzysztof Wilczynski
|
9
|
-
#
|
10
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
# you may not use this file except in compliance with the License.
|
12
|
-
# You may obtain a copy of the License at
|
13
|
-
#
|
14
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
#
|
16
|
-
# Unless required by applicable law or agreed to in writing, software
|
17
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
# See the License for the specific language governing permissions and
|
20
|
-
# limitations under the License.
|
21
|
-
#
|
22
|
-
|
23
|
-
# :startdoc:
|
24
|
-
|
25
1
|
#
|
26
2
|
# Provides a convenient integration of _FizzBuzz_ with _Range_ class.
|
27
3
|
#
|
@@ -41,8 +17,8 @@ class Range
|
|
41
17
|
#
|
42
18
|
# Example:
|
43
19
|
#
|
44
|
-
# (1..15).fizzbuzz
|
45
|
-
# (1..15).fizzbuzz(true)
|
20
|
+
# (1..15).fizzbuzz #=> #<Enumerator: 1..15:fizzbuzz(false)>
|
21
|
+
# (1..15).fizzbuzz(true) #=> #<Enumerator: 1..15:fizzbuzz(true)>
|
46
22
|
#
|
47
23
|
# Example:
|
48
24
|
#
|
@@ -77,8 +53,3 @@ class Range
|
|
77
53
|
end
|
78
54
|
end
|
79
55
|
end
|
80
|
-
|
81
|
-
# :enddoc:
|
82
|
-
|
83
|
-
# vim: set ts=2 sw=2 sts=2 et :
|
84
|
-
# encoding: utf-8
|
data/lib/fizzbuzz/version.rb
CHANGED
@@ -1,35 +1,8 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
# :stopdoc:
|
4
|
-
|
5
|
-
#
|
6
|
-
# version.rb
|
7
|
-
#
|
8
|
-
# Copyright 2012-2014 Krzysztof Wilczynski
|
9
|
-
#
|
10
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
# you may not use this file except in compliance with the License.
|
12
|
-
# You may obtain a copy of the License at
|
13
|
-
#
|
14
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
#
|
16
|
-
# Unless required by applicable law or agreed to in writing, software
|
17
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
# See the License for the specific language governing permissions and
|
20
|
-
# limitations under the License.
|
21
|
-
#
|
22
|
-
|
23
|
-
# :startdoc:
|
1
|
+
# frozen_string_literal: true
|
24
2
|
|
25
3
|
class FizzBuzz
|
26
4
|
#
|
27
5
|
# Current version of _FizzBuzz_.
|
28
6
|
#
|
29
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.8.0'.freeze
|
30
8
|
end
|
31
|
-
|
32
|
-
# :enddoc:
|
33
|
-
|
34
|
-
# vim: set ts=2 sw=2 sts=2 et :
|
35
|
-
# encoding: utf-8
|
metadata
CHANGED
@@ -1,23 +1,50 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-fizzbuzz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Krzysztof
|
7
|
+
- Krzysztof Wilczyński
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIEIDCCAoigAwIBAgIBATANBgkqhkiG9w0BAQsFADAdMRswGQYDVQQDDBJrdy9E
|
14
|
+
Qz1saW51eC9EQz1jb20wHhcNMTkwODAzMTUzOTEzWhcNMjAwODAyMTUzOTEzWjAd
|
15
|
+
MRswGQYDVQQDDBJrdy9EQz1saW51eC9EQz1jb20wggGiMA0GCSqGSIb3DQEBAQUA
|
16
|
+
A4IBjwAwggGKAoIBgQCroSgHc4BNx1gFHRHBbLvyKbsQPoa8uZVUbQ4uXuI9URdR
|
17
|
+
Uho84FcXnFOLjWaTHXX6aG9OI08zWSwV0mcg19PZakjqbdUw8WAGvBnpkwFNz/gG
|
18
|
+
J46+T+BDQ0gLWuoMLYEAOjUcRqcaMUgsspUXpKCbbtBId782yieyKsCWDgBxtUZd
|
19
|
+
5jPgrAEpOW8C1p8K+MlNXjBvib/K5ODk28BqGcKGa0udRJ9yfD/k4MczUcRGgaNg
|
20
|
+
Pno2ncH8Jw/Dcfy4gZgHKsTGCtqOQbsKc5G5u0hDgIGJ6FVvR620TUPGvpFUG1A/
|
21
|
+
otGkdoe6MDLciUbJmYIr6I3ykNF+IWmPmZCHsOKd9a7neVk+TGJQYiKo74XG9cbo
|
22
|
+
Ms8HQomJTNWMM0csu0fWq/jB0T2Lbg9N1gjJ4neR82CwE1galmWCNguD7EVO+axn
|
23
|
+
nFrxCnT9Lc1YvyJMfx1Rr+guC/S2LMY/GgSwxiSwt7eh+AGv5tfgNdHuFyFHNFrz
|
24
|
+
pAdaz5CqFRalQkZ169ECAwEAAaNrMGkwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
25
|
+
HQYDVR0OBBYEFPa4Bg07AC8HR7uy6WCYWXP8wLGwMBcGA1UdEQQQMA6BDGt3QGxp
|
26
|
+
bnV4LmNvbTAXBgNVHRIEEDAOgQxrd0BsaW51eC5jb20wDQYJKoZIhvcNAQELBQAD
|
27
|
+
ggGBAEBJuRhodAsjx52dYS/9tKTCbXOoGH1qYYiGHWVXCt2ZJYXB34bTWjqpT7w9
|
28
|
+
dw/I0HydvKk8kYs3LWDDmg6hDIPJ5Br4+sadBD1r5dBhpY3WNkMHoTziOTiNr+Pw
|
29
|
+
GqF0vWVmZ704XX2S2jzu05EWefDQ+wnMzfevx8hEGIvg2P/d7z3wxce2TvsrpBBY
|
30
|
+
iocpBLUiK0EVHBf1BvgC/V01i9xGNg7KdN2dVfLoLSyvrB5MV3ITxiKgrIU0xi6v
|
31
|
+
J1KaY5b2N5ZnZaN8cTs5Z0skUkUqPQPFxQL5SM9LyK5gVT2qcF8QhChst8RCUXz9
|
32
|
+
3DdMAGkSExtG/qLRnpPwBszjGZqASIi/OJ9QsAESmMExgwqH1bYAoGNQ60V7iiI0
|
33
|
+
Vygrj8cyzqtclWVwszcoLCcEPQW0S4sXmIuvIQ9Uc6UuKM4mHkNTMvSjNSShdAkA
|
34
|
+
7/RnMCIYLU7PievOwRMbF7/22H+PSuMW6/JqGRYk8pph//oNh1EoNFqu7h+bV0Ph
|
35
|
+
Y0aXRQ==
|
36
|
+
-----END CERTIFICATE-----
|
37
|
+
date: 2020-02-04 00:00:00.000000000 Z
|
12
38
|
dependencies: []
|
13
39
|
description: |
|
14
|
-
Yet another FizzBuzz in Ruby
|
40
|
+
Yet another FizzBuzz in Ruby!
|
15
41
|
|
16
42
|
Provides simple and fast solution to a popular FizzBuzz problem for Ruby.
|
17
43
|
|
18
44
|
Written in C as an example of using Ruby's C API - with the support for
|
19
|
-
arbitrary large numeric values via the Bignum class
|
20
|
-
|
45
|
+
arbitrary large numeric values via the Bignum class, or the Integer class
|
46
|
+
starting from Ruby version 2.4 onwards.
|
47
|
+
email: kw@linux.com
|
21
48
|
executables:
|
22
49
|
- fizzbuzz
|
23
50
|
extensions:
|
@@ -25,34 +52,35 @@ extensions:
|
|
25
52
|
extra_rdoc_files: []
|
26
53
|
files:
|
27
54
|
- AUTHORS
|
28
|
-
-
|
29
|
-
- CHANGES.rdoc
|
55
|
+
- CHANGELOG.md
|
30
56
|
- COPYRIGHT
|
31
57
|
- LICENSE
|
32
|
-
- README
|
33
|
-
- README.rdoc
|
34
|
-
- Rakefile
|
35
|
-
- TODO
|
58
|
+
- README.md
|
36
59
|
- VERSION
|
37
|
-
- benchmark/benchmark_fizzbuzz.rb
|
38
60
|
- bin/fizzbuzz
|
39
61
|
- ext/fizzbuzz/common.h
|
40
62
|
- ext/fizzbuzz/extconf.rb
|
41
63
|
- ext/fizzbuzz/fizzbuzz.c
|
42
64
|
- ext/fizzbuzz/fizzbuzz.h
|
65
|
+
- kwilczynski-public.pem
|
43
66
|
- lib/fizzbuzz.rb
|
44
67
|
- lib/fizzbuzz/core/array.rb
|
45
68
|
- lib/fizzbuzz/core/bignum.rb
|
46
69
|
- lib/fizzbuzz/core/integer.rb
|
47
70
|
- lib/fizzbuzz/core/range.rb
|
48
71
|
- lib/fizzbuzz/version.rb
|
49
|
-
|
50
|
-
- test/test_fizzbuzz.rb
|
51
|
-
homepage: http://about.me/kwilczynski
|
72
|
+
homepage: https://github.com/kwilczynski/ruby-fizzbuzz
|
52
73
|
licenses:
|
53
|
-
- Apache
|
54
|
-
metadata:
|
55
|
-
|
74
|
+
- Apache-2.0
|
75
|
+
metadata:
|
76
|
+
bug_tracker_uri: https://github.com/kwilczynski/ruby-fizzbuzz/issues
|
77
|
+
source_code_uri: https://github.com/kwilczynski/ruby-fizzbuzz
|
78
|
+
changelog_uri: https://github.com/kwilczynski/ruby-fizzbuzz/blob/master/CHANGELOG.md
|
79
|
+
documentation_uri: https://www.rubydoc.info/gems/ruby-fizzbuzz
|
80
|
+
wiki_uri: https://github.com/kwilczynski/ruby-fizzbuzz/wiki
|
81
|
+
post_install_message: 'Thank you for installing! Happy FizzBuzz!
|
82
|
+
|
83
|
+
'
|
56
84
|
rdoc_options: []
|
57
85
|
require_paths:
|
58
86
|
- lib
|
@@ -61,16 +89,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
61
89
|
requirements:
|
62
90
|
- - ">="
|
63
91
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
92
|
+
version: 2.4.0
|
65
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
94
|
requirements:
|
67
95
|
- - ">="
|
68
96
|
- !ruby/object:Gem::Version
|
69
97
|
version: '0'
|
70
98
|
requirements: []
|
71
|
-
|
72
|
-
rubygems_version: 2.2.2
|
99
|
+
rubygems_version: 3.0.3
|
73
100
|
signing_key:
|
74
101
|
specification_version: 4
|
75
|
-
summary: Yet another FizzBuzz in Ruby
|
102
|
+
summary: Yet another FizzBuzz in Ruby!
|
76
103
|
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|
data/CHANGES
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
fizzbuzz (0.7.0)
|
2
|
-
|
3
|
-
* Added to_hash, as_json, to_json and from_json (singleton) to the FizzBuzz class.
|
4
|
-
* Add rudimentary Vagrantfile that can be used to build a development environment.
|
5
|
-
* Re-factored fizzbuzz (singleton) from the FizzBuzz class to speed it up.
|
6
|
-
* No longer use of Enumerable#entries in the Array integration, achieving better performance.
|
7
|
-
* Correctly return Enumerator when integrating with the Range class.
|
8
|
-
* Updated Rakefile to no longer run test before benchmark.
|
9
|
-
* Fixed benchmarks concerning Array and Range integration.
|
10
|
-
* Retired testing with Ruby 1.9.2 and 2.1.0, and added 2.1.5 on Travis CI.
|
11
|
-
* Fixed Travis CI build against Rubinius.
|
12
|
-
* Re-factored tests to utilise modern version of the "test-unit" Ruby gem.
|
13
|
-
* Fixed build to make it work with C++ compilers.
|
14
|
-
* Added the Guard Ruby gem for convenience, with an appropriate Guardfile.
|
15
|
-
* Added LLVM (clang) compiler to build with to Travis CI.
|
16
|
-
* Fixed version number to comply with Semantic Versioning 2 (http://semver.org/).
|
17
|
-
* Re-factored and cleaned up small portions of code and documentation.
|
18
|
-
* Removed BitDeli badge.
|
19
|
-
|
20
|
-
-- Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> Mon, 15 Dec 2014 00:27:26 +0000
|
21
|
-
|
22
|
-
fizzbuzz (0.0.6)
|
23
|
-
|
24
|
-
* Fixed issue reported by LLVM (clang).
|
25
|
-
* Updated development dependencies.
|
26
|
-
* Added Ruby 2.1.0 to Travis CI.
|
27
|
-
* Added BitDeli and Gemnasium integration.
|
28
|
-
* Re-factored and cleaned up small portions of code.
|
29
|
-
* Made Rake "test" task to be the default tasks.
|
30
|
-
* Updated the ".gitignore" file to cover Bundler, rbenv, etc.
|
31
|
-
|
32
|
-
-- Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> Sun, 23 Feb 2014 13:52:08 +0000
|
33
|
-
|
34
|
-
fizzbuzz (0.0.5)
|
35
|
-
|
36
|
-
* Added integration with Array and Range types.
|
37
|
-
* Added simple benchmark.
|
38
|
-
|
39
|
-
-- Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> Tue, 26 Nov 2013 12:40:34 +0000
|
40
|
-
|
41
|
-
fizzbuzz (0.0.4)
|
42
|
-
|
43
|
-
* Retired support for Ruby 1.8.x (no support for MRI, Ruby Enterprise Edition and Rubinius).
|
44
|
-
* Added Coveralls and Code Climate integration (and hence improved code test coverage).
|
45
|
-
* Improved error handling and made code more resilient to errors.
|
46
|
-
* Fixed formatting and white spaces.
|
47
|
-
|
48
|
-
-- Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> Mon, 18 Nov 2013 11:22:26 +0000
|
49
|
-
|
50
|
-
fizzbuzz (0.0.3)
|
51
|
-
|
52
|
-
* Added custom exceptions and improved error handling.
|
53
|
-
* Added more variety of Rubies on which tests are being run with Travis CI.
|
54
|
-
* Added project to Rubygems (http://rubygems.org) so it can be installed
|
55
|
-
with just "gem install ruby-fizzbuzz" command.
|
56
|
-
* Renamed project from "fizzbuzz" to "ruby-fizzbuzz" to avoid clashes with
|
57
|
-
other Ruby gems hosted on Rubygems web site.
|
58
|
-
* Made "mkmf" in extconf.rb more user-friendly (it now reports missing
|
59
|
-
build-time dependencies better).
|
60
|
-
* Split Ruby gem specification (or gemspec if you wish) away from Rakefile
|
61
|
-
into its own file (namely ruby-fizzbuzz.gemspec).
|
62
|
-
* Improved documentation and removed bunch of small code smells.
|
63
|
-
|
64
|
-
-- Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> Sat, 31 Aug 2013 17:54:54 +0000
|
65
|
-
|
66
|
-
fizzbuzz (0.0.2)
|
67
|
-
|
68
|
-
* Added is_fizz?, is_buzz? and is_fizzbuzz? singleton methods to FizzBuzz class.
|
69
|
-
* Added fizz?, buzz? and fizzbuzz? methods to the Integer class via a monkey-patch
|
70
|
-
for convenience.
|
71
|
-
* Changed behaviour of the FizzBuzz#[] singleton method, so it will yield a FizzBuzz
|
72
|
-
result for a given arbitrary Integer value.
|
73
|
-
* Re-factored code to make it cleaner, and added more tests and improved coverage.
|
74
|
-
* Re-factored FizzBuzz so it now does not assume that we always want to calculate
|
75
|
-
results from 1 to n -- it is now possible to calculate FizzBuzz results for given
|
76
|
-
n, m values, where n denotes start and m denotes stop value.
|
77
|
-
|
78
|
-
-- Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> Sat, 29 Sep 2012 14:53:35 +0100
|
79
|
-
|
80
|
-
fizzbuzz (0.0.1)
|
81
|
-
|
82
|
-
* First version.
|
83
|
-
|
84
|
-
-- Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> Thu, 27 Sep 2012 12:54:45 +0200
|