HelloWorldFizzBuzz 0.2.0 → 0.3.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 +4 -4
- data/README.md +2 -2
- data/lib/HelloWorldFizzBuzz/sqlite.rb +21 -1
- data/lib/HelloWorldFizzBuzz/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68025a269e0a4da68ee79621fcb2dff5b41ac9fe
|
4
|
+
data.tar.gz: 2cc85c907258b8668d4853577aea931b47d1b045
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3cd024788abfd87d59c7e03c571d0f58ed4dbba035f137fe9978c050f1baaea4a6f011187b86c1ff1d7c1db5fe0d6b63115e247a04e65bb490b599a67e32628
|
7
|
+
data.tar.gz: b1420c8e775f45ef434ad797548164e1ffc062d40472d6dd6b4586908fe98fa096ab4b6deaa1adc4e938b90d9bcf4b925e4dbe1c141fc3715faa3d0e2ae92c72
|
data/README.md
CHANGED
@@ -55,7 +55,7 @@ This project is intended to be a safe, welcoming space for collaboration, and co
|
|
55
55
|
4. Push to the branch (git push origin my-new-feature)
|
56
56
|
5. Create new Pull Request
|
57
57
|
|
58
|
-
The
|
58
|
+
The easiest way to contribute to this project is to add programing language examples of
|
59
59
|
hello world & fizzbuzz in the `/HelloWorldFizzBuzz/lib/sqlite.rb` file
|
60
60
|
|
61
61
|
example:
|
@@ -80,6 +80,6 @@ example:
|
|
80
80
|
fizzbuzz(100)")
|
81
81
|
## License
|
82
82
|
|
83
|
-
The gem is available as open source under the terms of the [GPL-3.0](https://opensource.org/licenses/GPL-3.0).
|
83
|
+
The gem is available as open source under the terms of the [GPL-3.0](https://opensource.org/licenses/GPL-3.0) or later.
|
84
84
|
|
85
85
|
|
@@ -24,7 +24,27 @@ end
|
|
24
24
|
## Add hello-world && fizz-buzz examples Below (In Alphabetic Order)
|
25
25
|
|
26
26
|
### A
|
27
|
-
|
27
|
+
@posts.insert(language: 'ada',
|
28
|
+
helloworld: "with Text_IO;
|
29
|
+
procedure Hello_World is
|
30
|
+
begin
|
31
|
+
Text_IO.Put_line('Hello World!');
|
32
|
+
end Hello_World;
|
33
|
+
",
|
34
|
+
fizzbuzz: "procedure FizzBuzz( X : Natural ) is
|
35
|
+
function FB( I : Integer ) return String is
|
36
|
+
(if I mod 15 = 0 then 'FizzBuzz'
|
37
|
+
elsif I mod 5 = 0 then 'Buzz''
|
38
|
+
elsif I mod 3 = 0 then 'Fizz'
|
39
|
+
else ""
|
40
|
+
);
|
41
|
+
begin
|
42
|
+
for I in 1..X loop
|
43
|
+
Ada.Integer_Text_IO.Put ( I );
|
44
|
+
Ada.Text_IO.Put ( ' ' & FB(I) );
|
45
|
+
Ada.Text_IO.New_Line;
|
46
|
+
end loop;
|
47
|
+
end FizzBuzz;")
|
28
48
|
### B
|
29
49
|
|
30
50
|
### C
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: HelloWorldFizzBuzz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Viera
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|