runby_pace 0.2.63 → 0.2.64
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/runby_pace/run_types/fast_tempo_run.rb +4 -16
- data/lib/runby_pace/run_types/slow_tempo_run.rb +3 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjM4NWQzNmIyNjcyYzdmZGI0N2ExNDViOTRlNGYyMDg2YmUzMGI2Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDlkYTA1ZjUyNzhjYWI5OWNjYjQ4NGEyMmEyZTBlYmE2ZjkwZjA3MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTg2OTJhOWMwNTNmNDcxNjBmNWRlOTVhNGM4MmMxZGVjODkwN2NmNWQ4NWRh
|
10
|
+
MDkzOTljYThkYjIzOWU3MzBkYmE3ZDcxMDRkM2NmYTgzYjBlOGNiNTAzMzM2
|
11
|
+
ZmUzMjIyYzFkODhlYmU5M2VkYjNkNjI5Mzk5MDNiNThlZjJlMzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDkwZDgwZTM3MTdiMDVkZjc4YjI3NWRkNWFhNjQyNzJjMWI4Yzc5MTAxY2Yw
|
14
|
+
MTQxNDVhODhiZjhlZjkwN2NiNTkyZGE5YmNlMmNlOGNlMWI5YTEyYzc2ZTE5
|
15
|
+
ZDlhN2YxZDJkYzc4ZGQ4Mzc0Mjc2OGIzOGYwYmVlOTEwNDJjMGE=
|
@@ -1,29 +1,17 @@
|
|
1
|
+
require_relative 'tempo_run'
|
2
|
+
|
1
3
|
module RunbyPace
|
2
4
|
|
3
5
|
module RunTypes
|
4
6
|
|
5
|
-
class FastTempoRun <
|
6
|
-
attr_reader :slow_pace_data, :fast_pace_data
|
7
|
-
|
7
|
+
class FastTempoRun < TempoRun
|
8
8
|
def description
|
9
9
|
'Fast Tempo Run'
|
10
10
|
end
|
11
11
|
|
12
|
-
def initialize
|
13
|
-
@fast_pace_data = PaceData.new(GoldenPaces::fast[:'14:00'], GoldenPaces::fast[:'42:00'], 4.025)
|
14
|
-
@slow_pace_data = @fast_pace_data
|
15
|
-
end
|
16
|
-
|
17
12
|
def pace(five_k_time, distance_units = :km)
|
18
13
|
fast = @fast_pace_data.calc(five_k_time, distance_units)
|
19
|
-
|
20
|
-
PaceRange.new(fast, slow)
|
21
|
-
end
|
22
|
-
|
23
|
-
class GoldenPaces
|
24
|
-
def self.fast
|
25
|
-
{ '14:00': '03:07', '15:00': '03:20', '20:00': '04:21', '25:00': '05:20', '30:00': '06:19', '35:00':'07:16', '40:00':'08:12', '42:00':'08:35'}
|
26
|
-
end
|
14
|
+
PaceRange.new(fast, fast)
|
27
15
|
end
|
28
16
|
end
|
29
17
|
end
|
@@ -1,30 +1,18 @@
|
|
1
|
+
require_relative 'tempo_run'
|
2
|
+
|
1
3
|
module RunbyPace
|
2
4
|
|
3
5
|
module RunTypes
|
4
6
|
|
5
|
-
class SlowTempoRun <
|
6
|
-
attr_reader :slow_pace_data, :slow_pace_data
|
7
|
-
|
7
|
+
class SlowTempoRun < TempoRun
|
8
8
|
def description
|
9
9
|
'Slow Tempo Run'
|
10
10
|
end
|
11
11
|
|
12
|
-
def initialize
|
13
|
-
@slow_pace_data = PaceData.new(GoldenPaces::slow[:'14:00'], GoldenPaces::slow[:'42:00'], 3.725)
|
14
|
-
@slow_pace_data = @slow_pace_data
|
15
|
-
end
|
16
|
-
|
17
12
|
def pace(five_k_time, distance_units = :km)
|
18
13
|
slow = @slow_pace_data.calc(five_k_time, distance_units)
|
19
|
-
slow = slow
|
20
14
|
PaceRange.new(slow, slow)
|
21
15
|
end
|
22
|
-
|
23
|
-
class GoldenPaces
|
24
|
-
def self.slow
|
25
|
-
{ '14:00': '03:18', '15:00': '03:31', '20:00': '04:35', '25:00': '05:37', '30:00': '06:38', '35:00':'07:38', '40:00':'08:36', '42:00':'08:59'}
|
26
|
-
end
|
27
|
-
end
|
28
16
|
end
|
29
17
|
end
|
30
18
|
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.2.
|
4
|
+
version: 0.2.64
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ty Walls
|
@@ -94,7 +94,7 @@ homepage: https://github.com/tygerbytes/runby-pace
|
|
94
94
|
licenses:
|
95
95
|
- MIT
|
96
96
|
metadata:
|
97
|
-
commit-hash:
|
97
|
+
commit-hash: 71d892c815dfdbd1b9b4c3d759d7e442a44c2059
|
98
98
|
post_install_message:
|
99
99
|
rdoc_options: []
|
100
100
|
require_paths:
|