runby_pace 0.2.55 → 0.2.56

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzcyNTgxZjZiMzBlZGU2NTcyNzIzOGU1M2RiMTAxMDA0Y2ViOTRmMA==
4
+ MjAwN2RhZjMwZTRlZDhhY2ZmMDYzMTcxMGU3ZTYzNzE5MTAzOTZlMA==
5
5
  data.tar.gz: !binary |-
6
- YTVmNWNlNGJhYTcyYTVjYmE0OThjNDY1MWE0NmVhMjljMWYxOWQxOA==
6
+ ZGJmNDMzNWE1OTZmNWIzY2UzNTFlYzA1OGM3M2Q4M2JjOGUyZDhjNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzdhOGFkODU2MjhjMTg2NGNkZDcwM2U3MzdkODQyYjE4MTVmYWI4Y2EwYzA3
10
- OTdhNDMxOTUwOGI0M2ZmN2ZiZTc2M2VhMzk3YjRiNDY4MGU5NDg5YmRhNWI2
11
- ZjI4N2RmZTVlYTk1Mjc5ZGQxZGUxNzA1NzEyYzNiNTM4ZTcyMGQ=
9
+ OWMyYjI4NjNlMmQ2NDg5MjMwMjBlMzZlNzFiMTg1NWY0OGM3N2UxNjMxMzlk
10
+ OGZlNDRhYmYwYTE4OTFkOWNlNzZhZGQyN2E3Y2JiODJiODE1ZmExMTQ5ZDM0
11
+ OGYxYWIxNTRiMTk4ODQ5ZmJjNmNjNjU4Zjk5MThkNzE1ZWRjNGY=
12
12
  data.tar.gz: !binary |-
13
- ZmQ2M2Y5ZTNjYThkY2ViNjRkN2FhMDI5Zjc3YTVjZmE4ZjI0MWE1YmJjMjBk
14
- NTlkMmNjZmZiODVmZjVmNDNjNzM0YzY1MzliZGViNmU4YmM5MjYxZDhjYzYx
15
- MWEzNGU3OWU0ZDRiNTAxMzkyN2U2NjY1MDA0MmI1ZmNmMjFlMGQ=
13
+ NzAyZmYyZmQ0MzViODNiNjExNTIyYTlmMzU2OTlkMjFjMmVhMjVlZmY0NTQx
14
+ ZDQwZjBkZDIxZDg0MmNhZjIyZDliYjUyOWFiNjRlYTQzZmI5ZTZjYzk0YWU0
15
+ YmIxMWMyZWJhMzI3M2Y4NGRhMjRjOTk3YThkNzNkNWVlMzQ0YmY=
@@ -0,0 +1,33 @@
1
+ module RunbyPace
2
+
3
+ module RunTypes
4
+
5
+ class DistanceRun < RunType
6
+ attr_reader :slow_pace_data, :fast_pace_data
7
+
8
+ def description
9
+ 'Distance Run'
10
+ end
11
+
12
+ def initialize
13
+ @fast_pace_data = PaceData.new(GoldenPaces::fast[:'14:00'], GoldenPaces::fast[:'42:00'], 3.675)
14
+ @slow_pace_data = PaceData.new(GoldenPaces::slow[:'14:00'], GoldenPaces::slow[:'42:00'], 2.175)
15
+ end
16
+
17
+ def pace(five_k_time)
18
+ fast = @fast_pace_data.calc(five_k_time)
19
+ slow = @slow_pace_data.calc(five_k_time)
20
+ PaceRange.new(fast, slow)
21
+ end
22
+
23
+ class GoldenPaces
24
+ def self.fast
25
+ { '14:00': '03:44', '15:00': '03:58', '20:00': '05:09', '25:00': '06:18', '30:00': '07:24', '35:00': '08:29', '40:00': '09:33', '42:00': '09:58'}
26
+ end
27
+ def self.slow
28
+ { '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:42', '42:00': '11:10'}
29
+ end
30
+ end
31
+ end
32
+ end
33
+ 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.2.55
4
+ version: 0.2.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ty Walls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-12 00:00:00.000000000 Z
11
+ date: 2016-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,6 +78,7 @@ files:
78
78
  - lib/runby_pace/run_type.rb
79
79
  - lib/runby_pace/run_types/all_run_types.g.rb
80
80
  - lib/runby_pace/run_types/all_run_types.template
81
+ - lib/runby_pace/run_types/distance_run.rb
81
82
  - lib/runby_pace/run_types/easy_run.rb
82
83
  - lib/runby_pace/run_types/find_divisor.rb
83
84
  - lib/runby_pace/run_types/long_run.rb
@@ -88,7 +89,7 @@ homepage: https://github.com/tygerbytes/runby-pace
88
89
  licenses:
89
90
  - MIT
90
91
  metadata:
91
- commit-hash: 90c8a805cae7d6d0752403683b467916b1ee1d61
92
+ commit-hash: 6eb84bbe93d4e6cfc2d85ff2c8c8fbaf6acba585
92
93
  post_install_message:
93
94
  rdoc_options: []
94
95
  require_paths: