hour 0.1.4 → 0.1.5

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hour.rb +1 -1
  3. data/lib/hour/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f0884020efb0cfd427c84a280f0a19399497df7
4
- data.tar.gz: da14b89ea449c973af5290118a5a0f0a1fff4d9e
3
+ metadata.gz: 44df723edb5610a408068fa5ed0de21a2b2819c0
4
+ data.tar.gz: 9ea8b6b26aad076623b5bcf2abe0c6d433a13c4f
5
5
  SHA512:
6
- metadata.gz: db4fd3854f990474574a6d8bc3a47af73c0403b6f9e4c21fdecf7a80e7b166661e62ffebed5f62629587d895b11753e475563bfc5d7dc9ec741e44ba389d844a
7
- data.tar.gz: 5fde3038a49f61e563f93b7203a6a00aa00dd060251dc7d9a5835f9164a04bad7db829971e5265900fc84fe1265a8498dcf3d87836b52ba772ebf0ebfc90db59
6
+ metadata.gz: 1e17d3ec54f63a74b562ab6f5cce114c9f140a64dc5d1fc332df64e1db25f0ebd59dacd4c48349e6fa31208584ce6ef07f1cb087963d695ae6b8058866ea37e9
7
+ data.tar.gz: 23828486549131d91b60628eeacda0a2e2b4a66d8c0a26291fa39201ef52ed5934b6d8b3a12c1fb5966cc5b19c51b972ce259a0b54899d3176b9d1c99cbc90ae
@@ -6,7 +6,7 @@ module Hour
6
6
 
7
7
  def initialize(hours, minutes = 0)
8
8
  hours, minutes = hours.split(':').map(&:to_i) if hours.is_a? String
9
- minutes = [1, minutes, 59].sort[1] #clamp: constrains the assignment to the middle value
9
+ minutes = [0, minutes, 59].sort[1] #clamp: constrains the assignment to the middle value
10
10
  @to_s = "#{'%02d' % hours}:#{'%02d' % minutes}"
11
11
  @to_a = [@hours = hours, @minutes = minutes]
12
12
  @to_seconds = ((hours * 60) + minutes) * 60
@@ -1,3 +1,3 @@
1
1
  module Hour
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - davegregg