Skip to content

Releases: 0jonjo/calcpace

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

v1.6.0

12 Oct 23:40
34cc4ed

Choose a tag to compare

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

28 Jun 01:48
56c45ef

Choose a tag to compare

What's Changed

Full Changelog: v1.5.4...v1.5.5

v1.5.4

28 Jun 01:35
eca2154

Choose a tag to compare

What's Changed

  • [55] Update Readme and remove unecessary files by @0jonjo in #56
  • [57] Improvements in calculation convertion and how handle errors by @0jonjo in #58

Full Changelog: v1.5.3...v1.5.4

v.1.5.0

28 Jun 01:48
56c45ef

Choose a tag to compare

What's Changed

  • Add options to list methods
  • Add new distance and speed constants
  • Change from RuntimeError to ArgumentError in specific methods
  • Refactoring methods of calculation

by @0jonjo in #46

Full Changelog: v1.4.0...v.1.5.0

v1.5.3

22 Mar 18:20
5d092c2

Choose a tag to compare

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

04 Mar 21:54
9125a14

Choose a tag to compare

What's Changed

  • [50] bug convert to cCock time with wrong response when more than 1 day by @0jonjo in #51

Full Changelog: v.1.5.0...v1.5.2

v1.4.0

15 Sep 23:46
e506e8b

Choose a tag to compare

What's Changed

  • Expand checks of inputs to more methods 🚔
  • Separate velocity from pace calculations 🏃🏼‍♀️
  • Use symbols in converter distance and velocities methods ♟️
  • Improve examples in README ✍🏼

All changes by @0jonjo in #39

Full Changelog: v1.3.0...v1.4.0

v1.3.0

08 Sep 21:08
68bf723

Choose a tag to compare

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