herodot 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/herodot/commands.rb +1 -0
- data/lib/herodot/configuration.rb +2 -2
- data/lib/herodot/parser.rb +0 -1
- data/lib/herodot/table.rb +2 -2
- data/lib/herodot/version.rb +1 -1
- data/lib/herodot/worklog.rb +5 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01a3b43aff308c8da024870cb12c96fb19b1dbb7
|
4
|
+
data.tar.gz: 534a1faf059dada2df482fcc3a7a8f7ea28e1ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fd244e8f79a85020fbfcc7809acefeb17b7ddd3af8918e89719a960b3d60b6d041b4250036630353c19a9879242db09d2930255c3aaee8c9aeb532eed0d6a22
|
7
|
+
data.tar.gz: 6789ce7512930e6deefb6f9484de39ae52cd658b64bd1f64b042ddcdbe56a5ce3713aa0727d48380d0203ad481e7101c3db9d472c8dd08a1eca75c7d0987df23
|
data/.gitignore
CHANGED
data/lib/herodot/commands.rb
CHANGED
data/lib/herodot/parser.rb
CHANGED
data/lib/herodot/table.rb
CHANGED
@@ -3,8 +3,8 @@ require 'terminal-table'
|
|
3
3
|
class Herodot::Table
|
4
4
|
HEADERS = %w(Project Branch Time).freeze
|
5
5
|
EMPTY_WORKLOG_MESSAGE = Rainbow('Not enough entries in the worklog.').red +
|
6
|
-
' On a tracked repository `git
|
7
|
-
' and `git
|
6
|
+
' On a tracked repository `git checkout`'\
|
7
|
+
' and `git commit` will add entries.'.freeze
|
8
8
|
COLORS = %i(green yellow blue magenta cyan aqua silver aliceblue indianred).freeze
|
9
9
|
|
10
10
|
class << self
|
data/lib/herodot/version.rb
CHANGED
data/lib/herodot/worklog.rb
CHANGED
@@ -62,12 +62,11 @@ class Herodot::Worklog
|
|
62
62
|
|
63
63
|
def work_time_events
|
64
64
|
dates.flat_map do |date|
|
65
|
-
@config.work_times.map
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
end
|
65
|
+
@config.work_times.map { |event, (hour, minute)|
|
66
|
+
time = Time.new(date.year, date.month, date.day, hour, minute)
|
67
|
+
next if time > Time.now
|
68
|
+
{ id: event, time: time }
|
69
|
+
}.compact
|
71
70
|
end
|
72
71
|
end
|
73
72
|
|