New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bstats

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bstats

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

ruby-baseball-stats

A ruby gem that takes a couple CSVs and does a bit of numbers crunching to generate a few statistics.

How To Install

First, the gem depends on a few other libraries:

  • Active Record
  • SQLite3
  • RSpec (only needed if running the tests from source) If you already have those, great, just install the gem and go. If not, there's a Gemfile in the source you can use with Bundler to get all the needed dependencies. Alternately, just install the gems individually, that works too.

Installing The Gem

Just like any other local gem: sudo gem install bstats-1.0.0.gem

Running The Script

It comes pre-loaded with the stats and players needed to determine the stat winners, so after installing you can just run bstats from anywhere and see the results.

Loading New Data

To load in new player and statistical data, run sudo bstats import from a directory containing the 'Master-small.csv' and 'Batting-07-12.csv' files.

TODO List

  • Import needs work: ** Move DB out of /Library/Ruby/Gems into user writable space so that 'sudo' isn't needed to write to it ** Allow more dynamic command line management, like filenames (OptionParser)
  • Data model addresses immediate requirements only, could be broken out for more granular and performant data analysis

FAQs

Package last updated on 19 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc