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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68025a269e0a4da68ee79621fcb2dff5b41ac9fe
4
- data.tar.gz: 2cc85c907258b8668d4853577aea931b47d1b045
3
+ metadata.gz: a42ad8766b184ead022746757eb97b26d057680f
4
+ data.tar.gz: 40fab83b1dfb3254b2b0a6acbabcbbeda163fefd
5
5
  SHA512:
6
- metadata.gz: f3cd024788abfd87d59c7e03c571d0f58ed4dbba035f137fe9978c050f1baaea4a6f011187b86c1ff1d7c1db5fe0d6b63115e247a04e65bb490b599a67e32628
7
- data.tar.gz: b1420c8e775f45ef434ad797548164e1ffc062d40472d6dd6b4586908fe98fa096ab4b6deaa1adc4e938b90d9bcf4b925e4dbe1c141fc3715faa3d0e2ae92c72
6
+ metadata.gz: 93c93c56461c2806c5aeb7754914033153ef8ddffb5e019dfe42ad0210ab188835fcf4e1a8b1ca4a7b91cd85a34f2b71c1f39d92e6ee23f4921e8e29b1b2188d
7
+ data.tar.gz: 88e749d7f862d7203a5eef2cdb68d162fc49daf28c21323cbfa728b56f0e73ae7103b692f4d5243f6d74a8afad5d3f0bf5fd98deafe11e147a131767af7f0776
@@ -23,4 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency "minitest", "~> 5.0"
25
25
  spec.add_runtime_dependency "sequel", "~> 4.37.0"
26
+ spec.add_runtime_dependency "sqlite3", "~> 1.3.12"
26
27
  end
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
@@ -1,5 +1,5 @@
1
1
  #! /bin/usr/env ruby
2
2
 
3
3
  module HelloWorldFizzBuzz
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
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.3.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-07 00:00:00.000000000 Z
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: