runby_pace 0.2.36 → 0.2.37

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
- NzQxZDBhYWZjODA1MDIzN2YyM2Q4OGFhNmNlOGZiMTg2NDc3NGZmMA==
4
+ Y2I4ODIwNjNhYmI5NGIwYmU5MWExOTA4ZWIwMmY5ZWIyMmI1ZTc4Yw==
5
5
  data.tar.gz: !binary |-
6
- OTMxYzNhZDBkNDYyNjFiMGE3OTllYjJjM2Q2MTg2YzhlZDAxOTg3Zg==
6
+ ZjkzZDZhNzBlNGUzNjM1ZDlmOWIyZDM1N2Q3MzMzY2IyZGM4NTc1Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzMxMjMxZGJkNjU4MjZlMjlhNzhiNTc2NmQzYjQzMjIxODAzMWU5ZDdlNWQ4
10
- ZjQ5NDFiNjI5ZTNiZjVjNjM3ODk3NGY1NzQ2OTg2MGQxNDQ1ZWQ5OTQ1ODUw
11
- MjhlYmFkOThmYWZjNDY0NDA1ZmVlMDY3ZjhjYmYzZTgwNWNiMjU=
9
+ NmRjODlhZTViZGY4MmExNmFkOWM0YjAyY2U5NjcxY2Q5OTVkZWIwZjA5MzM1
10
+ NDgyYmVmNmU4NzViOGM1OWI5ZTQ0N2U5NTBkOGY0Njg4YWE3ODBiZGE3ZGEx
11
+ YTgwMmEyOTc0MTdkMzBiNDM1N2Q3ZTQ4N2Q1ZDYxM2FhMGIwMzM=
12
12
  data.tar.gz: !binary |-
13
- ZTdhMmZhNTE3MjU0NTA1ZDdjOGRlZjMzNjRkZjg5MTgxOGY4Y2U5YjU1YTQw
14
- ZDk1MGRiODg4OTVlYzgxZDQ2ZmQ4OTA1ODZhODMyM2I4YWU2MmZkZWE0ZmU3
15
- YjYyNzA0Y2JmZDg2OTc5ZjkzODg0MWIxMDE0M2E4MDIwOTYyNWU=
13
+ Mjc5NjM0YzRmN2ZiMDkzODMwNTdlM2Y3ZGVhN2Y5MDdhNzIxMWEwY2M2OWFk
14
+ OWZlYTA5NmM3MTU4OWE3MzhkNGY4OWFkOGE4NDM5ZGFhY2Q2YjE4M2Y5Njhk
15
+ OGI5MWYxNDBkYWE3MjhkZDA3NDA3ZGU2YzM1NDRlYjBlZjNlZWQ=
@@ -0,0 +1,29 @@
1
+ module RunbyPace
2
+
3
+ module RunTypes
4
+
5
+ class EasyRun < RunType
6
+ attr_reader :slow_pace_data, :fast_pace_data
7
+
8
+ def initialize
9
+ @fast_pace_data = PaceData.new(GoldenPaces::fast[:'14:00'], GoldenPaces::fast[:'42:00'], 1.99)
10
+ @slow_pace_data = PaceData.new(GoldenPaces::slow[:'14:00'], GoldenPaces::slow[:'42:00'], 1.35)
11
+ end
12
+
13
+ def pace(five_k_time)
14
+ fast = @fast_pace_data.calc(five_k_time)
15
+ slow = @slow_pace_data.calc(five_k_time)
16
+ PaceRange.new(fast, slow)
17
+ end
18
+
19
+ class GoldenPaces
20
+ def self.fast
21
+ { '14:00': '04:17', '15:00': '04:33', '20:00': '05:53', '25:00': '07:09', '30:00': '08:23', '35:00': '09:33', '40:00': '10:41', '42:00': '11:08'}
22
+ end
23
+ def self.slow
24
+ { '14:00': '05:01', '15:00': '05:20', '20:00': '06:51', '25:00': '08:17', '30:00': '09:38', '35:00': '10:56', '40:00': '12:10', '42:00': '12:39'}
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -6,8 +6,8 @@ module RunbyPace
6
6
  attr_reader :slow_pace_data, :fast_pace_data
7
7
 
8
8
  def initialize
9
- @slow_pace_data = PaceData.new('04:39', '11:53', 1.55)
10
- @fast_pace_data = PaceData.new('04:00', '10:32', 1.99)
9
+ @fast_pace_data = PaceData.new(GoldenPaces::fast[:'14:00'], GoldenPaces::fast[:'42:00'], 1.99)
10
+ @slow_pace_data = PaceData.new(GoldenPaces::slow[:'14:00'], GoldenPaces::slow[:'42:00'], 1.55)
11
11
  end
12
12
 
13
13
  def pace(five_k_time)
@@ -15,6 +15,15 @@ module RunbyPace
15
15
  slow = @slow_pace_data.calc(five_k_time)
16
16
  PaceRange.new(fast, slow)
17
17
  end
18
+
19
+ class GoldenPaces
20
+ def self.fast
21
+ { '14:00': '04:00', '15:00': '04:16', '20:00': '05:31', '25:00': '06:44', '30:00': '07:54', '35:00':'09:01', '40:00':'10:07', '42:00':'10:32'}
22
+ end
23
+ def self.slow
24
+ { '14:00': '04:39', '15:00': '04:57', '20:00': '06:22', '25:00': '07:43', '30:00': '09:00', '35:00':'10:15', '40:00':'11:26', '42:00':'11:53'}
25
+ end
26
+ end
18
27
  end
19
28
  end
20
29
  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.36
4
+ version: 0.2.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ty Walls
@@ -76,6 +76,7 @@ files:
76
76
  - lib/runby_pace/pace_range.rb
77
77
  - lib/runby_pace/pace_time.rb
78
78
  - lib/runby_pace/run_type.rb
79
+ - lib/runby_pace/run_types/easy_run.rb
79
80
  - lib/runby_pace/run_types/long_run.rb
80
81
  - lib/runby_pace/version.rb
81
82
  - misc/rubymine.png
@@ -84,7 +85,7 @@ homepage: https://github.com/tygerbytes/runby-pace
84
85
  licenses:
85
86
  - MIT
86
87
  metadata:
87
- commit-hash: 5ed477fd9a344d883acf37694a9a8ac68ce805c1
88
+ commit-hash: 017ff7a10d3534444ba4dbb583ab25ec1c0b09a3
88
89
  post_install_message:
89
90
  rdoc_options: []
90
91
  require_paths: