runby_pace 0.2.62 → 0.2.63

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2EyYmVmYzM1NjQ3OTE1YTg4OWQ4ZmNhOWEzYmE5MDIxNGZjMWJlMA==
4
+ YjAyNzU1YmYyNjBjYjc4MzlmYmJhMjUyMThjOTFhMzQ0M2QxNjY0ZA==
5
5
  data.tar.gz: !binary |-
6
- YjNiOGRlYTg2Njk3MjlhY2RlNGZmZjhjMTEyMDQzMjRmMDRlZjY3NA==
6
+ MjQ0ODdiNzRlNDQ1ZDA0OWNlMzNhYzI2OGQ4ZThmYzc2ZGI4MWNjNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWNmZTdhYmRhNWE5ODhlY2MwM2NmNWRiOWZlODQ3MzJiOTk4N2E3MzYwYTA4
10
- NGI4MjljNWY5YWIwZGQwYWM0Y2NlMmNmYzg0ZDc0NjAyOGUwNmMyMzlmYjM1
11
- YzcyOTVmOTliZTgzMThmMzQxNjUwZjMzOTNmMzhiYjJiZGMyYTU=
9
+ YzZhZTQ0MzYwNWU2MjdkYzliMmI4YTY4NmJlZjg5ZGRhMGJlMTVjM2IxMjcy
10
+ OWZkYmE1MjMyNmRlNTE4YzlmY2EyOWE4NDM3NmZjOTY4NTUwYWY1NDRkMjk0
11
+ YmNmMDI0MTc3NGQ3MjI3YjA4NWFiNTZhMTkyZWJmMGU3YmYwMmM=
12
12
  data.tar.gz: !binary |-
13
- NWQzMTQ4NDc4NzcyOTBiODI0ZTIyMWMzMWQwY2U4ZDkxM2U2OWIwYmQ5MWZj
14
- YmY1YmM0NTFkN2FhNmI3YjExYzBkNzU1ZTRhYjU2MDEyNjNjOWE0MGVmMzVj
15
- MTQ1ZjkxOWZkZWM1NTE4YzkxZTY2MWI0MmVhNjY3ZDAyMzMzMTk=
13
+ NDQxMWM3MzhkNjMzZjhlOGZkZGVkNjgzMjJlMWYzOTY3MTAyZDNkZjRkYTUz
14
+ YWM5ODBlMDU0MzFhOGFjYjRmMTlhNzNmZDUzMjU2ZDVjM2VmZTkxMDViODJl
15
+ MjA3ODliNGI5Y2FmOThhMWRjZjNlZDM5ZmEzMTEyNmI4YjYwZGQ=
@@ -0,0 +1,34 @@
1
+ module RunbyPace
2
+
3
+ module RunTypes
4
+
5
+ class TempoRun < RunType
6
+ attr_reader :slow_pace_data, :fast_pace_data
7
+
8
+ def description
9
+ 'Tempo Run'
10
+ end
11
+
12
+ def initialize
13
+ @fast_pace_data = PaceData.new(GoldenPaces::fast[:'14:00'], GoldenPaces::fast[:'42:00'], 4.025)
14
+ @slow_pace_data = PaceData.new(GoldenPaces::slow[:'14:00'], GoldenPaces::slow[:'42:00'], 3.725)
15
+ end
16
+
17
+ def pace(five_k_time, distance_units = :km)
18
+ fast = @fast_pace_data.calc(five_k_time, distance_units)
19
+ slow = @slow_pace_data.calc(five_k_time, distance_units)
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
27
+
28
+ def self.slow
29
+ { '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'}
30
+ end
31
+ end
32
+ end
33
+ end
34
+ 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.62
4
+ version: 0.2.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ty Walls
@@ -86,6 +86,7 @@ files:
86
86
  - lib/runby_pace/run_types/find_divisor.rb
87
87
  - lib/runby_pace/run_types/long_run.rb
88
88
  - lib/runby_pace/run_types/slow_tempo_run.rb
89
+ - lib/runby_pace/run_types/tempo_run.rb
89
90
  - lib/runby_pace/version.rb
90
91
  - misc/rubymine.png
91
92
  - runby_pace.gemspec
@@ -93,7 +94,7 @@ homepage: https://github.com/tygerbytes/runby-pace
93
94
  licenses:
94
95
  - MIT
95
96
  metadata:
96
- commit-hash: 9e4c39a7122870b3eccaa32dac2872ccd3be928d
97
+ commit-hash: 4e747b9cef996764804b75c835c15e30e32112a8
97
98
  post_install_message:
98
99
  rdoc_options: []
99
100
  require_paths: