Releases: 0jonjo/calcpace
Releases · 0jonjo/calcpace
v1.8.0
What's Changed
- Pace conversion module for converting running pace between kilometers and miles
convert_pacemethod with support for both symbol and string format conversionspace_km_to_miconvenience method for kilometers to miles conversionpace_mi_to_kmconvenience method for miles to kilometers conversion- Support for both numeric (seconds) and string (MM:SS) input formats
- Race splits calculator for pacing strategies
race_splitsmethod to calculate cumulative split times for races- Support for even pace, negative splits (progressive), and positive splits (conservative) strategies
- Flexible split distances: standard race distances ('5k', '1mile') or custom distances (numeric km)
- Works with all standard race distances including marathon, half marathon, 10K, 5K, and mile races
- Race time predictor using Riegel formula
predict_timeandpredict_time_clockmethods to predict race times at different distancespredict_paceandpredict_pace_clockmethods to calculate predicted pace for target racesequivalent_performancemethod to compare performances across different race distances- Based on proven Riegel formula: T2 = T1 × (D2/D1)^1.06
- Detailed explanation of the formula and its applications in README
- Additional race distances for international races
1mile- 1.60934 kilometers5mile- 8.04672 kilometers10mile- 16.0934 kilometers
- Comprehensive test suites
- 30+ test cases for pace conversions
- 30+ test cases for race splits covering all strategies and edge cases
- 35+ test cases for race predictions covering various scenarios
- Expanded
RACE_DISTANCESto include popular US/UK race distances - Updated README with pace conversion, race splits, and race prediction examples
- Improved documentation with practical examples, use cases, and formula explanations
- Comprehensive code review: documentation, testing, error handling, and new features by @Copilot in #62
- Release/v1.8.0 by @0jonjo in #63
Full Changelog: v1.7.0...v1.8.0
v1.7.0
Full Changelog: v1.6.0...v1.7.0
New Features
Race Pace Calculator
Calculate finish times and required paces for standard distances (5K, 10K, half-marathon, marathon)
Error Handling
- Added
UnsupportedUnitErrorfor invalid unit conversions - Enhanced error messages with contextual information
- Improved
Converter#constantwith nested rescue for better diagnostics - Added type validation in
check_timemethod
v1.6.0
What's Changed
- Potential fix for code scanning alert no. 2: Workflow does not contain permissions by @0jonjo in #60
- Improvements in errors information
- Improvements in the list of convert options.
- Converter now accepts friendly string
- Release 1.6.0 by @0jonjo in #61
Full Changelog: v.1.5.0...v1.6.0
v1.5.5
v1.5.4
v.1.5.0
v1.5.3
What's Changed
- Bump json from 2.10.1 to 2.10.2 in the bundler group across 1 directory by @dependabot in #52
- [54] Add matrix of Ruby [from 2.7 to 3.4] in Test Workflow by @0jonjo in #54
Full Changelog: v1.5.2...v1.5.3
v1.5.2
v1.4.0
v1.3.0
What's Changed
- Bump rexml from 3.3.3 to 3.3.6 in the bundler group across 1 directory by @dependabot in #34
- Create a global convert method to distances and velocities by @0jonjo in #37
- Refactor Convert module to englobe 26 options of distance a by @0jonjo in #37
- Refactor Calculate module to support calculus with and without checks and results in HH:MM:SS by @0jonjo in #37
Full Changelog: v1.2.0...v1.3.0