fizzbuzz_aj 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -16
- data/examples/example_usage.rb +3 -0
- data/lib/fizzbuzz_aj/formats.rb +1 -1
- data/lib/fizzbuzz_aj/version.rb +1 -1
- data/lib/fizzbuzz_aj.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f36ca3d9ff822b86466edab4f910c49e62b893b
|
4
|
+
data.tar.gz: 09719334fbe448e126d235430c68309f9bb5177e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b26b3f898e99705f43fd221645ae6fc28e9015966834a92f124f5f21b05a85bb1f0767ea5ed35f5224b9a27bffbd2e450c3606f9aea25888a2401a9191170f2d
|
7
|
+
data.tar.gz: 1a914235eeddd22eb0a57655254443f14c0b2fb2175897ff25165ac3a25f830e3651a58ddffaae1fb5ea5411fe1d984e0c3cad3198815d23b20f58cbdf9bd5c3
|
data/README.md
CHANGED
@@ -1,24 +1,19 @@
|
|
1
1
|
# Fizzbuzz_aj
|
2
2
|
|
3
|
-
A gem that contains the logic for a FizzBuzz program
|
3
|
+
A gem that contains the logic for a FizzBuzz program.
|
4
4
|
|
5
|
-
|
5
|
+
Give it a maximum value and from 1 to max it will return:
|
6
6
|
|
7
|
-
|
7
|
+
* `Fizz` if the number is divisible by 3
|
8
|
+
* `Buzz` if it is divisible by 5
|
9
|
+
* `FizzBuzz` if it is divisible by 15
|
10
|
+
* or the number if none of those are true
|
8
11
|
|
9
|
-
|
12
|
+
It also can return the result in 3 different formats:
|
10
13
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
json
|
16
|
-
|
17
|
-
html
|
18
|
-
|
19
|
-
plain text
|
20
|
-
|
21
|
-
For example useage see: examples/example_usage.rb
|
14
|
+
* json
|
15
|
+
* html
|
16
|
+
* plain text
|
22
17
|
|
23
18
|
## Installation
|
24
19
|
|
@@ -36,7 +31,7 @@ Or install it yourself as:
|
|
36
31
|
|
37
32
|
## Usage
|
38
33
|
|
39
|
-
|
34
|
+
For example usage look [here](https://github.com/jarvisan/fizzbuzz_aj/blob/master/examples/example_usage.rb)
|
40
35
|
|
41
36
|
## Contributing
|
42
37
|
|
data/examples/example_usage.rb
CHANGED
data/lib/fizzbuzz_aj/formats.rb
CHANGED
data/lib/fizzbuzz_aj/version.rb
CHANGED
data/lib/fizzbuzz_aj.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require_relative './fizzbuzz_aj/fizzbuzz.rb'
|
2
|
+
require_relative './fizzbuzz_aj/formats.rb'
|