steps_calculator
Calculate steps per month and total steps from steps file
Demonstration of "monkey-patching" in Crystal
Installation
TODO Write installation instructions here
Usage
The steps file should be located in data/steps.txt
The format of the file should be as follows:
08-mar-2020 - 12887
(day-with-0-padding)-(3-letter month)-(full year) - (steps-count)
Example:
08-mar-2020 - 12887
09-mar-2020 - 4019
10-mar-2020 - 3073
Testing
You can run the tests by executing:
foo@bar:~$ crystal spec
Development
TODO Write development instructions here
Contributing
- Fork it (https://github.com/evvo/steps_calculator/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Evtimiy Mihaylov - creator and maintainer