runby_pace 0.6.104 → 0.6.105

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
- ODY0ZWIyNjQ4NmJkMmE1NzIxZWRlNzZkODQ3YWU1ZmZhZDEyNTlmMA==
4
+ ZjZiMzBkMTU2ZGRkMmNkNjkyN2RlY2M5ZmJmNmQzMmZkNDc4YWNhNg==
5
5
  data.tar.gz: !binary |-
6
- M2VjZjM2MjdjNjY2OTZlMDljODkxZjY0ZmM4ZTJlNDMzNmYyY2UyZg==
6
+ ZGJlYjFlYzVhOWQyYTE5ZmU2Mjc4YTI0MzExMzQ1Yjk0MWM2M2YxMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Mjg3YjVkZDk2OWQ2ZjBkYWExNDNmMzJlZGJkMTZjNDlmMjk3ODgxYWIzMDg0
10
- ZjBjMTkyNGZmNjgzNmUyNTQ3NDgzNDRkOTk2MWExYzc3NmEyYmZiZGJiYWUw
11
- NDJlMjU3ODRkZDJhNmFlODFmMWY2M2M3M2M3MWFjNjZjYzU5Njk=
9
+ MmU1MDk2YzRkNWIyOGI0ZDVhMDAwNjdlNmYzMTdhMmJlOTllNDM3MGI2YTNk
10
+ ZGJjNTMxMTEyN2EyOTkyOWEwM2M5YmMyMTg0ODI2YzJiMWNlNzNhYTMyMmEz
11
+ ZWVjYjMzOWNiYmM2ODg2Yzk5NDdjOWZhZGFkNTYxN2I0YWIyMzA=
12
12
  data.tar.gz: !binary |-
13
- NzJhMjNiOTJkZWQ5OTI1NDQ5ZDY2ZjBkY2Q2MDgzMjgwMGYwYjllZGJkMTBj
14
- MWU1ZTZkM2M5ZmYwYjllZmE1ZDk2ZDliNTJjYTYzMjJiODk0MDVkOGVhOTNi
15
- OTVhMzlhOTAxZmZjZmRmZTY2MjcyODg5MzNkYTg1OGQxM2UwNmY=
13
+ Mjk5MmY2ZGNmMTMzNGNiNjNmZjM1N2NkNWY2OTkxYmJhMWMxYTE0ZGU3NTU0
14
+ NjhiYjk0OGQ5OTFiNmQyMWM5YzNjMWViN2MwZjg2NTdmNjNjMzUzMjNjYWYz
15
+ MmM4YTUwMThkNGY3YmJiYTU3ZTVmOWExZDBhYjRjYjI2NDlhMzg=
@@ -53,11 +53,11 @@ 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: :long)
57
57
  formatted_multiplier = format('%g', @multiplier.round(2))
58
58
  case format
59
- when :short then "#{formatted_multiplier}#{@uom.to_s(format)}"
60
- when :long then "#{formatted_multiplier} #{@uom.to_s(format, plural = (@multiplier > 1))}"
59
+ when :short then "#{formatted_multiplier}#{@uom.to_s(format: format)}"
60
+ when :long then "#{formatted_multiplier} #{@uom.to_s(format: format, pluralize: (@multiplier > 1))}"
61
61
  end
62
62
  end
63
63
 
@@ -19,7 +19,7 @@ module Runby
19
19
  @description = @@_uom_definitions[@symbol][:description]
20
20
  end
21
21
 
22
- def to_s(format = :long, pluralize = false)
22
+ def to_s(format: :long, pluralize: false)
23
23
  case format
24
24
  when :short then @symbol.to_s
25
25
  when :long then pluralize ? description_plural : @description
@@ -14,8 +14,8 @@ module Runby
14
14
  end
15
15
  end
16
16
 
17
- def to_s(format = :long)
18
- distance_s = @distance.to_s(format)
17
+ def to_s(format: :long)
18
+ distance_s = @distance.to_s(format: format)
19
19
  leading_one_regex = /^1 ?/
20
20
  distance_s.gsub!(leading_one_regex, '')
21
21
  case format
@@ -22,11 +22,11 @@ module Runby
22
22
  PaceRange.new fast, slow
23
23
  end
24
24
 
25
- def to_s(format = :long)
25
+ def to_s(format: :long)
26
26
  if @fast == @slow
27
- @fast.to_s(format)
27
+ @fast.to_s(format: format)
28
28
  else
29
- @fast.to_s(format).sub("#{@fast.time}", "#{@fast.time}-#{@slow.time}")
29
+ @fast.to_s(format: format).sub("#{@fast.time}", "#{@fast.time}-#{@slow.time}")
30
30
  end
31
31
  end
32
32
  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.6.104
4
+ version: 0.6.105
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-10-21 00:00:00.000000000 Z
11
+ date: 2016-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,7 +100,7 @@ homepage: https://github.com/tygerbytes/runby-pace
100
100
  licenses:
101
101
  - MIT
102
102
  metadata:
103
- commit-hash: 3b7cb90d7419a84781e23693544fc46f21963b16
103
+ commit-hash: 8eded63ded4987b861242aef13fd0f4ab7399025
104
104
  post_install_message:
105
105
  rdoc_options: []
106
106
  require_paths: