runby_pace 0.2.56 → 0.2.57

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
- MjAwN2RhZjMwZTRlZDhhY2ZmMDYzMTcxMGU3ZTYzNzE5MTAzOTZlMA==
4
+ NTVjYWZlYmVhMzZmOTY3ZGM0NDIzMTk4ZjhkNWU4MmJmYWI2YzBlMw==
5
5
  data.tar.gz: !binary |-
6
- ZGJmNDMzNWE1OTZmNWIzY2UzNTFlYzA1OGM3M2Q4M2JjOGUyZDhjNg==
6
+ MDQzNTI4MWZiNTczMWRkYzllYzZhODY2NmNjMDk0OGRjYjU1NWQyNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWMyYjI4NjNlMmQ2NDg5MjMwMjBlMzZlNzFiMTg1NWY0OGM3N2UxNjMxMzlk
10
- OGZlNDRhYmYwYTE4OTFkOWNlNzZhZGQyN2E3Y2JiODJiODE1ZmExMTQ5ZDM0
11
- OGYxYWIxNTRiMTk4ODQ5ZmJjNmNjNjU4Zjk5MThkNzE1ZWRjNGY=
9
+ NWE0ZjQ5ZjA3OTRiNTllNjk1NjgxOGQxYWIwY2IyZDg4NzBkZTYyZmVjZWM3
10
+ ZmIzY2E1ZTc3NjU3ZjNmNDVkNzJkNjI3MDA1Mzc5OWE3YWUwODdlOTZhZWM0
11
+ MzEyYjM3MTJlYjRmYmQ0NWJkODlhNTA2ZDBlMmQzN2MxNDNjNTM=
12
12
  data.tar.gz: !binary |-
13
- NzAyZmYyZmQ0MzViODNiNjExNTIyYTlmMzU2OTlkMjFjMmVhMjVlZmY0NTQx
14
- ZDQwZjBkZDIxZDg0MmNhZjIyZDliYjUyOWFiNjRlYTQzZmI5ZTZjYzk0YWU0
15
- YmIxMWMyZWJhMzI3M2Y4NGRhMjRjOTk3YThkNzNkNWVlMzQ0YmY=
13
+ YmY3N2EwZGNiMmUxNWY3ZTA0ZmRjNzI2MGY0MDI1OGY4ZTdmMGE1ZmM2YzZi
14
+ ODM1MWY5ZmY0MGE4ZTVhMjg5NzU2ZGJkZDkyMWMxZGExYzRkNmE2YmIwZGYw
15
+ MGI2N2JmYTliMzc4OGI3YTk3MDJhZGQyNTM5ZDdhYzY0YmU1N2M=
@@ -9,7 +9,11 @@ module RunbyPace
9
9
  end
10
10
 
11
11
  def to_s
12
- "#{@fast}-#{@slow}"
12
+ if @fast == @slow
13
+ "#{@fast}"
14
+ else
15
+ "#{@fast}-#{@slow}"
16
+ end
13
17
  end
14
18
  end
15
19
  end
@@ -0,0 +1,30 @@
1
+ module RunbyPace
2
+
3
+ module RunTypes
4
+
5
+ class FastTempoRun < RunType
6
+ attr_reader :slow_pace_data, :fast_pace_data
7
+
8
+ def description
9
+ 'Fast 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 = @fast_pace_data
15
+ end
16
+
17
+ def pace(five_k_time)
18
+ fast = @fast_pace_data.calc(five_k_time)
19
+ slow = fast
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
+ end
28
+ end
29
+ end
30
+ 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.56
4
+ version: 0.2.57
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-22 00:00:00.000000000 Z
11
+ date: 2016-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,7 @@ files:
80
80
  - lib/runby_pace/run_types/all_run_types.template
81
81
  - lib/runby_pace/run_types/distance_run.rb
82
82
  - lib/runby_pace/run_types/easy_run.rb
83
+ - lib/runby_pace/run_types/fast_tempo_run.rb
83
84
  - lib/runby_pace/run_types/find_divisor.rb
84
85
  - lib/runby_pace/run_types/long_run.rb
85
86
  - lib/runby_pace/version.rb
@@ -89,7 +90,7 @@ homepage: https://github.com/tygerbytes/runby-pace
89
90
  licenses:
90
91
  - MIT
91
92
  metadata:
92
- commit-hash: 6eb84bbe93d4e6cfc2d85ff2c8c8fbaf6acba585
93
+ commit-hash: 172f78652e8dd2636e77a9ea8d7a5ff5f17a7ed1
93
94
  post_install_message:
94
95
  rdoc_options: []
95
96
  require_paths: