runby_pace 0.6.128 → 0.6.130
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/run_types/mile_race_run.rb +22 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6672381d2fa843bcbb7da0215c03d3c17ee137ae
|
4
|
+
data.tar.gz: 2b821a95986ff8fd490a884d744b314f6c14b835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99f9fdd858e34d2c0a9acb279835351f7a041201c48244e40f8b782d65f3334578d7a5082b89cd8962c7968574b464aaffc52676100e15f61604bc2385b68790
|
7
|
+
data.tar.gz: 2b5cd47040a7cedd0cf44de86243992c53e891cd159da8c54bbb34032ae6fc884a276d50dc801699781a64fc729cdbd06e45dfad5ffc50178eab824f0a98ad31
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Runby
|
2
|
+
module RunTypes
|
3
|
+
# Your mile race pace, which is also useful for running repetitions at this pace
|
4
|
+
class MileRaceRun < RunType
|
5
|
+
def description
|
6
|
+
'Mile Race Pace'
|
7
|
+
end
|
8
|
+
|
9
|
+
def explanation
|
10
|
+
'Repetitions run at a pace you would use to race one mile can increase the stroke volume of your heart, strengthen your lungs, increase the number of capillaries around your intermediate and fast twitch fibers, and increase mitochondrial densities around the same.'
|
11
|
+
end
|
12
|
+
|
13
|
+
def lookup_pace(five_k_time, distance_units = :km)
|
14
|
+
five_k_time = RunbyTime.new(five_k_time)
|
15
|
+
mile = Distance.new('1 mile')
|
16
|
+
mile_time = RunMath.predict_race_time('5K', five_k_time, mile)
|
17
|
+
pace = Pace.new(mile_time, mile).convert_to(distance_units)
|
18
|
+
PaceRange.new(pace, pace)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
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.130
|
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-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/runby_pace/run_types/find_divisor.rb
|
90
90
|
- lib/runby_pace/run_types/five_kilometer_race_run.rb
|
91
91
|
- lib/runby_pace/run_types/long_run.rb
|
92
|
+
- lib/runby_pace/run_types/mile_race_run.rb
|
92
93
|
- lib/runby_pace/run_types/slow_tempo_run.rb
|
93
94
|
- lib/runby_pace/run_types/tempo_run.rb
|
94
95
|
- lib/runby_pace/run_types/ten_kilometer_race_run.rb
|
@@ -103,7 +104,7 @@ homepage: https://github.com/tygerbytes/runby-pace
|
|
103
104
|
licenses:
|
104
105
|
- MIT
|
105
106
|
metadata:
|
106
|
-
commit-hash:
|
107
|
+
commit-hash: 8bf5e2d4e8769e7df8e7a53613ff4c7e422bf022
|
107
108
|
post_install_message:
|
108
109
|
rdoc_options: []
|
109
110
|
require_paths:
|