HelloWorldFizzBuzz 0.3.0 → 0.4.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/HelloWorldFizzBuzz.gemspec +1 -0
- data/README.md +23 -0
- data/lib/HelloWorldFizzBuzz/sqlite.rb +15 -1
- data/lib/HelloWorldFizzBuzz/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a42ad8766b184ead022746757eb97b26d057680f
|
4
|
+
data.tar.gz: 40fab83b1dfb3254b2b0a6acbabcbbeda163fefd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93c93c56461c2806c5aeb7754914033153ef8ddffb5e019dfe42ad0210ab188835fcf4e1a8b1ca4a7b91cd85a34f2b71c1f39d92e6ee23f4921e8e29b1b2188d
|
7
|
+
data.tar.gz: 88e749d7f862d7203a5eef2cdb68d162fc49daf28c21323cbfa728b56f0e73ae7103b692f4d5243f6d74a8afad5d3f0bf5fd98deafe11e147a131767af7f0776
|
data/HelloWorldFizzBuzz.gemspec
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,29 @@
|
|
2
2
|
|
3
3
|
Is a commandline app to show examples of hello world & fizzbuzz in different programming languages.
|
4
4
|
|
5
|
+
## Prerequisite
|
6
|
+
|
7
|
+
You must have [sqlite3](https://sqlite.org/download.html) installed on your machine
|
8
|
+
|
9
|
+
On Windows you must install sqlite3 dll file(s) here: [sqlite3 for Windows](https://sqlite.org/download.html)
|
10
|
+
|
11
|
+
Else if you are using MacOS you can use [homebrew](http://brew.sh/) and install it with this command:
|
12
|
+
|
13
|
+
brew install sqlite3
|
14
|
+
|
15
|
+
Lastly if you using Linux (rpm based) you can install it with either of these commands:
|
16
|
+
|
17
|
+
dnf install sqlite-devel
|
18
|
+
|
19
|
+
Or
|
20
|
+
|
21
|
+
yum install sqlite-devel
|
22
|
+
|
23
|
+
And if using Linux (deb based) you can install it with this command:
|
24
|
+
|
25
|
+
apt-get install libsqlite3-dev
|
26
|
+
|
27
|
+
|
5
28
|
## Installation
|
6
29
|
|
7
30
|
Add this line to your application's Gemfile:
|
@@ -46,7 +46,21 @@ begin
|
|
46
46
|
end loop;
|
47
47
|
end FizzBuzz;")
|
48
48
|
### B
|
49
|
-
|
49
|
+
@posts.insert(language: 'basic',
|
50
|
+
helloworld: "
|
51
|
+
10 PRINT 'Hello World!'
|
52
|
+
20 GOTO 10
|
53
|
+
",
|
54
|
+
fizzbuzz: "
|
55
|
+
10 DEF FN M(N) = ((A / N) - INT (A / N)) * N
|
56
|
+
20 FOR A = 1 TO 100
|
57
|
+
30 LET O$ = ""
|
58
|
+
40 IF FN M(3) = 0 THEN O$ = 'FIZZ'
|
59
|
+
50 IF FN M(5) = 0 THEN O$ = O$ + 'BUZZ'
|
60
|
+
60 IF O$ = "" THEN O$ = STR$ (A)
|
61
|
+
70 PRINT O$
|
62
|
+
80 NEXT A
|
63
|
+
"
|
50
64
|
### C
|
51
65
|
|
52
66
|
### D
|
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.4.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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 4.37.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sqlite3
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.3.12
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.3.12
|
69
83
|
description: 'A commandline app to show examples of hello world & fizzbuzz in different
|
70
84
|
programming languages '
|
71
85
|
email:
|