epl_cli_gem 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/epl +8 -0
- data/bin/setup +8 -0
- data/epl_cli_gem-0.1.0.gem +0 -0
- data/epl_cli_gem.gemspec +41 -0
- data/lib/epl_cli_gem/cli.rb +114 -0
- data/lib/epl_cli_gem/scraper.rb +11 -0
- data/lib/epl_cli_gem/team.rb +113 -0
- data/lib/epl_cli_gem/version.rb +3 -0
- data/lib/epl_cli_gem.rb +15 -0
- data/spec.md +6 -0
- metadata +161 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4494f95095d826b4c32b6011981663832c3d2cd9
|
4
|
+
data.tar.gz: 792d3e1931cf009c2589def8cd6437092d559f99
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0278678b9653847f6367834c3319b5fd62cbfd4dbac4d322936b23d7ed953388ad20e3c5ca3132056d25ceadf9a6a8bdfdc3344827cbe5ef646a84bc3f0d35a7
|
7
|
+
data.tar.gz: 9b0040e3cbe26893501343d970e900d042cd4af4e4cd4f690167625ea4e9a4bff8d696ce464ccf0a5067f3875c2ea8115e0da5c107fce096178c69d4c89ca08f
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 <github email address>. 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 [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 J. Ilustrisimo <J.Ilustrisimo@gmail.com>
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# EplCliGem
|
2
|
+
|
3
|
+
This Ruby Gem provides a CLI to view the current English Premier League table as well as some basic information for each club.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'epl_cli_gem'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install epl_cli_gem
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Type the following and follow the on screen prompts.
|
24
|
+
|
25
|
+
$ ./bin/epl
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
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).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jilustrisimo/epl_cli_gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "epl_cli_gem"
|
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
|
data/bin/epl
ADDED
data/bin/setup
ADDED
Binary file
|
data/epl_cli_gem.gemspec
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'epl_cli_gem/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "epl_cli_gem"
|
8
|
+
spec.version = EplCliGem::VERSION
|
9
|
+
spec.authors = ["J Ilustrisimo"]
|
10
|
+
spec.email = ["j.ilustrisimo@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "English Premier League"
|
13
|
+
spec.description = "Provides current EPL team rankings and info"
|
14
|
+
spec.homepage = "https://github.com/jilustrisimo/epl-cli-gem"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
f.match(%r{^(test|spec|features)/})
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
34
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
spec.add_development_dependency "pry", "~>0.10.4"
|
37
|
+
|
38
|
+
spec.add_dependency "nokogiri", "~>1.7"
|
39
|
+
spec.add_dependency "terminal-table", "~>1.7"
|
40
|
+
spec.add_dependency "colorize", "~>0.8"
|
41
|
+
end
|
@@ -0,0 +1,114 @@
|
|
1
|
+
class EplCliGem::CLI
|
2
|
+
|
3
|
+
def call
|
4
|
+
puts ""
|
5
|
+
puts "Welcome to the English Premier League CLI gem\n\n".colorize(:cyan)
|
6
|
+
puts "If the output looks messy please\nmake sure your CLI is long enough.\n\n".colorize(:light_red).underline
|
7
|
+
EplCliGem::Team.make_teams # Priming set here to give user time to read preceding output.
|
8
|
+
start
|
9
|
+
end
|
10
|
+
|
11
|
+
def start
|
12
|
+
|
13
|
+
eXit = "EXIT".colorize(:red).underline
|
14
|
+
yes = "Yes".colorize(:light_cyan)
|
15
|
+
list_teams
|
16
|
+
puts "You can always exit the program by typing #{eXit}.\n\n"
|
17
|
+
puts "Which team would you like more information on?"
|
18
|
+
puts "Please select by team name or current position."
|
19
|
+
puts "(Not case sensitive)".colorize(:red)
|
20
|
+
input = gets.strip
|
21
|
+
|
22
|
+
ask_for_team(input)
|
23
|
+
|
24
|
+
puts "Type #{yes} to learn more about another team\n otherwise enter any other key to #{eXit}."
|
25
|
+
input = gets.strip
|
26
|
+
|
27
|
+
input.downcase == 'y' || input.downcase == 'yes' ? start : bye
|
28
|
+
end
|
29
|
+
|
30
|
+
def list_teams
|
31
|
+
|
32
|
+
rows = []
|
33
|
+
|
34
|
+
@teams ||= EplCliGem::Team.sorted
|
35
|
+
@teams.each.with_index(1) do |team, i|
|
36
|
+
rows << [i, team.name, team.games_played, team.goal_diff, team.points]
|
37
|
+
end
|
38
|
+
|
39
|
+
table = Terminal::Table.new :title => "Current League Table",
|
40
|
+
:headings => ['POSN', 'Team', 'PL', 'GD', 'Pts'], :rows => rows
|
41
|
+
table.align_column 0, :center
|
42
|
+
|
43
|
+
puts table
|
44
|
+
puts ""
|
45
|
+
end
|
46
|
+
|
47
|
+
def ask_for_team(input)
|
48
|
+
|
49
|
+
if input.downcase == 'exit'
|
50
|
+
bye
|
51
|
+
|
52
|
+
elsif input.to_i == 0
|
53
|
+
team = @teams.find{|team| team.name.downcase == input.downcase}
|
54
|
+
team != nil ? print_team(team) : spell_check
|
55
|
+
|
56
|
+
elsif input.to_i.between?(1, 20)
|
57
|
+
team = @teams.find{|team| team.rank == input}
|
58
|
+
print_team(team)
|
59
|
+
|
60
|
+
else
|
61
|
+
spell_check
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def print_team(team)
|
66
|
+
|
67
|
+
rows = []
|
68
|
+
|
69
|
+
rows << ['Position', team.rank]
|
70
|
+
rows << ['Points', team.points]
|
71
|
+
rows << ['Games Played', team.games_played]
|
72
|
+
rows << ['Won', team.won]
|
73
|
+
rows << ['Drawn', team.drawn]
|
74
|
+
rows << ['Lost', team.lost]
|
75
|
+
rows << ['Goal Difference', team.goal_diff]
|
76
|
+
|
77
|
+
table = Terminal::Table.new :title => "#{team.name}", :rows => rows
|
78
|
+
|
79
|
+
puts ""
|
80
|
+
puts table
|
81
|
+
|
82
|
+
match = []
|
83
|
+
match << [team.team_1, team.match_time, team.team_2]
|
84
|
+
|
85
|
+
next_match = Terminal::Table.new :title => "Next Match\n#{team.match_date}", :rows => match
|
86
|
+
next_match.align_column 0, :center
|
87
|
+
next_match.align_column 1, :center
|
88
|
+
next_match.align_column 2, :center
|
89
|
+
|
90
|
+
puts next_match
|
91
|
+
|
92
|
+
team.club_news
|
93
|
+
end
|
94
|
+
|
95
|
+
def bye
|
96
|
+
for_clu = "For Clu".colorize(:red).on_blue
|
97
|
+
b_and_C = "b and C".colorize(:light_white).on_blue
|
98
|
+
ountry = "ountry".colorize(:red).on_blue
|
99
|
+
puts "#{for_clu}#{b_and_C}#{ountry}"
|
100
|
+
puts ""
|
101
|
+
sleep 1
|
102
|
+
abort
|
103
|
+
end
|
104
|
+
|
105
|
+
def spell_check
|
106
|
+
puts ""
|
107
|
+
puts "Invalid Entry, please check spelling".on_red
|
108
|
+
puts "or select a number between 1 and 20.".on_red
|
109
|
+
puts ""
|
110
|
+
sleep 2
|
111
|
+
start
|
112
|
+
end
|
113
|
+
|
114
|
+
end
|
@@ -0,0 +1,113 @@
|
|
1
|
+
class EplCliGem::Team
|
2
|
+
|
3
|
+
attr_accessor :name, :rank, :url, :website, :games_played, :goal_diff, :points, :won, :drawn, :lost
|
4
|
+
|
5
|
+
@@all = []
|
6
|
+
|
7
|
+
def self.make_teams
|
8
|
+
@@table ||= EplCliGem::Scraper.new.scrape_table
|
9
|
+
@@table.each{|row| self.new_from_table(row)}
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.new_from_table(row)
|
13
|
+
|
14
|
+
self.new(
|
15
|
+
row, #=> self.nodeset: data from scrape, needed for various methods requiring scraped data
|
16
|
+
row.css("span.long").text, #=> self.name
|
17
|
+
row.css("span.value").text, #=> self.rank
|
18
|
+
"https://www.premierleague.com#{row.css("a").attribute("href").text}", #=> self.url
|
19
|
+
row.css("td[4]").text, #=> self.games_played
|
20
|
+
row.css("td[5]").text, #=> self.won
|
21
|
+
row.css("td[6]").text, #=> self.drawn
|
22
|
+
row.css("td[7]").text, #=> self.lost
|
23
|
+
row.css("td[10]").text.strip, #=> self.goal_diff
|
24
|
+
row.css("td.points").text #=> self.points
|
25
|
+
)
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
def initialize(row, name=nil, rank=nil, url=nil, games_played=nil, won=nil, drawn=nil, lost=nil, goal_diff=nil, points=nil)
|
30
|
+
@nodeset = row
|
31
|
+
@name = name
|
32
|
+
@rank = rank
|
33
|
+
@url = url
|
34
|
+
@games_played = games_played
|
35
|
+
@won = won
|
36
|
+
@drawn = drawn
|
37
|
+
@lost = lost
|
38
|
+
@goal_diff = goal_diff
|
39
|
+
@points = points
|
40
|
+
@@all << self unless @@all.include?(self.name)
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.all
|
44
|
+
@@all
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.sorted
|
48
|
+
@@all.sort_by!{|team| team.rank.to_i}
|
49
|
+
end
|
50
|
+
|
51
|
+
def match_date
|
52
|
+
# matches are sometimes pending due to scheduling, if statement in place
|
53
|
+
# to stop NoMethodError from .text when there is no text to return
|
54
|
+
|
55
|
+
if @nodeset.css("td.nextMatchCol span.matchInfo").text != ""
|
56
|
+
@match_date = @nodeset.css("td.nextMatchCol span.matchInfo").text
|
57
|
+
|
58
|
+
else
|
59
|
+
"To Be Determined"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
def team_1
|
64
|
+
# matches are sometimes pending due to scheduling, if statement in place
|
65
|
+
# to stop NoMethodError from .text when there is no text to return
|
66
|
+
|
67
|
+
if @nodeset.css("td.nextMatchCol span.teamName")[0] != nil
|
68
|
+
@team_1 = @nodeset.css("td.nextMatchCol span.teamName")[0].text
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def team_2
|
73
|
+
# matches are sometimes pending due to scheduling, if statement in place
|
74
|
+
# to stop NoMethodError from .text when there is no text to return
|
75
|
+
|
76
|
+
if @nodeset.css("td.nextMatchCol span.teamName")[1] != nil
|
77
|
+
@team_2 = @nodeset.css("td.nextMatchCol span.teamName")[1].text
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def match_time
|
82
|
+
# matches are sometimes pending due to scheduling, if statement in place
|
83
|
+
# to stop NoMethodError from .text when there is no text to return
|
84
|
+
|
85
|
+
if @nodeset.css("td.nextMatchCol time").text != ""
|
86
|
+
@match_time = @nodeset.css("td.nextMatchCol time").text
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def doc
|
91
|
+
@doc ||= Nokogiri::HTML(open(self.url))
|
92
|
+
end
|
93
|
+
|
94
|
+
def website
|
95
|
+
@website ||= doc.xpath("//div[@class='website']/a").text
|
96
|
+
end
|
97
|
+
|
98
|
+
def club_news
|
99
|
+
|
100
|
+
rows = []
|
101
|
+
|
102
|
+
@news ||= doc.css("div.sidebarPush section")[1].css("li")
|
103
|
+
@news.each do |li|
|
104
|
+
rows << [li.css('span.title').text]
|
105
|
+
rows << :separator
|
106
|
+
end
|
107
|
+
|
108
|
+
table = Terminal::Table.new :title => "Latest Club News\nRead more at #{self.website}", :rows => rows
|
109
|
+
table.align_column 0, :center
|
110
|
+
|
111
|
+
puts table
|
112
|
+
end
|
113
|
+
end
|
data/lib/epl_cli_gem.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
## Acting as environment.rb ##
|
2
|
+
require 'open-uri'
|
3
|
+
require 'nokogiri'
|
4
|
+
require 'pry'
|
5
|
+
require 'terminal-table'
|
6
|
+
require 'colorize'
|
7
|
+
|
8
|
+
require_relative "epl_cli_gem/version"
|
9
|
+
require_relative "epl_cli_gem/cli"
|
10
|
+
require_relative "epl_cli_gem/team"
|
11
|
+
require_relative "epl_cli_gem/scraper"
|
12
|
+
|
13
|
+
# module EplCliGem
|
14
|
+
# # Your code goes here...
|
15
|
+
# end
|
data/spec.md
ADDED
metadata
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: epl_cli_gem
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- J Ilustrisimo
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-29 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: '1.13'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.13'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.10.4
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.10.4
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nokogiri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.7'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.7'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: terminal-table
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.7'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.7'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: colorize
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0.8'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0.8'
|
111
|
+
description: Provides current EPL team rankings and info
|
112
|
+
email:
|
113
|
+
- j.ilustrisimo@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- CODE_OF_CONDUCT.md
|
121
|
+
- Gemfile
|
122
|
+
- LICENSE.txt
|
123
|
+
- README.md
|
124
|
+
- Rakefile
|
125
|
+
- bin/console
|
126
|
+
- bin/epl
|
127
|
+
- bin/setup
|
128
|
+
- epl_cli_gem-0.1.0.gem
|
129
|
+
- epl_cli_gem.gemspec
|
130
|
+
- lib/epl_cli_gem.rb
|
131
|
+
- lib/epl_cli_gem/cli.rb
|
132
|
+
- lib/epl_cli_gem/scraper.rb
|
133
|
+
- lib/epl_cli_gem/team.rb
|
134
|
+
- lib/epl_cli_gem/version.rb
|
135
|
+
- spec.md
|
136
|
+
homepage: https://github.com/jilustrisimo/epl-cli-gem
|
137
|
+
licenses:
|
138
|
+
- MIT
|
139
|
+
metadata:
|
140
|
+
allowed_push_host: https://rubygems.org
|
141
|
+
post_install_message:
|
142
|
+
rdoc_options: []
|
143
|
+
require_paths:
|
144
|
+
- lib
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
requirements: []
|
156
|
+
rubyforge_project:
|
157
|
+
rubygems_version: 2.6.8
|
158
|
+
signing_key:
|
159
|
+
specification_version: 4
|
160
|
+
summary: English Premier League
|
161
|
+
test_files: []
|