tlog 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +51 -41
- data/lib/tlog.rb +2 -2
- data/lib/tlog/command/{active.rb → all.rb} +3 -3
- data/lib/tlog/command/stop.rb +15 -1
- data/lib/tlog/command_suite.rb +1 -1
- data/lib/tlog/storage/disk.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTZkODM0YzY2Mjg1ZTUyZjllYjlhOWY4NDlhNjI5NzZmZjM0ZTlkNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTc4ZWQyMTY1ZTUxM2QzNzNlMWRjNTQ1N2EwYjgyY2VhNWZlNDkxNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmY5N2M4YTM0MzQ4YWRlODYxMjY1OGNmNTY5Nzc5OTczMDA4OGI3MzgyMTE4
|
10
|
+
ODdjMmNmNDU4OTFiZjk5ODBjMzUwYzc4YzlhOWQyMjM3Zjg0YzczMjBhMmE4
|
11
|
+
ZTIwNDgwYjkzYzYwMDk2MGU2MTkxNjQ0YWQzZDFlYzYyY2Q3NDc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTNhNDdlMzA4ZjU5MTZkYTg0OTE4YzA3MjNmNTVhM2IzYjBjYzNhZTE3MDFk
|
14
|
+
ZDliZmY0NGFkYzQwYWEyYjI3OGE4MTE5NThjNjM1MjE1YzA3NWM0N2ZjMjcz
|
15
|
+
MzUzYWNkZGJmM2EyZDNiMDY4NjU1ODE2YTdhZWNmNmMzMDIyZTI=
|
data/README.md
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
tlog
|
2
2
|
============================================
|
3
3
|
|
4
|
-
|
4
|
+
tlog is a git-based tool to help you with time and ticket tracking on your projects.
|
5
5
|
|
6
6
|
## Installing
|
7
7
|
```bash
|
8
8
|
$ sudo gem install tlog
|
9
9
|
```
|
10
10
|
|
11
|
-
|
11
|
+
## Usage
|
12
12
|
* Navigate to a directory that has a git repo
|
13
|
+
* Create time logs for project tasks
|
14
|
+
* Assign a time goal, owner, points value, or state to each time log
|
15
|
+
* Track time working on a task
|
16
|
+
* Collaborate by sharing time logs with other people working on your project
|
13
17
|
|
14
18
|
## Create a time log
|
15
19
|
|
@@ -27,6 +31,49 @@ $ tlog create example --goal 4hr
|
|
27
31
|
```bash
|
28
32
|
$ tlog create example --state OPEN --points 10
|
29
33
|
```
|
34
|
+
|
35
|
+
## Using time logs
|
36
|
+
|
37
|
+
#### Check out a time log
|
38
|
+
```bash
|
39
|
+
$ tlog checkout example
|
40
|
+
```
|
41
|
+
|
42
|
+
#### Start a new task the checked-out time log
|
43
|
+
```bash
|
44
|
+
$ tlog start -d "My task description"
|
45
|
+
```
|
46
|
+
|
47
|
+
#### Update the state of the checked-out time log
|
48
|
+
```bash
|
49
|
+
$ tlog state CLOSED
|
50
|
+
```
|
51
|
+
|
52
|
+
#### Update the points value of the checked-out time log
|
53
|
+
```bash
|
54
|
+
$ tlog points 10
|
55
|
+
```
|
56
|
+
|
57
|
+
#### Update the owner of the checked-out time log
|
58
|
+
```bash
|
59
|
+
$ tlog owner cewendel
|
60
|
+
```
|
61
|
+
|
62
|
+
#### Stop the current task
|
63
|
+
```bash
|
64
|
+
$ tlog stop example
|
65
|
+
```
|
66
|
+
|
67
|
+
#### Stop the current task and commit your tracked working changes to the current branch
|
68
|
+
```bash
|
69
|
+
$ tlog stop example -am "My commit message"
|
70
|
+
```
|
71
|
+
|
72
|
+
#### Delete a time log
|
73
|
+
```bash
|
74
|
+
$ tlog delete example
|
75
|
+
```
|
76
|
+
|
30
77
|
## Displaying time logs
|
31
78
|
|
32
79
|
#### Display all time logs
|
@@ -152,9 +199,9 @@ Owner: andrew
|
|
152
199
|
Time left: 0:59:33
|
153
200
|
```
|
154
201
|
|
155
|
-
#### Show
|
202
|
+
#### Show all time logs and label the checked-out log or the in-progress log
|
156
203
|
```bash
|
157
|
-
$ tlog
|
204
|
+
$ tlog all
|
158
205
|
All Time Logs:
|
159
206
|
testing
|
160
207
|
feature1(in-progress)
|
@@ -162,43 +209,6 @@ bug fix
|
|
162
209
|
feature2
|
163
210
|
```
|
164
211
|
|
165
|
-
## Using time logs
|
166
|
-
|
167
|
-
#### Check out a time log
|
168
|
-
```bash
|
169
|
-
$ tlog checkout example
|
170
|
-
```
|
171
|
-
|
172
|
-
#### Start a new task the checked-out time log
|
173
|
-
```bash
|
174
|
-
$ tlog start -d "My task description"
|
175
|
-
```
|
176
|
-
|
177
|
-
#### Update the state of the checked-out time log
|
178
|
-
```bash
|
179
|
-
$ tlog state CLOSED
|
180
|
-
```
|
181
|
-
|
182
|
-
#### Update the points value of the checked-out time log
|
183
|
-
```bash
|
184
|
-
$ tlog points 10
|
185
|
-
```
|
186
|
-
|
187
|
-
#### Update the owner of the checked-out time log
|
188
|
-
```bash
|
189
|
-
$ tlog owner cewendel
|
190
|
-
```
|
191
|
-
|
192
|
-
#### Stop the current task
|
193
|
-
```bash
|
194
|
-
$ tlog stop example
|
195
|
-
```
|
196
|
-
|
197
|
-
#### Delete a time log
|
198
|
-
```bash
|
199
|
-
$ tlog delete example
|
200
|
-
```
|
201
|
-
|
202
212
|
## Collaboration
|
203
213
|
|
204
214
|
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/lib/tlog.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
module Tlog
|
3
|
-
Version = "0.2.
|
3
|
+
Version = "0.2.4"
|
4
4
|
|
5
5
|
module Storage
|
6
6
|
end
|
@@ -29,7 +29,7 @@ require 'tlog/command_suite'
|
|
29
29
|
require 'tlog/command'
|
30
30
|
require 'tlog/command/start'
|
31
31
|
require 'tlog/command/stop'
|
32
|
-
require 'tlog/command/
|
32
|
+
require 'tlog/command/all'
|
33
33
|
require 'tlog/command/delete'
|
34
34
|
require 'tlog/command/display'
|
35
35
|
require 'tlog/command/create'
|
@@ -1,12 +1,12 @@
|
|
1
1
|
|
2
|
-
class Tlog::Command::
|
2
|
+
class Tlog::Command::All < Tlog::Command
|
3
3
|
|
4
4
|
def name
|
5
|
-
"
|
5
|
+
"all"
|
6
6
|
end
|
7
7
|
|
8
8
|
def description
|
9
|
-
"prints out all
|
9
|
+
"prints out all time logs, the time log in-progress if there is one. Or the currently checked-out time log"
|
10
10
|
end
|
11
11
|
|
12
12
|
def execute(input, output)
|
data/lib/tlog/command/stop.rb
CHANGED
@@ -11,15 +11,26 @@ class Tlog::Command::Stop < Tlog::Command
|
|
11
11
|
def execute(input, output)
|
12
12
|
updated_log = stop
|
13
13
|
output.line("Stopped '#{updated_log.name}'")
|
14
|
+
|
15
|
+
# Commit working changes if neccessary
|
16
|
+
commit_message = input.options[:message]
|
17
|
+
if commit_message
|
18
|
+
commit_working_changes(commit_message)
|
19
|
+
output.line("'#{commit_message}': Commiting working changes on current branch")
|
20
|
+
end
|
14
21
|
end
|
15
22
|
|
16
23
|
def options(parser, options)
|
17
24
|
parser.banner = "usage: tlog stop"
|
25
|
+
|
26
|
+
parser.on("-am", "--am <commit message>", "Stop current time log and commit tracked working changes") do |message|
|
27
|
+
options[:message] = message
|
28
|
+
end
|
18
29
|
end
|
19
30
|
|
20
31
|
private
|
21
32
|
|
22
|
-
def stop
|
33
|
+
def stop(message = nil)
|
23
34
|
storage.in_branch do |wd|
|
24
35
|
checked_out_log = storage.checkout_value
|
25
36
|
raise Tlog::Error::CheckoutInvalid, "No time log is checked out" unless checked_out_log
|
@@ -32,4 +43,7 @@ class Tlog::Command::Stop < Tlog::Command
|
|
32
43
|
end
|
33
44
|
end
|
34
45
|
|
46
|
+
def commit_working_changes(message)
|
47
|
+
storage.commit_working_changes(message)
|
48
|
+
end
|
35
49
|
end
|
data/lib/tlog/command_suite.rb
CHANGED
data/lib/tlog/storage/disk.rb
CHANGED
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.4
|
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-
|
11
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -95,7 +95,7 @@ files:
|
|
95
95
|
- lib/tlog.rb
|
96
96
|
- lib/tlog/application.rb
|
97
97
|
- lib/tlog/command.rb
|
98
|
-
- lib/tlog/command/
|
98
|
+
- lib/tlog/command/all.rb
|
99
99
|
- lib/tlog/command/checkout.rb
|
100
100
|
- lib/tlog/command/create.rb
|
101
101
|
- lib/tlog/command/delete.rb
|