runby_pace 0.6.143 → 0.6.144

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a168825022bc1fb0538091f2cd05b587d81f7994
4
- data.tar.gz: dce210b22b9cdd6d75599b666cf9e08e6da0dd8c
3
+ metadata.gz: 767000338caf41c355d8497b590aab91231926d6
4
+ data.tar.gz: cc089276287066a5f7d904803cf52d750a0186e8
5
5
  SHA512:
6
- metadata.gz: 5bda98da133fa292cfb85e93f9e0998aa695634c6f404678f7cec9ab95c4118bbae636ca321ec7ab1aea318c9e3ba7636cda73a411ea938b0a6ce975d39256b0
7
- data.tar.gz: d8019e291d0cc0a7670b76f8fef64937cc6aa9c3b830feb3c4f8b7b9cec0955fe26bea37012392e96b60f89b9ca8af2aa089a11ef7a638823db62301f1504c32
6
+ metadata.gz: 4f3d70402afcb4ea58fc47d7a80a45734d7d7a44290d9f322d095585819367b04873508814fc332e3f9ffdb110decf8a82b6d0ede99c21c8214b34bcb584771e
7
+ data.tar.gz: fb9637e2d75041cb9a5a2f49dedffa0e2be9d6516fe9984e9a398bee09f21dac21f9379118dfc49ff87bee2ae433a7f821d8d4e1d0c9e2ac05154b89f29f11ac
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  # Represents a distance (distance UOM and multiplier)
3
5
  class Distance
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  # Represents the distance units (e.g. kilometers, miles) used in paces
3
5
  # including the human-readable description of each unit
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
 
3
5
  # Maps a set of 5K race times with their pre-calculated pace recommendations.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  # Represents a pace consisting of a distance and a time in which that distance was covered
3
5
  class Pace
@@ -26,9 +28,8 @@ module Runby
26
28
  end
27
29
 
28
30
  def to_s(format: :short)
29
- distance_s = @distance.to_s(format: format)
30
31
  leading_one_regex = /^1 ?/
31
- distance_s.gsub!(leading_one_regex, '')
32
+ distance_s = @distance.to_s(format: format).gsub(leading_one_regex, '')
32
33
  case format
33
34
  when :short then "#{time} p/#{distance_s}"
34
35
  when :long then "#{time} per #{distance_s}"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  # Encapsulates the algorithms used to calculate target paces.
3
5
  class PaceCalculator
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'runby_range'
2
4
 
3
5
  module Runby
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  # An assortment of mathematical functions related to running.
3
5
  class RunMath
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  # Base class for all run types
3
5
  class RunType
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  module RunTypes
3
5
  # Defines the venerable "distance run", the backbone of any distance running program.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  module RunTypes
3
5
  # An easy run is basically a jog. It should be conversational.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'tempo_run'
2
3
 
3
4
  module Runby
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  # Extend RunTypes with additional behavior. (See comments for details)
3
5
  module RunTypes
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  module RunTypes
3
5
  # Your 5K race pace, which is also useful for running repetitions at this pace
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  module RunTypes
3
5
  # Arguably one of the most important run types, the "long run" is harder than an "easy run", but easier than
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  module RunTypes
3
5
  # Your mile race pace, which is also useful for running repetitions at this pace
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require_relative 'tempo_run'
2
3
 
3
4
  module Runby
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  module RunTypes
3
5
  # Combines the fast and slow tempo runs into one convenient range of paces
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  module RunTypes
3
5
  # Your 10K race pace, which is also useful for running repetitions at this pace
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  # Base class for ranges of Runby data, e.g. PaceRange, SpeedRange, ...
3
5
  class RunbyRange
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  # Represents a speed consisting of a distance and a unit of time in which that distance was covered
3
5
  class Speed
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'runby_range'
2
4
 
3
5
  module Runby
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Runby
2
4
  VERSION = "0.6.#{`git rev-list --count HEAD`}".freeze
3
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runby_pace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.143
4
+ version: 0.6.144
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ty Walls
@@ -105,7 +105,7 @@ homepage: https://github.com/tygerbytes/runby-pace
105
105
  licenses:
106
106
  - MIT
107
107
  metadata:
108
- commit-hash: 83c260f4c540d7ab5b42c37fa1606905c151d6b9
108
+ commit-hash: 56131cf0111dc1979e1a17d42f769c41e5465726
109
109
  post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths: