No commit activity in last 3 years
No release in over 3 years
Generates baseball player statistics
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 4.1.6
~> 0.7.3
~> 1.3.9
~> 1.1.5
 Project Readme

BaseballStats

Baseball player statistical analysis

Installation

Add this line to your application's Gemfile:

gem 'codenamev-baseball-stats'

And then execute:

$ bundle

Or install it yourself as:

$ gem install codenamev-baseball-stats

Usage

After installing the gem, running baseball_stats from the command-line will display the results to the following excersize:

  1. Most improved batting average from 2009 to 2010
  2. Slugging percentage for all players on the Oakland A's in 2007
  3. Who was the AL and NL tripple crown winner for 2011 and 2012. If no one won the crown should be "(No winner)"

Running tests

  1. bundle exec rake db:migrate db:test:prepare
  2. rake

NOTES

The first run of the command imports two fairly large CSV files with sample data into an SQLite3 database. This may take up to 5 minutes depending on your machine.