No commit activity in last 3 years
No release in over 3 years
Generates & benchmarks random lottery numbers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
 Project Readme

Lexxeous's MegaLotto

License

MegaLotto is a Ruby gem built via the free "Build a Ruby Gem" email tutorial course provided by Brandon Hilkert. This repository was created simply as my interpretation of the project. I claim no affiliation or ownership of any code contained within this repository.

Installation

Add this line to your application's Gemfile:

gem "mega_lotto_benchmark", "~> 1.0"

And then execute:

$ bundle

Or install it yourself with:

$ gem install mega_lotto_benchmark

Usage

Main Ruby code is located in the lib/mega_lotto file. Supporting files are located in neighboring files within the lib/ directory. To experiment with this code, run bin/console for an interactive prompt.

This gem also includes benchmarks for 3 different way of generating the array of random MegaLotto numbers. This shows the difference of computational speed for a few different Ruby methods.

Development

After checking out the repo, run bin/setup to install dependencies. Run rake spec, rspec spec, or simply rspec to run the tests.

To install the 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/Lexxeous/mega_lotto. 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 MegaLotto project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.