generatescore 0.0.1
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 +7 -0
- data/lib/generatescore.rb +21 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b7533008e9d14de726f644cff22110c7b283290d
|
4
|
+
data.tar.gz: 3865ac1617664ba7c01e34649554a46bc0a2c513
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1cbd5d35207412bc03f1b762fd807ed37d77fcd696a70a280299dcdc76b321695414c202c0fde173ad806a9953ccc198d25b6ef89b56e27b435b0336105d5754
|
7
|
+
data.tar.gz: c1ce255c8c7b8f53dce467098769ecbbe80bb0ab28aaa67b3cc226219fcca1a509a84cee18910743b1aea6778287b59e5129d4d713995e6ce8b5966b6cc15868
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class Checkresult
|
2
|
+
def self.getresult(ans1, ans2, ans3, ans4, ans5)
|
3
|
+
score = 0
|
4
|
+
if ans1 == 1
|
5
|
+
score = score+20
|
6
|
+
end
|
7
|
+
if ans2 == 1
|
8
|
+
score = score+20
|
9
|
+
end
|
10
|
+
if ans3 == 1
|
11
|
+
score = score+20
|
12
|
+
end
|
13
|
+
if ans4 == 1
|
14
|
+
score = score+20
|
15
|
+
end
|
16
|
+
if ans5 == 1
|
17
|
+
score = score+20
|
18
|
+
end
|
19
|
+
return score
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: generatescore
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jerome Biziyaremye
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-04-28 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: scoring random math questions generator quiz
|
14
|
+
email: jeromeb1112@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/generatescore.rb
|
20
|
+
homepage: http://rubygems.org/gems/generatescore
|
21
|
+
licenses: []
|
22
|
+
metadata: {}
|
23
|
+
post_install_message:
|
24
|
+
rdoc_options: []
|
25
|
+
require_paths:
|
26
|
+
- lib
|
27
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: '0'
|
32
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
requirements: []
|
38
|
+
rubyforge_project:
|
39
|
+
rubygems_version: 2.4.5
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Getting results from Random math questions for ordinary and higher levels!
|
43
|
+
test_files: []
|