tlog 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjVhNjc5ZTAzNTFmMThkMjRhZWUyYThlZDUyNjRkOGZjZDc5ZTM5Yg==
4
+ MmEzMWNiNjgxMTQzMTJiOTBhMzllZGUwYzAzN2FjYzMwNjE4YzIyYQ==
5
5
  data.tar.gz: !binary |-
6
- ZjgxZTcxMzlhZmE5NzAxZjhiZGIzZmQ4YTRhYjQ2MzUwNzJhMGJkOQ==
6
+ ZjA3MGIyYmVlZWRhNzFlYmU0YjMzNzFhOGRlOGExYmNjNDYxMzAzOA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjE0ZmQ1NTBjMDIxMzVjMzUxYjI5NzI5NDBlOTFjOGE1OGYzMDcxOThmMjYx
10
- NmJhZTUyYjIzZDg4ODQxNzlkNWRmMGQ5OTI1MmM2NTE2NmJjYWI5ZWVjMDA4
11
- MWRhYTZlOTZjYmJhYjcwODc5OWZmMzI0OTc0ZWZmMmM3OTlkOGY=
9
+ ZjFkNGQ3NzNhYjdkM2FhMGFiZmRlY2JmOGZkY2ZjYzA1Mjc4OTAxNzRiMjY5
10
+ MGRiMzBmNmM0NDUwODI4NjhhZjYyY2Y1YjMxYWE5OWZkZTI4MjVjZDU2ZWIx
11
+ MzE2NzU3NzRkYTlkMDEwMWYzZTdmNzk4MTkxZGZkMDIxMzhiZjE=
12
12
  data.tar.gz: !binary |-
13
- MzEzZjgyMTQyZDdiYjM5ODk5YjFhMmIxZTYyYjVhZDQ5YmRiODRhZTVlMWY3
14
- MDljNGU1ZTczZmYxZmIyYTA1ZDIwMjM1YjkzNTBiYjkxZGE5NTExNDRjMjZk
15
- NzM0YWUyNTU5NmI3NjU1MjQ1ZTMxYWEwNzJkZTdkNTViNWNjNTY=
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 working changes to the current branch
67
+ #### Stop the current task and commit your tracked changes to the current branch
68
68
  ```bash
69
- $ tlog stop example -am "My commit message"
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
@@ -2,4 +2,4 @@
2
2
  - rakefile
3
3
  - time zones....
4
4
  - command aliases
5
- - display update speicifc states, points values, owners. goal times
5
+ - update specific time log states, points values, owners. goal times
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Tlog
3
- Version = "0.2.5"
3
+ Version = "0.2.6"
4
4
 
5
5
  module Storage
6
6
  end
@@ -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 %16s %14s %s" % [
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 %14s %s" % [
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.5
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-02 00:00:00.000000000 Z
11
+ date: 2013-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander