<feed xmlns='http://www.w3.org/2005/Atom'>
<title>hcl, branch log-for-past-days</title>
<subtitle>Command-line tool for manipulating Harvest timesheets</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/'/>
<entry>
<title>Remove `test_log_failure`</title>
<updated>2018-01-31T19:37:52+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-31T19:37:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=51bb50a586b117db18e1c2dbbfc9152191b5a7c5'/>
<id>51bb50a586b117db18e1c2dbbfc9152191b5a7c5</id>
<content type='text'>
Delete this test because I've rewritten the `Commands#log` method to no
longer use timers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Delete this test because I've rewritten the `Commands#log` method to no
longer use timers.
</pre>
</div>
</content>
</entry>
<entry>
<title>Commands#start: Remove date argument</title>
<updated>2018-01-31T19:30:13+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-31T19:24:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=bf1c536b08aa89f59b8b1303f1ce4cd7b32907cc'/>
<id>bf1c536b08aa89f59b8b1303f1ce4cd7b32907cc</id>
<content type='text'>
I had added the 'date' argument because I wanted it for the `log`
command, which delegates to `#start`, but now have put that directly in
`#log`. As such, it's no longer needed here and the method can be
reverted back to what it was before.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I had added the 'date' argument because I wanted it for the `log`
command, which delegates to `#start`, but now have put that directly in
`#log`. As such, it's no longer needed here and the method can be
reverted back to what it was before.
</pre>
</div>
</content>
</entry>
<entry>
<title>Commands#log: Rewrite to call `task.add`</title>
<updated>2018-01-31T19:19:14+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-31T19:14:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=69285540c46480b8ea46edc46222219e713c264e'/>
<id>69285540c46480b8ea46edc46222219e713c264e</id>
<content type='text'>
Copy over the contents of `Commands#start` and replace `task.start` with
`task.add`. This allows us to log the time without actually starting a
timer (and thus having to subsequently stop that timer).

Still need to work out how to eliminate repetition between this and the
`#start` method, but this is now functioning for logging time to any
date (previously it was only possible to `log` to today or yesterday,
otherwise a timer would start).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Copy over the contents of `Commands#start` and replace `task.start` with
`task.add`. This allows us to log the time without actually starting a
timer (and thus having to subsequently stop that timer).

Still need to work out how to eliminate repetition between this and the
`#start` method, but this is now functioning for logging time to any
date (previously it was only possible to `log` to today or yesterday,
otherwise a timer would start).
</pre>
</div>
</content>
</entry>
<entry>
<title>Add `date` argument to `log` command in `help` output</title>
<updated>2018-01-28T13:05:45+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-28T13:05:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=8b88f24e302e1d490b768509f004c7130d1ce5d8'/>
<id>8b88f24e302e1d490b768509f004c7130d1ce5d8</id>
<content type='text'>
Document this new argument in the help.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Document this new argument in the help.
</pre>
</div>
</content>
</entry>
<entry>
<title>Task#add: Don't use `strftime` on `spent_at`</title>
<updated>2018-01-28T11:21:27+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-28T11:21:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=9c0036f3a1cad39c9bb6da062004d1b09ae66e61'/>
<id>9c0036f3a1cad39c9bb6da062004d1b09ae66e61</id>
<content type='text'>
Before I modified it, the code passed `Date.today` plain in `spent_at`.
Don't bother `strftime`ing since it can just take a Ruby date object.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before I modified it, the code passed `Date.today` plain in `spent_at`.
Don't bother `strftime`ing since it can just take a Ruby date object.
</pre>
</div>
</content>
</entry>
<entry>
<title>utility_test: Add tests for `#get_date`</title>
<updated>2018-01-28T11:15:59+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-28T11:15:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=3b62915501e8dd7b29af5fb9ff23bed59c04d600'/>
<id>3b62915501e8dd7b29af5fb9ff23bed59c04d600</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test_start: Update expected method call arguments with `spent_at`</title>
<updated>2018-01-28T10:59:08+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-28T10:59:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=0f54e98411de3282e4f295b7164acb75483e935f'/>
<id>0f54e98411de3282e4f295b7164acb75483e935f</id>
<content type='text'>
Now that we're passing in `spent_at`, the expected arguments should
include it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we're passing in `spent_at`, the expected arguments should
include it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix `log` command error when no date is passed in</title>
<updated>2018-01-28T10:55:52+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-28T10:55:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=b21cb058db301c4c3c236a0b40ad0e9f49b7b6f7'/>
<id>b21cb058db301c4c3c236a0b40ad0e9f49b7b6f7</id>
<content type='text'>
If `#index` doesn't find a match, it will return `nil`. Correctly handle
this case in `#get_date`.

Since the date can be `nil`, it's easier to do the `Chronic` parsing in
`#get_date` than in `#start`. Finally, move the `#strftime` to `#add` to
allow it to handle `nil` dates at the source.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If `#index` doesn't find a match, it will return `nil`. Correctly handle
this case in `#get_date`.

Since the date can be `nil`, it's easier to do the `Chronic` parsing in
`#get_date` than in `#start`. Finally, move the `#strftime` to `#add` to
allow it to handle `nil` dates at the source.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add date argument to `log` command</title>
<updated>2018-01-26T23:31:57+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-01-26T23:31:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=ab252b695bb197d00ecd29dc9de17520e64e9f0e'/>
<id>ab252b695bb197d00ecd29dc9de17520e64e9f0e</id>
<content type='text'>
Adds an optional date argument to the `log` command that can be
specified just before the task alias.

Some examples from @skoppelmanCC:

hcl log yesterday @documentation +2 Ran spellcheck
hcl log 3 days ago @wireframes +3.5
hcl log last friday @admin +1 filed timesheets

Fixes #83.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds an optional date argument to the `log` command that can be
specified just before the task alias.

Some examples from @skoppelmanCC:

hcl log yesterday @documentation +2 Ran spellcheck
hcl log 3 days ago @wireframes +3.5
hcl log last friday @admin +1 filed timesheets

Fixes #83.
</pre>
</div>
</content>
</entry>
<entry>
<title>bump versions of yajl and simplecov to be compatible with ruby 2.4.1</title>
<updated>2017-06-19T14:38:35+00:00</updated>
<author>
<name>Charles DuBose</name>
</author>
<published>2017-06-19T14:38:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/hcl/commit/?id=273d546f3024c038115099d96a954a0dae678b9e'/>
<id>273d546f3024c038115099d96a954a0dae678b9e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
