Skip to content

jadamduff/sb_bracketeer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SbBracketeer

Super Bowl Bracketeer is a gem that displays the entire playoff bracket for any NFL season from 1990-2017.

Additionally, while viewing a particular bracket, the user can enter a team name from the bracket to view
that team's roster with player numbers in numerical order.

Here's an example of a game from a bracket:

02/01/09 Super Bowl XLIII
Pittsburgh Steelers 27
---------------
Arizona Cardinals 23

And when the user types 'Pittsburgh Steelers':

2008 PITTSBURGH STEELERS
2 Dennis Dixon
3 Jeff Reed
4 Byron Leftwich
5 Paul Ernster
7 Ben Roethlisberger
10 Santonio Holmes
14 Limas Sweed
17 Mitch Berger
20 Bryant McFadden
21 Mewelde Moore
22 William Gay
23 Tyrone Carter
24 Ike Taylor
25 Ryan Clark
26 Deshea Townsend
27 Anthony Smith
30 Roy Lewis
31 Fernando Bryant
33 Gary Russell
34 Rashard Mendenhall
37 Anthony Madison
38 Carey Davis
39 Willie Parker
43 Troy Polamalu
44 Najeh Davenport
46 Patrick Bailey
49 Sean McHugh
50 Larry Foote
51 James Farrior
53 Bruce Davis
54 Andre Frazier
56 LaMarr Woodley
57 Keyaron Fox
60 Greg Warren
61 Jared Retkofsky
62 Justin Hartwig
65 Jeremy Parquet
66 Tony Hills
68 Chris Kemoeatu
69 Jason Capizzi
71 Scott Paxson
72 Darnell Stapleton
73 Kendall Simmons
74 Willie Colon
76 Chris Hoke
77 Marvel Smith
78 Max Starks
79 Trai Essex
81 Dallas Baker
83 Heath Miller
85 Nate Washington
86 Hines Ward
89 Matt Spaeth
90 Travis Kirschke
91 Aaron Smith
92 James Harrison
93 Nicholas Eason
94 Lawrence Timmons
95 Donovan Woods
96 Orpheus Roye
98 Casey Hampton
99 Brett Keisel

This gem scrapes data directly from https://www.footballdb.com/ using Nokogiri and OpenURI.

For more information on what went into building this gem, please visit my blog post at http://www.adamduffdev.com/test_blog_post?from=%40

Enjoy!

Installation

Add this line to your application's Gemfile:

gem 'sb_bracketeer'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sb_bracketeer

Usage

To run Super Bowl Bracketeer:

  1. cd into sb_bracketeer
  2. run './bin/sb-bracketeer'

You should immediately see the following menu:

Welcome to Super Bowl Bracketeer!

Please do one of the following:
-- Enter a year to see that year's playoff bracket (1990 - 2017),
-- or enter 'exit'

Upon entering a year from 1990-2017, you will be given the bracket for the specified year and prompted with the following menu:

-- Enter a team name to see their roster, or 'back' to select a different bracket:

From here, entering a team name will list their team roster in numerical order and 'back' will return you to the main menu where 'exit' will exit the program.

Development

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.

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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/'jadamduff'/sb_bracketeer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the SbBracketeer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published