<feed xmlns='http://www.w3.org/2005/Atom'>
<title>HearURL/src, branch master</title>
<subtitle>Listens for URLs over TCP and opens them in a local browser</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/'/>
<entry>
<title>Add license (GPLv3+)</title>
<updated>2017-05-12T22:31:38+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-12T22:31:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=df31d242814a405f83768cc20d9e19fccf809023'/>
<id>df31d242814a405f83768cc20d9e19fccf809023</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move `open_stream()` to lib.rs</title>
<updated>2017-05-08T23:37:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-08T23:37:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=6746b18313f00d6cf350f1b3a914f43c6a2b28fc'/>
<id>6746b18313f00d6cf350f1b3a914f43c6a2b28fc</id>
<content type='text'>
Make `main.rs` responsible for only the `main()` function and command
line option handling. Move the actual application code to `lib.rs` for
clearer separation of concerns.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make `main.rs` responsible for only the `main()` function and command
line option handling. Move the actual application code to `lib.rs` for
clearer separation of concerns.
</pre>
</div>
</content>
</entry>
<entry>
<title>open_stream(): Don't terminate the TCP listener on error</title>
<updated>2017-05-08T23:21:57+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-08T23:21:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=f0d5da113c59f364ffea3e840a9e871882478051'/>
<id>f0d5da113c59f364ffea3e840a9e871882478051</id>
<content type='text'>
Previously, errors would be returned immediately by the `?`/`try!`s.
Handle errors directly instead of returning them. Otherwise, the stream
listener would terminate, exiting the program, and forcing users to
restart it in order to restore functionality.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, errors would be returned immediately by the `?`/`try!`s.
Handle errors directly instead of returning them. Otherwise, the stream
listener would terminate, exiting the program, and forcing users to
restart it in order to restore functionality.
</pre>
</div>
</content>
</entry>
<entry>
<title>open_stream(): Change `write!` to `writeln!` on STDERR</title>
<updated>2017-05-08T23:13:17+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-08T23:13:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=0fe722bbc2e53278dad2bab9268a3cca52e19825'/>
<id>0fe722bbc2e53278dad2bab9268a3cca52e19825</id>
<content type='text'>
When printing errors to STDERR, ensure we're writing newlines to
separate error messages.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When printing errors to STDERR, ensure we're writing newlines to
separate error messages.
</pre>
</div>
</content>
</entry>
<entry>
<title>main.rs: Change port parsing `unwrap` to `expect`</title>
<updated>2017-05-08T22:32:44+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-08T22:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=a3ed5d5ef033eb3cf70351797296955b386d0151'/>
<id>a3ed5d5ef033eb3cf70351797296955b386d0151</id>
<content type='text'>
Using `expect` seems nicer here because it allows us to provide a more
meaningful error message.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using `expect` seems nicer here because it allows us to provide a more
meaningful error message.
</pre>
</div>
</content>
</entry>
<entry>
<title>open_steam(): Parse URL input</title>
<updated>2017-05-08T22:26:21+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-08T22:17:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=07ef413cff05a8a692288d6226aefc7f5a81d374'/>
<id>07ef413cff05a8a692288d6226aefc7f5a81d374</id>
<content type='text'>
Parse the URL coming in from the TCP stream to check that it's a valid
URL. This allows us to fail early and not try to open strings that are
not URLs. Leverage the "url" crate to do the parsing.

Return a `Box&lt;Error&gt;` from `open_stream()` to enable us to return either
an `io` or a `Url` error in our `Result`.

Remove the `trim_right()` call on `url` since it's now a `Url` type
instead of a `String`, and as a result of parsing to a `Url`, it no
longer has the problematic trailing newline.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Parse the URL coming in from the TCP stream to check that it's a valid
URL. This allows us to fail early and not try to open strings that are
not URLs. Leverage the "url" crate to do the parsing.

Return a `Box&lt;Error&gt;` from `open_stream()` to enable us to return either
an `io` or a `Url` error in our `Result`.

Remove the `trim_right()` call on `url` since it's now a `Url` type
instead of a `String`, and as a result of parsing to a `Url`, it no
longer has the problematic trailing newline.
</pre>
</div>
</content>
</entry>
<entry>
<title>open_stream(): Remove hard-coded browser &amp; port</title>
<updated>2017-05-07T12:42:47+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-07T12:14:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=69dd2a7a23d1d71c50a91f5779db6f0480106cd8'/>
<id>69dd2a7a23d1d71c50a91f5779db6f0480106cd8</id>
<content type='text'>
Instead get these from function arguments, which in turn get fed from
the command line arguments passed by the user.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead get these from function arguments, which in turn get fed from
the command line arguments passed by the user.
</pre>
</div>
</content>
</entry>
<entry>
<title>main.rs: Add a constant for default port</title>
<updated>2017-05-07T11:55:29+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-07T11:55:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=8043ad6e42611a68e3a572c4657285030d51e74e'/>
<id>8043ad6e42611a68e3a572c4657285030d51e74e</id>
<content type='text'>
Remove the magic number and replace it with a named value.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the magic number and replace it with a named value.
</pre>
</div>
</content>
</entry>
<entry>
<title>main.rs: Add port command line option</title>
<updated>2017-05-07T11:48:27+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-07T11:48:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=1e4cbaa5f2285b673d5335612265e1fcd298ca82'/>
<id>1e4cbaa5f2285b673d5335612265e1fcd298ca82</id>
<content type='text'>
Provide users with an option to change the default port the program
listens on.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Provide users with an option to change the default port the program
listens on.
</pre>
</div>
</content>
</entry>
<entry>
<title>main.rs: Match `Option` when setting browser</title>
<updated>2017-05-07T11:27:29+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-07T11:22:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/HearURL/commit/?id=09d7aa3f3dc1a2b9241bc0ec62bee029b8942dc1'/>
<id>09d7aa3f3dc1a2b9241bc0ec62bee029b8942dc1</id>
<content type='text'>
Instead of checking for the presence of the `-b` option before setting
it, just use an `Option` match since `opt_str` returns an
`Option&lt;String&gt;`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of checking for the presence of the `-b` option before setting
it, just use an `Option` match since `opt_str` returns an
`Option&lt;String&gt;`.
</pre>
</div>
</content>
</entry>
</feed>
