soccer-quiz 0.1.1 → 0.1.2
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/Gemfile.lock +3 -3
- data/README.md +3 -14
- data/lib/quiz/cli.rb +6 -2
- data/lib/quiz/version.rb +1 -1
- data/quiz.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74d0ec469f9669e52474bf2b8e6e4a7f3116a440a732baa78db21d77d38f0e92
|
4
|
+
data.tar.gz: 649ba214a5f485e512055467b27437542d812056ee473292c150f72feece4a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 156bc33c9328239b3e5479e83c57c308b9f8f26cfa01db8a0c8399408ce237c9be2c0a3435e4cab7115be0b661807d1dbb4491b244eaae869aa11e01c0c28b96
|
7
|
+
data.tar.gz: 6ac4415d09472ea47c1f75156615e3c9028dfed4182d32f7d98e60a37be4d6ee7f43ae83c707fa79ff3ca068354e2887222cb45a041e0b1f798f1db6abc5f444
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
soccer-quiz (0.1.
|
4
|
+
soccer-quiz (0.1.2)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
mini_portile2 (2.4.0)
|
11
11
|
nokogiri (1.10.9)
|
12
12
|
mini_portile2 (~> 2.4.0)
|
13
|
-
rake (
|
13
|
+
rake (13.0.1)
|
14
14
|
rspec (3.9.0)
|
15
15
|
rspec-core (~> 3.9.0)
|
16
16
|
rspec-expectations (~> 3.9.0)
|
@@ -31,7 +31,7 @@ PLATFORMS
|
|
31
31
|
DEPENDENCIES
|
32
32
|
bundler
|
33
33
|
nokogiri
|
34
|
-
rake (
|
34
|
+
rake (>= 12.3.3)
|
35
35
|
rspec
|
36
36
|
soccer-quiz!
|
37
37
|
|
data/README.md
CHANGED
@@ -7,20 +7,9 @@ Take this quiz of 10 questions.
|
|
7
7
|
|
8
8
|
|
9
9
|
## Installation
|
10
|
+
Install it yourself as:
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
gem 'quiz'
|
15
|
-
```
|
16
|
-
|
17
|
-
And then execute:
|
18
|
-
|
19
|
-
$ bundle install
|
20
|
-
|
21
|
-
Or install it yourself as:
|
22
|
-
|
23
|
-
$ gem install quiz
|
12
|
+
$ gem install soccer-quiz
|
24
13
|
|
25
14
|
## Usage
|
26
15
|
|
@@ -36,7 +25,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
36
25
|
|
37
26
|
## Contributing
|
38
27
|
|
39
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
28
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/yarvinh/quiz_app. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/yarvinh/quiz_app/blob/master/CODE_OF_CONDUCT.md).
|
40
29
|
|
41
30
|
|
42
31
|
## License
|
data/lib/quiz/cli.rb
CHANGED
@@ -23,8 +23,11 @@ class Quiz::CLI
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def start_quiz(balon_d_or,champion_league,world_cup)
|
26
|
+
puts "*************************************************************************"
|
26
27
|
puts "Take this 10 question quiz to find out how much you know about soccer."
|
28
|
+
puts "*************************************************************************"
|
27
29
|
puts "You pass the test if you score 6 or more points."
|
30
|
+
puts "*************************************************************************"
|
28
31
|
puts "To take the quiz press enter, to exit press 1 and enter."
|
29
32
|
input = gets
|
30
33
|
while input.to_i != 1
|
@@ -32,6 +35,7 @@ class Quiz::CLI
|
|
32
35
|
puts "To take the quiz one more time press enter. to exit press 1 and enter."
|
33
36
|
input = gets
|
34
37
|
end
|
38
|
+
puts "Thanks for playing Soccer quiz."
|
35
39
|
end
|
36
40
|
|
37
41
|
def multiple_choice(answer,winners)
|
@@ -57,7 +61,7 @@ class Quiz::CLI
|
|
57
61
|
else
|
58
62
|
puts "Wrong. Right answer is #{multiple_choice.index(answer) + 1}: #{answer}."
|
59
63
|
end
|
60
|
-
puts "Press enter
|
64
|
+
puts "Press enter to continue"
|
61
65
|
gets
|
62
66
|
end
|
63
67
|
|
@@ -98,7 +102,7 @@ class Quiz::CLI
|
|
98
102
|
|
99
103
|
def all_question(team, year)
|
100
104
|
["Who won the world cup in #{year}?",
|
101
|
-
"Who was the host in #{year} world cup",
|
105
|
+
"Who was the host in #{year} world cup?",
|
102
106
|
"#{team} won the World cup final in #{year}. Who was the runner-up?",
|
103
107
|
"How many world cup #{team} has won?",
|
104
108
|
"Who won the champion leage in #{year}?",
|
data/lib/quiz/version.rb
CHANGED
data/quiz.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables << "quiz"
|
19
19
|
spec.add_development_dependency "bundler"
|
20
20
|
spec.add_development_dependency "rspec"
|
21
|
-
spec.add_development_dependency "rake",
|
21
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
22
22
|
spec.add_development_dependency "nokogiri"
|
23
23
|
# spec.add_development_dependency "pry"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soccer-quiz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yarvin Hernandez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 12.3.3
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 12.3.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: nokogiri
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|