Skip to content

Releases: 0jonjo/calcpace

Release version v1.9.5

02 May 16:34
ff55183

Choose a tag to compare

What's Changed

  • Bump erb from 6.0.2 to 6.0.4 in the bundler group across 1 directory by @dependabot[bot] in #73
  • Feat/wma age grading v1.9.5 by @0jonjo in #74

Full Changelog: v1.9.4...v1.9.5

Release version v1.9.4

18 Apr 22:53
8732b67

Choose a tag to compare

What's Changed

  • Bump addressable from 2.8.9 to 2.9.0 in the bundler group across 1 directory by @dependabot[bot] in #71
  • feat: Add support for 100K race distance (v1.9.4) by @0jonjo in #72

Full Changelog: v1.9.3...v1.9.4

Release version v1.9.3

04 Apr 22:46
513d583

Choose a tag to compare

What's Changed

  • feat: Vo2maxEstimator module v1.9.3 + README overhaul by @0jonjo in #70

Full Changelog: v1.9.2...v1.9.3

Release version v1.9.2

04 Apr 16:09

Choose a tag to compare

Release version v1.9.1

31 Mar 00:14
20a2f88

Choose a tag to compare

What's Changed

  • Bump mcp from 0.8.0 to 0.9.2 in the bundler group across 1 directory by @dependabot[bot] in #68
  • chore: bump version to 1.9.1 by @0jonjo in #69

Full Changelog: v1.9.0...v1.9.1

Release version v1.9.0

24 Mar 22:21
39f2cca

Choose a tag to compare

What's Changed

  • Bump json from 2.19.0 to 2.19.2 in the bundler group across 1 directory by @dependabot[bot] in #66
  • feat: add CameronPredictor module (v1.9.0) by @0jonjo in #67

Full Changelog: v1.8.2...v1.9.0

Release version v1.8.2

08 Mar 00:20
cc1290c

Choose a tag to compare

What's Changed

  • chore: update version to 1.8.2, enhance changelog, and update README … by @0jonjo in #65

Full Changelog: v1.8.1...v1.8.2

v1.8.1

07 Mar 01:16
5a85e58

Choose a tag to compare

What's Changed

Added

  • SimpleCov integration for code coverage measurement
  • RuboCop lint job to CI pipeline
  • YARD documentation for all previously undocumented public methods in Calculator (checked_velocity, clock_velocity, checked_pace, clock_pace, time, checked_time, clock_time, distance, checked_distance)

Changed

  • Minimum required Ruby version bumped from 2.7 to 3.2
  • CI matrix updated: removed EOL Ruby versions (2.7, 3.0, 3.1), added Ruby 4.0
  • CI lint job uses .ruby-version file instead of a hardcoded version
  • Bundler updated to 4.0.6
  • Rakefile.rb renamed to Rakefile (standard convention)
  • PaceConverter constants MI_TO_KM and KM_TO_MI consolidated into Converter::Distance
  • Negative and positive split calculations refactored to share common logic
  • Test files refactored to inherit from shared CalcpaceTest base class

Full Changelog: v1.8.0...v1.8.1

v1.8.0

14 Feb 15:55

Choose a tag to compare

What's Changed

  • Pace conversion module for converting running pace between kilometers and miles
    • convert_pace method with support for both symbol and string format conversions
    • pace_km_to_mi convenience method for kilometers to miles conversion
    • pace_mi_to_km convenience method for miles to kilometers conversion
    • Support for both numeric (seconds) and string (MM:SS) input formats
  • Race splits calculator for pacing strategies
    • race_splits method 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_time and predict_time_clock methods to predict race times at different distances
    • predict_pace and predict_pace_clock methods to calculate predicted pace for target races
    • equivalent_performance method 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 kilometers
    • 5mile - 8.04672 kilometers
    • 10mile - 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_DISTANCES to 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
image

Full Changelog: v1.7.0...v1.8.0

v1.7.0

08 Nov 13:11

Choose a tag to compare

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 UnsupportedUnitError for invalid unit conversions
  • Enhanced error messages with contextual information
  • Improved Converter#constant with nested rescue for better diagnostics
  • Added type validation in check_time method