runby_pace 0.6.143 → 0.6.144
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/runby_pace/distance.rb +2 -0
- data/lib/runby_pace/distance_unit.rb +2 -0
- data/lib/runby_pace/golden_pace_set.rb +2 -0
- data/lib/runby_pace/pace.rb +3 -2
- data/lib/runby_pace/pace_calculator.rb +2 -0
- data/lib/runby_pace/pace_range.rb +2 -0
- data/lib/runby_pace/run_math.rb +2 -0
- data/lib/runby_pace/run_type.rb +2 -0
- data/lib/runby_pace/run_types/distance_run.rb +2 -0
- data/lib/runby_pace/run_types/easy_run.rb +2 -0
- data/lib/runby_pace/run_types/fast_tempo_run.rb +1 -0
- data/lib/runby_pace/run_types/find_divisor.rb +2 -0
- data/lib/runby_pace/run_types/five_kilometer_race_run.rb +2 -0
- data/lib/runby_pace/run_types/long_run.rb +2 -0
- data/lib/runby_pace/run_types/mile_race_run.rb +2 -0
- data/lib/runby_pace/run_types/slow_tempo_run.rb +1 -0
- data/lib/runby_pace/run_types/tempo_run.rb +2 -0
- data/lib/runby_pace/run_types/ten_kilometer_race_run.rb +2 -0
- data/lib/runby_pace/runby_range.rb +2 -0
- data/lib/runby_pace/speed.rb +2 -0
- data/lib/runby_pace/speed_range.rb +2 -0
- data/lib/runby_pace/version.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 767000338caf41c355d8497b590aab91231926d6
|
4
|
+
data.tar.gz: cc089276287066a5f7d904803cf52d750a0186e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f3d70402afcb4ea58fc47d7a80a45734d7d7a44290d9f322d095585819367b04873508814fc332e3f9ffdb110decf8a82b6d0ede99c21c8214b34bcb584771e
|
7
|
+
data.tar.gz: fb9637e2d75041cb9a5a2f49dedffa0e2be9d6516fe9984e9a398bee09f21dac21f9379118dfc49ff87bee2ae433a7f821d8d4e1d0c9e2ac05154b89f29f11ac
|
data/lib/runby_pace/distance.rb
CHANGED
data/lib/runby_pace/pace.rb
CHANGED
@@ -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
|
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}"
|
data/lib/runby_pace/run_math.rb
CHANGED
data/lib/runby_pace/run_type.rb
CHANGED
data/lib/runby_pace/speed.rb
CHANGED
data/lib/runby_pace/version.rb
CHANGED
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.
|
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:
|
108
|
+
commit-hash: 56131cf0111dc1979e1a17d42f769c41e5465726
|
109
109
|
post_install_message:
|
110
110
|
rdoc_options: []
|
111
111
|
require_paths:
|