timesheets 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91fa9830d81f3444ceed62b779739f22631af3cd
4
- data.tar.gz: 77acf5e415da7ffe0ed07181e906b5eda6540c90
3
+ metadata.gz: c601f6f68e11d6e01651251bf92e0a844ccb7e16
4
+ data.tar.gz: 8a3d7a5507cafa7f20aefa320a0e603bf850e8ed
5
5
  SHA512:
6
- metadata.gz: 6c39ed7579ec8decbf16c59d1fa04e8e69ef9e5faba32523f089f555db48fb112307fee5ce2cec80db9fff6465cf60e74d1dab474faadeb72896d584e2134e74
7
- data.tar.gz: 84b8a4acc632c600efc2c4545c1e3abaab8a9a206543009929557372b5e1426cdc5c9273294c8baeba6eec412f9c90dec90d3a021b8330788356b646004125f1
6
+ metadata.gz: 88caf9a6424459274e5a36d11ffc8de76350e9f5776f8a6eebdcf6408921a47fa74d6bd294cc1f6177aa8ca7876bdcbb66ee2f072d81b3bd5207c0b3e1a2f458
7
+ data.tar.gz: e1220935adb1cda7db7ec0d5474f3e70bf66ab5f7ec5fb2d5cfa265c1c0d762a92bff67f789821c27546ac0c737060fcde284e3b6acd4593252493d697482ea2
data/README.md CHANGED
@@ -56,20 +56,23 @@ Ends the current work session, if any.
56
56
  A neat ASCII table report, including total hours.
57
57
 
58
58
  $ timesheets summary
59
- +-----------+----------------+------------+----------+---------+
60
- | Weekday | Date | Start Time | End Time | Hour(s) |
61
- +-----------+----------------+------------+----------+---------+
62
- | Monday | April 28, 2014 | 12:00PM | 8:00PM | 8.0 |
63
- | Monday | April 28, 2014 | 11:00AM | 8:00PM | 9.0 |
64
- | Tuesday | April 29, 2014 | 11:00AM | 2:00PM | 3.0 |
65
- | Tuesday | April 29, 2014 | 2:30PM | 8:30PM | 6.0 |
66
- | Wednesday | April 30, 2014 | 11:00AM | 7:00PM | 8.0 |
67
- | Thursday | May 1, 2014 | 10:15AM | 6:45PM | 8.5 |
68
- | Friday | May 2, 2014 | 10:30AM | 12:30PM | 2.0 |
69
- | Friday | May 2, 2014 | 2:30PM | 7:15PM | 4.75 |
70
- +-----------+----------------+------------+----------+---------+
71
- | | | | | 49.25 |
72
- +-----------+----------------+------------+----------+---------+
59
+ +-----------+----------------+--------------------------------------+---------+
60
+ | Weekday | Date | Time | Hour(s) |
61
+ +-----------+----------------+--------------------------------------+---------+
62
+ | Monday | April 28, 2014 | 11:00AM - 1:00PM, 2:00PM - 7:00PM | 7.00 |
63
+ | Tuesday | April 29, 2014 | 10:00AM - 1:00PM, 1:30PM - 7:30PM | 9.00 |
64
+ | Wednesday | April 30, 2014 | 10:00AM - 6:00PM | 8.00 |
65
+ | Thursday | May 1, 2014 | 9:15AM - 5:45PM | 8.50 |
66
+ | Friday | May 2, 2014 | 9:30AM - 11:30AM, 1:30PM - 6:15PM | 6.75 |
67
+ +-----------+----------------+--------------------------------------+---------+
68
+ | | | Weekly Total: | 39.25 |
69
+ +-----------+----------------+--------------------------------------+---------+
70
+ | Monday | May 5, 2014 | 9:30AM - 12:11PM, 1:05PM - 6:28PM | 8.07 |
71
+ +-----------+----------------+--------------------------------------+---------+
72
+ | | | Weekly Total: | 8.07 |
73
+ +-----------+----------------+--------------------------------------+---------+
74
+ | | | Total: | 47.32 |
75
+ +-----------+----------------+--------------------------------------+---------+
73
76
 
74
77
  ## Contributing
75
78
 
@@ -16,6 +16,7 @@ module Timesheets
16
16
 
17
17
  def active_time(the_entries = [entries.last])
18
18
  hoursf = the_entries.map {|entry| hours_in_entry(entry) }.reduce(:+)
19
+ return "0 minutes" unless hoursf
19
20
  hours = hoursf.to_i
20
21
  mins = ((hoursf - hours) * 60).to_i
21
22
 
@@ -1,3 +1,3 @@
1
1
  module Timesheets
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timesheets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bradley J. Spaulding