Calculate steps per month and total steps from steps file
Demonstration of "monkey-patching" in Crystal
TODO: Write installation instructions here
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
You can run the tests by executing:
foo@bar:~$ crystal spec
TODO: Write development instructions here
- 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
- Evtimiy Mihaylov - creator and maintainer