soccer-quiz 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8d7e6e203b16cf0d00b5ba265a69728b56906822d64221ffbb1652ee3065506b
4
+ data.tar.gz: fab904ed71f9a42a4ac738d16db7df4182ff7de14f6c59249ca499f909737ebf
5
+ SHA512:
6
+ metadata.gz: 15203450aa7d90398d90cd94cfe5c349b308ee95171cf42652bd8a984855f270fa86e480b05f1914dc8ed17c45aed8e775ee7d9898417bd20e17a9cb229fed9f
7
+ data.tar.gz: 2dea026dd4c6600d388bdc70bfd8f095d9d73b62aadc32eee1bc10d843b89f2b16de15bd44837a4d133ebca5ba2273f98e242202f52cdfa93d286d8706bc9659
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at yarhumher@hotmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in quiz.gemspec
4
+ gemspec
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ quiz (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ coderay (1.1.2)
10
+ diff-lcs (1.3)
11
+ method_source (1.0.0)
12
+ mini_portile2 (2.4.0)
13
+ nokogiri (1.10.9)
14
+ mini_portile2 (~> 2.4.0)
15
+ pry (0.13.1)
16
+ coderay (~> 1.1)
17
+ method_source (~> 1.0)
18
+ rake (10.5.0)
19
+ rspec (3.9.0)
20
+ rspec-core (~> 3.9.0)
21
+ rspec-expectations (~> 3.9.0)
22
+ rspec-mocks (~> 3.9.0)
23
+ rspec-core (3.9.2)
24
+ rspec-support (~> 3.9.3)
25
+ rspec-expectations (3.9.2)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.9.0)
28
+ rspec-mocks (3.9.1)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.9.0)
31
+ rspec-support (3.9.3)
32
+
33
+ PLATFORMS
34
+ ruby
35
+
36
+ DEPENDENCIES
37
+ bundler
38
+ nokogiri
39
+ pry
40
+ quiz!
41
+ rake (~> 10.0)
42
+ rspec
43
+
44
+ BUNDLED WITH
45
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Yarvin Hernandez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,48 @@
1
+ # Quiz
2
+ Soccer quiz
3
+ This Ruby Gem is for people who love soccer.
4
+ This Gem is based on the most important soccer competitions and players.
5
+ Do you want to know how much you know about soccer?
6
+ Take this quiz of 10 questions.
7
+
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
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
24
+
25
+ ## Usage
26
+
27
+ Type the below and follow the on screen prompts.
28
+
29
+ $ quiz
30
+
31
+ ## Development
32
+
33
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
34
+
35
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
36
+
37
+ ## Contributing
38
+
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/quiz. 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/[USERNAME]/quiz/blob/master/CODE_OF_CONDUCT.md).
40
+
41
+
42
+ ## License
43
+
44
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
45
+
46
+ ## Code of Conduct
47
+
48
+ Everyone interacting in the Quiz project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/quiz/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "quiz"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../lib/quiz'
3
+ Quiz::CLI.new.call
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,13 @@
1
+ require 'pry'
2
+ require 'nokogiri'
3
+ require 'open-uri'
4
+
5
+ require_relative '../lib/quiz'
6
+
7
+ require_relative '../lib/quiz/scraper'
8
+ require_relative '../lib/quiz/balon_d_or'
9
+ require_relative '../lib/quiz/champion_league'
10
+ # require_relative '../lib/quiz/multiple_choice'
11
+ require_relative '../lib/quiz/world_cup'
12
+ require_relative '../lib/quiz/cli'
13
+ require_relative '../lib/quiz/version'
@@ -0,0 +1,7 @@
1
+ # require_relative "./quiz/version"
2
+
3
+ module Quiz
4
+ class Error < StandardError; end
5
+ # Your code goes here...
6
+ end
7
+ require_relative '../config/environment'
@@ -0,0 +1,15 @@
1
+ class Quiz::BALONDOR
2
+ attr_accessor :winner, :year, :host, :runner_up
3
+ @@all = []
4
+ def initialize(file)
5
+ @@all << self
6
+ file.each{|key,value|
7
+ self.send("#{key}=", value)}
8
+ end
9
+ def self.balon_d_or(file)
10
+ file.each{|e|Quiz::BALONDOR.new(e)}
11
+ end
12
+ def self.all
13
+ @@all
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ class Quiz::CHAMPIONLEAGUE
2
+ attr_accessor :year, :winner, :runner_up, :host, :score
3
+ @@all = []
4
+ def initialize(file)
5
+ @@all << self
6
+ file.each{|key,value|
7
+ self.send("#{key}=", value)}
8
+
9
+ end
10
+ def self.champion_league_files(file)
11
+ file.each{|e|Quiz::CHAMPIONLEAGUE.new(e)}
12
+ end
13
+ def self.all
14
+ @@all
15
+ end
16
+ end
@@ -0,0 +1,163 @@
1
+
2
+ class Quiz::CLI
3
+ @@points = []
4
+ def call
5
+ puts "Welcome to football soccer quiz."
6
+ champion_league_url = "https://en.wikipedia.org/wiki/List_of_European_Cup_and_UEFA_Champions_League_finals"
7
+ champion_league_file = Quiz::Scraper.champion_league(champion_league_url,"tbody")
8
+ Quiz::CHAMPIONLEAGUE.champion_league_files(champion_league_file)
9
+ champion_league = Quiz::CHAMPIONLEAGUE.all
10
+
11
+ world_cup_url = "https://www.foxsports.com/soccer/fifa-world-cup/history"
12
+ world_cup = Quiz::Scraper.world_cup(world_cup_url,"tbody")
13
+ Quiz::Worldcup.world_cup_file(world_cup)
14
+ world_cup = Quiz::Worldcup.all
15
+
16
+
17
+ balon_d_or_url = "https://www.goal.com/es/noticias/todos-los-ganadores-del-balon-de-oro/wn19xivn1eh91t0jrslbzz5kq"
18
+ players = Quiz::Scraper.balon_d_or_players(balon_d_or_url,".tableizer-table")
19
+ Quiz::BALONDOR.balon_d_or(players)
20
+ balon_d_or = Quiz::BALONDOR.all
21
+
22
+ start_quiz(balon_d_or,champion_league,world_cup)
23
+ end
24
+
25
+ def start_quiz(balon_d_or,champion_league,world_cup)
26
+ puts "Take this 10 question quiz to find out how much you know about soccer."
27
+ puts "You pass the test if you score 6 or more points."
28
+ puts "To take the quiz press enter, to exit press 1 and enter."
29
+ input = gets
30
+ while input.to_i != 1
31
+ question_processor(balon_d_or,champion_league,world_cup)
32
+ puts "To take the quiz one more time press enter. to exit press 1 and enter."
33
+ input = gets
34
+ end
35
+ end
36
+
37
+ def multiple_choice(answer,winners)
38
+ multiple_choice = []
39
+ multiple_choice << answer
40
+ until multiple_choice.size == 4
41
+ multiple_choice << winners.sample
42
+ multiple_choice = multiple_choice.uniq
43
+ end
44
+ multiple_choice = multiple_choice.shuffle
45
+ multiple_choice.each_with_index{|item,index| puts "#{index + 1}: #{item}"}
46
+ input = ""
47
+ loop do
48
+ input = gets
49
+ if !(1..4).include?(input.to_i)
50
+ puts "Invalid choice, enter a number from 1 to 4"
51
+ else break
52
+ end
53
+ end
54
+ if multiple_choice.index(answer) == input.to_i - 1
55
+ @@points << 1
56
+ puts "Right"
57
+ else
58
+ puts "Wrong. Right answer is #{multiple_choice.index(answer) + 1}: #{answer}."
59
+ end
60
+ puts "Press enter for next question"
61
+ gets
62
+ end
63
+
64
+ def question_selector(objects,question)
65
+ years = objects.map{|item| item.year}
66
+ winners = objects.map{|item|item.winner}
67
+ hosts = objects.map{|item|item.host}
68
+ runner_ups = objects.map{|item|item.runner_up}
69
+ random_year = years.sample
70
+ random_winner = winners.sample
71
+ answer = objects.select{|item|item.year == random_year}
72
+ titles_amount = objects.select{|item|item.winner == random_winner}.size
73
+ winner = answer[0].winner
74
+ host = answer[0].host
75
+ runner_up = answer[0].runner_up
76
+
77
+ if all_question("none",random_year)[question].include?("host")
78
+ puts all_question(host,random_year)[question]
79
+ multiple_choice(host,hosts)
80
+ elsif all_question("none",random_year)[question].include?("runner-up")
81
+ runner_ups = runner_ups.reject{|item| item == winner}
82
+ puts all_question(winner,random_year)[question]
83
+ multiple_choice(runner_up,runner_ups)
84
+ elsif all_question("none",random_year)[question].include?("How many")
85
+ puts all_question(random_winner,'none')[question]
86
+ obtions = []
87
+ counter = 1
88
+ while obtions.size < 13
89
+ obtions << counter
90
+ counter += 1
91
+ end
92
+ multiple_choice(titles_amount,obtions)
93
+ else
94
+ puts all_question(winner,random_year)[question]
95
+ multiple_choice(winner,winners)
96
+ end
97
+ end
98
+
99
+ def all_question(team, year)
100
+ ["Who won the world cup in #{year}?",
101
+ "Who was the host in #{year} world cup",
102
+ "#{team} won the World cup final in #{year}. Who was the runner-up?",
103
+ "How many world cup #{team} has won?",
104
+ "Who won the champion leage in #{year}?",
105
+ "#{team} won the Champion leage final in #{year}. Who was the runner-up?",
106
+ "Who hosted champion league final in #{year}?",
107
+ "Who won the balon d'Or in #{year}?",
108
+ "How many balon de'or #{team} has won?",
109
+ "How many Champion league #{team} has won?"
110
+ ]
111
+ end
112
+
113
+
114
+ def question_processor(balon_d_or,champion_leage,world_cup)
115
+ last_20_champions = []
116
+ counter = 44
117
+ while counter < champion_leage.size
118
+ last_20_champions << champion_leage[counter]
119
+ counter += 1
120
+ end
121
+ # question_counter = 0
122
+ # until question_counter == 9
123
+ # if question_counter < 4
124
+ # question_selector(world_cup,question_counter)
125
+ # elsif question_counter > 4 && question_counter < 7
126
+ # question_selector(last_20_champions,question_counter)
127
+ # elsif question_counter > 6 && question_counter < 9
128
+ # question_selector(balon_d_or,question_counter)
129
+ # else question_selector(champion_leage,question_counter)
130
+ # question_counter += 1
131
+ # end
132
+ question_selector(world_cup,0)
133
+ question_selector(world_cup,1)
134
+ question_selector(world_cup,2)
135
+ question_selector(world_cup,3)
136
+ question_selector(last_20_champions,4)
137
+ question_selector(last_20_champions,5)
138
+ question_selector(last_20_champions,6)
139
+ question_selector(balon_d_or,7)
140
+ question_selector(balon_d_or,8)
141
+ question_selector(champion_leage,9)
142
+ points = 0
143
+ @@points.each{|i|points += i }
144
+ if points > 5
145
+ puts "Congratulation you score #{points} of 10 points."
146
+ else puts "Sorry you failed. you score #{points} of 10 points."
147
+ end
148
+ Quiz::CLI.clear
149
+ end
150
+
151
+ def self.points
152
+ @@points
153
+ end
154
+ def self.clear
155
+ @@points.clear
156
+ end
157
+ end
158
+
159
+
160
+
161
+
162
+
163
+
@@ -0,0 +1,52 @@
1
+ # require 'nokogiri'
2
+ # require 'open-uri'
3
+
4
+ #scraper Class
5
+ class Quiz::Scraper
6
+ def self.scraper(url,clas)
7
+ doc = Nokogiri::HTML(open(url))
8
+ doc.css(clas)
9
+ end
10
+
11
+ def self.balon_d_or_players(url,clas)
12
+ players = self.scraper(url,clas).map{|l|l.text.split(/\t|\*/).reject{|e|e.empty? || e.include?("(FIFA Balón de Oro)")}}
13
+ 2.times{players[0].shift}
14
+ players[0][16] = "Lionel Messi"
15
+ counter = 0
16
+ all_players = []
17
+ while counter < players[0].size
18
+ all_players << {:winner => players[0][counter],:year => players[0][counter + 1]}
19
+ counter += 2
20
+ end
21
+ all_players
22
+ end
23
+
24
+
25
+ def self.world_cup(url,clas)
26
+ world_cup = self.scraper(url,clas).map{|l|l.text.split(/\r\n|\s{2,}/).reject{|e|e.empty?}}
27
+ counter = 0
28
+ all_countries = []
29
+ while counter < world_cup[0].size
30
+ all_countries << {:year => world_cup[0][counter], :host => world_cup[0][counter + 1], :winner => world_cup[0][counter + 2], :runner_up => world_cup[0][counter + 3], :thirth_place => world_cup[0][counter + 4]}
31
+ counter += 9
32
+ end
33
+ all_countries
34
+ end
35
+
36
+ def self.champion_league(url,clas)
37
+ champions = self.scraper(url,clas).map{|l|l.text.split("\n").reject{|e|e.empty?}}
38
+ 2.times{champions.shift}
39
+ 10.times{champions[0].shift}
40
+ 22.times{champions[0].pop}
41
+ champions[0].map{|item|item.strip}
42
+ counter = 0
43
+ all_teams = []
44
+ while counter < champions[0].size
45
+ all_teams << {:year => champions[0][counter], :winner => champions[0][counter + 2], :score => champions[0][counter + 3], :runner_up => champions[0][counter + 5], :host => champions[0][counter + 6]}
46
+ counter += 8
47
+ end
48
+ all_teams
49
+ end
50
+ end
51
+
52
+
@@ -0,0 +1,3 @@
1
+ module Quiz
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,16 @@
1
+ class Quiz::Worldcup
2
+ attr_accessor :winner, :year, :host, :runner_up, :thirth_place
3
+ @@all = []
4
+ def initialize(file)
5
+ @@all << self
6
+ file.each{|key,value|
7
+ self.send("#{key}=", value)}
8
+ end
9
+
10
+ def self.world_cup_file(file)
11
+ file.each{|e|Quiz::Worldcup.new(e)}
12
+ end
13
+ def self.all
14
+ @@all
15
+ end
16
+ end
@@ -0,0 +1,39 @@
1
+ require_relative 'lib/quiz/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "soccer-quiz"
5
+ spec.version = Quiz::VERSION
6
+ spec.authors = ["Yarvin Hernandez"]
7
+ spec.email = ["yarvinhhernandez@gmail.com"]
8
+
9
+ spec.summary = "10 questions quiz about soccer."
10
+ spec.description = "Find out how much you know about soccer."
11
+ spec.homepage = "https://rubygems.org/gems/soccer_quiz"
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
16
+
17
+ # # spec.metadata["homepage_uri"] = spec.homepage
18
+ # # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
19
+ # # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ # spec.files = ["bin/quiz","lib/quiz.rb","lib/quiz/balon_d_or.rb","lib/quiz/cli.rb","lib/quiz/champion_league.rb","lib/quiz/scraper.rb","lib/quiz/version.rb","lib/quiz/world_cup.rb","config/environment.rb"]
27
+ # spec.bindir = "exe"
28
+ spec.require_paths = ["lib"]
29
+ spec.executables << "quiz"
30
+ # spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+
32
+ spec.add_development_dependency "bundler"
33
+ spec.add_development_dependency "rspec"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "nokogiri"
36
+ spec.add_development_dependency "pry"
37
+ end
38
+
39
+
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: soccer-quiz
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Yarvin Hernandez
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-05-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: nokogiri
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Find out how much you know about soccer.
84
+ email:
85
+ - yarvinhhernandez@gmail.com
86
+ executables:
87
+ - quiz
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - CODE_OF_CONDUCT.md
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/quiz
100
+ - bin/setup
101
+ - config/environment.rb
102
+ - lib/quiz.rb
103
+ - lib/quiz/balon_d_or.rb
104
+ - lib/quiz/champion_league.rb
105
+ - lib/quiz/cli.rb
106
+ - lib/quiz/scraper.rb
107
+ - lib/quiz/version.rb
108
+ - lib/quiz/world_cup.rb
109
+ - quiz.gemspec
110
+ homepage: https://rubygems.org/gems/soccer_quiz
111
+ licenses:
112
+ - MIT
113
+ metadata: {}
114
+ post_install_message:
115
+ rdoc_options: []
116
+ require_paths:
117
+ - lib
118
+ required_ruby_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 2.3.0
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ requirements: []
129
+ rubygems_version: 3.0.3
130
+ signing_key:
131
+ specification_version: 4
132
+ summary: 10 questions quiz about soccer.
133
+ test_files: []