tlog 0.2.5 → 0.2.6
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 +8 -8
- data/README.md +26 -28
- data/TODO +1 -1
- data/lib/tlog.rb +1 -1
- data/lib/tlog/command/display.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MmEzMWNiNjgxMTQzMTJiOTBhMzllZGUwYzAzN2FjYzMwNjE4YzIyYQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZjA3MGIyYmVlZWRhNzFlYmU0YjMzNzFhOGRlOGExYmNjNDYxMzAzOA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZjFkNGQ3NzNhYjdkM2FhMGFiZmRlY2JmOGZkY2ZjYzA1Mjc4OTAxNzRiMjY5
|
|
10
|
+
MGRiMzBmNmM0NDUwODI4NjhhZjYyY2Y1YjMxYWE5OWZkZTI4MjVjZDU2ZWIx
|
|
11
|
+
MzE2NzU3NzRkYTlkMDEwMWYzZTdmNzk4MTkxZGZkMDIxMzhiZjE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
OTZhOGQ1MGVkYjUxYzQzZmI4YWM0MWNlYmU0YzIwMTAwM2RhZjBhMWY3NWFi
|
|
14
|
+
OGRjMzc5YzQ3NjcxYWU3YjEwYjMzY2M1OWMyYjFkNjExNmE1NDEzODIyNWQw
|
|
15
|
+
ODgyZTc5ZjMyZGNjMzg0YzI0NjRjMzExYTZiMjYzMmU2M2ViYjQ=
|
data/README.md
CHANGED
|
@@ -64,9 +64,9 @@ $ tlog owner cewendel
|
|
|
64
64
|
$ tlog stop example
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
#### Stop the current task and commit your tracked
|
|
67
|
+
#### Stop the current task and commit your tracked changes to the current branch
|
|
68
68
|
```bash
|
|
69
|
-
$ tlog stop example -
|
|
69
|
+
$ tlog stop example -a -m "My commit message"
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
#### Delete a time log
|
|
@@ -108,6 +108,16 @@ Owner: peter
|
|
|
108
108
|
Time left: 3:56:56
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
+
#### Show all time logs and label the checked-out log or the in-progress log
|
|
112
|
+
```bash
|
|
113
|
+
$ tlog all
|
|
114
|
+
All Time Logs:
|
|
115
|
+
testing
|
|
116
|
+
feature1(in-progress)
|
|
117
|
+
bug fix
|
|
118
|
+
feature2
|
|
119
|
+
```
|
|
120
|
+
|
|
111
121
|
#### Display a specific time log
|
|
112
122
|
```bash
|
|
113
123
|
$ tlog display feature1
|
|
@@ -123,6 +133,20 @@ Owner: peter
|
|
|
123
133
|
Time left: 3:56:56
|
|
124
134
|
```
|
|
125
135
|
|
|
136
|
+
#### Constrain displayed time logs to only ones that have less than the specified amount of time left
|
|
137
|
+
```bash
|
|
138
|
+
$ tlog display -g 1hr
|
|
139
|
+
Log: bugfix
|
|
140
|
+
State: open
|
|
141
|
+
Points: 10
|
|
142
|
+
Owner: andrew
|
|
143
|
+
Start End Duration Description
|
|
144
|
+
June 06, 12:45PM June 06, 12:46PM 1:00:27 fixing really bad bug
|
|
145
|
+
----------------------------------------------------------------------------------------------------
|
|
146
|
+
Total 1:00:27
|
|
147
|
+
Time left: 0:59:33
|
|
148
|
+
```
|
|
149
|
+
|
|
126
150
|
#### Constrain displayed time logs to only ones with specified states
|
|
127
151
|
```bash
|
|
128
152
|
$ tlog display -s open,hold
|
|
@@ -132,7 +156,6 @@ Points: 10
|
|
|
132
156
|
Owner: andrew
|
|
133
157
|
Start End Duration Description
|
|
134
158
|
June 06, 12:45PM June 06, 12:46PM 1:00:27 fixing really bad bug
|
|
135
|
-
June 07,
|
|
136
159
|
----------------------------------------------------------------------------------------------------
|
|
137
160
|
Total 1:00:27
|
|
138
161
|
Time left: 0:59:33
|
|
@@ -184,31 +207,6 @@ Owner: andrew
|
|
|
184
207
|
Time left: 0:59:33
|
|
185
208
|
```
|
|
186
209
|
|
|
187
|
-
#### Constrain displayed time logs to only ones that have less than the specified amount of time left to finish
|
|
188
|
-
```bash
|
|
189
|
-
$ tlog display -g 1hr
|
|
190
|
-
Log: bugfix
|
|
191
|
-
State: open
|
|
192
|
-
Points: 10
|
|
193
|
-
Owner: andrew
|
|
194
|
-
Start End Duration Description
|
|
195
|
-
June 06, 12:45PM June 06, 12:46PM 1:00:27 fixing really bad bug
|
|
196
|
-
June 07,
|
|
197
|
-
----------------------------------------------------------------------------------------------------
|
|
198
|
-
Total 1:00:27
|
|
199
|
-
Time left: 0:59:33
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
#### Show all time logs and label the checked-out log or the in-progress log
|
|
203
|
-
```bash
|
|
204
|
-
$ tlog all
|
|
205
|
-
All Time Logs:
|
|
206
|
-
testing
|
|
207
|
-
feature1(in-progress)
|
|
208
|
-
bug fix
|
|
209
|
-
feature2
|
|
210
|
-
```
|
|
211
|
-
|
|
212
210
|
## Collaboration
|
|
213
211
|
|
|
214
212
|
tlog makes for easy time and ticket tracking when working with a team. Assuming you have a remote repo that you and others are pushing to, use the `tlog push` and `tlog pull` commands to keep your time logs up to date.
|
data/TODO
CHANGED
data/lib/tlog.rb
CHANGED
data/lib/tlog/command/display.rb
CHANGED
|
@@ -122,7 +122,7 @@ class Tlog::Command::Display < Tlog::Command
|
|
|
122
122
|
def display_entries(entries, output)
|
|
123
123
|
if entries.size > 0
|
|
124
124
|
entries.each do |entry|
|
|
125
|
-
out_str = "\t%-4s
|
|
125
|
+
out_str = "\t%-4s %16s%12s %s" % [
|
|
126
126
|
date_time_format.timestamp(entry.time[:start]),
|
|
127
127
|
date_time_format.timestamp(entry.time[:end]),
|
|
128
128
|
seconds_format.duration(entry.length.to_s),
|
|
@@ -173,7 +173,7 @@ class Tlog::Command::Display < Tlog::Command
|
|
|
173
173
|
def print_current(log_name, log_length, current_start_time, output)
|
|
174
174
|
if is_current_log_name?(log_name)
|
|
175
175
|
formatted_length = seconds_format.duration storage.time_since_start
|
|
176
|
-
out_str = out_str = "\t%-4s %16s
|
|
176
|
+
out_str = out_str = "\t%-4s %16s%14s %s" % [
|
|
177
177
|
date_time_format.timestamp(current_start_time),
|
|
178
178
|
nil,
|
|
179
179
|
formatted_length,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tlog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Wendel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-08-
|
|
11
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: commander
|