runby_pace 0.6.126 → 0.6.127
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df63f883ecb8a38ef85b52d05c38a626d7688efa
|
4
|
+
data.tar.gz: 301071d577b0236277be0da3d721a833c4bea8ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bed4f4dfa86589b532fecd9b53f0306a31661b4bd99bc8f84dd958dbe923ecfaf9ffd4a7116a5288d51b5ee8067cd48a61a938fd0fe4535f6f3253ff8ec8cd42
|
7
|
+
data.tar.gz: 1b5f08add77703203be0ee177bd1bbc5730c5cde5e00d2493c879e86b5e9821e889949c293aaf8611a44caca0fa4577fff6bcc6ae9efe27a55e21c7ca925f60f
|
@@ -4,7 +4,7 @@ module Runby
|
|
4
4
|
# Encapsulates data and behavior relating to all run types.
|
5
5
|
module RunTypes
|
6
6
|
def self.all
|
7
|
-
%w(DistanceRun EasyRun FastTempoRun LongRun SlowTempoRun TempoRun)
|
7
|
+
%w(DistanceRun EasyRun FastTempoRun FiveKilometerRaceRun LongRun SlowTempoRun TempoRun TenKilometerRaceRun)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Runby
|
2
|
+
module RunTypes
|
3
|
+
# Your 5K race pace, which is also useful for running repetitions at this pace
|
4
|
+
class FiveKilometerRaceRun < RunType
|
5
|
+
def description
|
6
|
+
'5K Race Pace'
|
7
|
+
end
|
8
|
+
|
9
|
+
def explanation
|
10
|
+
'The 5K race (~3.1 miles) is an excellent gauge of overall fitness. Running repetitions of varying duration at 5K race pace can boost stroke volume, blood volume, mitochondrial and capillary density, etc.'
|
11
|
+
end
|
12
|
+
|
13
|
+
def lookup_pace(five_k_time, distance_units = :km)
|
14
|
+
five_k_time = RunbyTime.new(five_k_time)
|
15
|
+
pace = Pace.new(five_k_time / 5, '1km').convert_to(distance_units)
|
16
|
+
PaceRange.new(pace, pace)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Runby
|
2
|
+
module RunTypes
|
3
|
+
# Your 10K race pace, which is also useful for running repetitions at this pace
|
4
|
+
class TenKilometerRaceRun < RunType
|
5
|
+
def description
|
6
|
+
'10K Race Pace'
|
7
|
+
end
|
8
|
+
|
9
|
+
def explanation
|
10
|
+
'Repetitions ran at 10K race pace (10 km is about 6.2 miles) are like 5K pace repetitions, but less intense. They elicit many of the same benefits and help increase speed in races from the 10K to the half-marathon.'
|
11
|
+
end
|
12
|
+
|
13
|
+
def lookup_pace(five_k_time, distance_units = :km)
|
14
|
+
five_k_time = RunbyTime.new(five_k_time)
|
15
|
+
ten_k_time = RunMath.predict_race_time('5K', five_k_time, '10K')
|
16
|
+
pace = Pace.new(ten_k_time / 10, '1km').convert_to(distance_units)
|
17
|
+
PaceRange.new(pace, pace)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.127
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ty Walls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,9 +87,11 @@ files:
|
|
87
87
|
- lib/runby_pace/run_types/easy_run.rb
|
88
88
|
- lib/runby_pace/run_types/fast_tempo_run.rb
|
89
89
|
- lib/runby_pace/run_types/find_divisor.rb
|
90
|
+
- lib/runby_pace/run_types/five_kilometer_race_run.rb
|
90
91
|
- lib/runby_pace/run_types/long_run.rb
|
91
92
|
- lib/runby_pace/run_types/slow_tempo_run.rb
|
92
93
|
- lib/runby_pace/run_types/tempo_run.rb
|
94
|
+
- lib/runby_pace/run_types/ten_kilometer_race_run.rb
|
93
95
|
- lib/runby_pace/runby_range.rb
|
94
96
|
- lib/runby_pace/runby_time.rb
|
95
97
|
- lib/runby_pace/speed.rb
|
@@ -101,7 +103,7 @@ homepage: https://github.com/tygerbytes/runby-pace
|
|
101
103
|
licenses:
|
102
104
|
- MIT
|
103
105
|
metadata:
|
104
|
-
commit-hash:
|
106
|
+
commit-hash: 43d24ef46fe114d4dab93a9c09bf0418781605d4
|
105
107
|
post_install_message:
|
106
108
|
rdoc_options: []
|
107
109
|
require_paths:
|