runby_pace 0.6.109 → 0.6.110

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c199e8327995b0c76767cbb7ef54467076898269
4
- data.tar.gz: dd65a32892b595afcb32b6c56c6350320c9e3cff
3
+ metadata.gz: 5c8fc8191323257a7cd5774f02c1eecfc4aa37e1
4
+ data.tar.gz: b3584d73e805d361fe9dac36c2f4f35089d85ea8
5
5
  SHA512:
6
- metadata.gz: 4f72bc38ecd61c52dea4740bbf06157644da8af8f22bb843fd8e4387df7509c7532064b59a1b0805720907a1e8bdfd9742bcb78fb6caac239501da20b844cc6d
7
- data.tar.gz: cfa47855761094cf22ff0357a0d9aa513dc489b8338ee7501d48ad844926de00cb1aa3b0fa284f2475c2d4be396126e012aedaa8f101088bd46f1b884883407e
6
+ metadata.gz: d0390058c7aed7b5d145ae125366f7cde8d6634b5f92aa53a972dd422556628f6ebb28975545bfdabbd7fad9f343e4cea4fd5d0050f7329b1e60eb0458c5d63e
7
+ data.tar.gz: 6e49bff5ab021b347c5ceed50635294e074a60170e4bb70fae96d222964de4689d5b1fae45520ed2c8060968abe6d95f9546747ae2c6c8be940915a0b6dd6155
@@ -53,7 +53,7 @@ module Runby
53
53
  { distance: distance, error: error_message }
54
54
  end
55
55
 
56
- def to_s(format: :long)
56
+ def to_s(format: :short)
57
57
  formatted_multiplier = format('%g', @multiplier.round(2))
58
58
  case format
59
59
  when :short then "#{formatted_multiplier}#{@uom.to_s(format: format)}"
@@ -14,7 +14,7 @@ module Runby
14
14
  end
15
15
  end
16
16
 
17
- def to_s(format: :long)
17
+ def to_s(format: :short)
18
18
  distance_s = @distance.to_s(format: format)
19
19
  leading_one_regex = /^1 ?/
20
20
  distance_s.gsub!(leading_one_regex, '')
@@ -19,7 +19,7 @@ module Runby
19
19
  SpeedRange.new @fast.as_speed, @slow.as_speed
20
20
  end
21
21
 
22
- def to_s(format: :long)
22
+ def to_s(format: :short)
23
23
  if @fast == @slow
24
24
  @fast.to_s(format: format)
25
25
  else
@@ -9,7 +9,7 @@ module Runby
9
9
  raise 'RunbyRange is a base class for PaceRange and SpeedRange. Instantiate one of them instead.'
10
10
  end
11
11
 
12
- def to_s(format: :long)
12
+ def to_s(format: :short)
13
13
  if @fast == @slow
14
14
  @fast.to_s(format: format)
15
15
  else
@@ -20,7 +20,7 @@ module Runby
20
20
  end
21
21
  end
22
22
 
23
- def to_s(format: :long)
23
+ def to_s(format: :short)
24
24
  distance = @distance.to_s(format: format)
25
25
  case format
26
26
  when :short then "#{distance}/ph"
@@ -14,7 +14,7 @@ module Runby
14
14
  Runby::PaceRange.new @fast.as_pace, @slow.as_pace
15
15
  end
16
16
 
17
- def to_s(format: :long)
17
+ def to_s(format: :short)
18
18
  if @fast == @slow
19
19
  @fast.to_s(format: format)
20
20
  else
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.6.109
4
+ version: 0.6.110
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-11-16 00:00:00.000000000 Z
11
+ date: 2016-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,7 +101,7 @@ homepage: https://github.com/tygerbytes/runby-pace
101
101
  licenses:
102
102
  - MIT
103
103
  metadata:
104
- commit-hash: ada35bbb7ee1d5e8b69c04accde31f891475ddf0
104
+ commit-hash: 6c8b501a27e477ab47d45ba55be924b2a3d96cad
105
105
  post_install_message:
106
106
  rdoc_options: []
107
107
  require_paths: