Commit graph

137 commits

Author SHA1 Message Date
Michael K
f5b1056458 Added missing this 2014-11-29 01:20:34 +01:00
Jim Teeuwen
8840cf6040 Merge pull request #54 from michael-k/time
Store time of last update as time.Time
2014-11-28 18:47:26 +01:00
Michael K
13b293d8cd Added a new function; time till next update as time.Duration 2014-11-28 16:55:58 +01:00
Michael K
ee66dbdb55 Store time of last update as time.Time
This commit breaks the API, because LastUpdate() now returns a
time.Time object instead of an int64.
2014-11-28 16:53:09 +01:00
Michael K
525d2bdc03 Made use of SecondsTillUpdate()
Increases code comprehensibility
2014-11-28 16:44:20 +01:00
Jim Teeuwen
21cabd67c6 Merge pull request #53 from michael-k/lastupdate
Update lastupdate only when fetching
2014-11-28 15:14:48 +01:00
Michael K
4840ef15a3 Update lastupdate only when fetching 2014-11-28 14:55:38 +01:00
Jim Teeuwen
87b95b233d Merge pull request #51 from michael-k/goto
Removed goto
2014-11-26 20:18:00 +01:00
Jim Teeuwen
d2c3f84069 Merge pull request #52 from michael-k/docu
Fixed some issues in the documentation
2014-11-26 16:38:19 +01:00
Michael K
2ffad35d97 Removed goto 2014-11-26 16:21:39 +01:00
Michael K
6c373508f8 Removed faulty empty line 2014-11-26 16:12:54 +01:00
Michael K
1dd67de72f Fixed typo 2014-11-26 16:10:39 +01:00
Michael K
d66a691370 Added missing punctuation marks 2014-11-26 16:09:51 +01:00
Jim Teeuwen
e1d228914f Merge pull request #48 from michael-k/notes
Updated Notes
2014-11-16 22:48:55 +01:00
Jim Teeuwen
8294d29c22 Merge pull request #47 from michael-k/testdata
`go run` instead of `6g` and `6l`
2014-11-16 22:48:31 +01:00
Michael Käufl
b62e147e96 Used lists 2014-11-16 17:41:15 +01:00
Michael Käufl
51dc9ddee0 Fixed some typos 2014-11-16 17:41:11 +01:00
Michael Käufl
9c98e451d6 Broke lines 2014-11-16 17:41:06 +01:00
Michael Käufl
8a69a9390b go run instead of 6g and 6l 2014-11-16 17:07:39 +01:00
Jim Teeuwen
c7f7ccd37e Merge pull request #46 from JalfResi/split-handlers
Separating singular handler type to ease reuse/chaining
2014-10-14 20:28:18 +02:00
Ben Davies
18dc81ecf7 Typo in comment 2014-10-14 18:53:00 +01:00
Ben Davies
5d9fc9c561 Ensured that New() feed function is functionally equivalent still 2014-10-14 18:51:13 +01:00
Jim Teeuwen
3d199df8a0 Merge pull request #45 from Paulius-Maruska/bug/crash-without-handlers
Fixes #44, crash when no handlers
2014-10-11 00:22:25 +02:00
Paulius Maruška
1e531bd310 Fixes #44, crash when no handlers
Recent database handler changes made the library crash, when feed
object is created without channel, item handlers (passing nils).
These simple changes seem to fix the problem and the library works
again.
2014-10-10 21:35:26 +03:00
Jim Teeuwen
c753ba0962 Merge pull request #43 from JalfResi/database-handlers
Database and handler types
2014-10-04 15:24:39 +02:00
JalfResi
2473675174 Updated 2014-10-04 13:02:56 +01:00
JalfResi
29407ee0d4 Removing binary 2014-10-04 12:58:46 +01:00
JalfResi
b959757aaf Removing binary 2014-10-04 12:58:19 +01:00
Ben Davies
d5f9d4bd46 Removed logging 2014-10-04 12:54:27 +01:00
Ben Davies
99b882aad2 Updating notes 2014-10-04 12:50:04 +01:00
Ben Davies
b6de09f2a3 Added databse handler to New() so that it functionally identical to old approach 2014-10-04 12:48:45 +01:00
Ben Davies
cb314c235b Refactored the handler functions into interface types. Follows the /net/http handlers pattern. Handlers are now chainable. Moved database checking from notifyHandlers. Implemented database feature as chainable handler 2014-10-04 12:45:05 +01:00
Jim Teeuwen
4edaff2441 Merge pull request #42 from JalfResi/bugfix/rss-node-missing-version
Added check to ensure that period is found in version string of RSS node
2014-09-28 15:43:39 +02:00
Ben Davies
c01c0416b8 Added check to ensure that period is found in version string of RSS node 2014-09-28 12:30:58 +01:00
Jim Teeuwen
ddfdb20a68 Merge pull request #41 from JalfResi/error-types
Added specific error types rather than generic error types
2014-09-25 16:54:44 +02:00
Ben Davies
d4964c8450 Added specific error types rather than generic error types 2014-09-25 13:27:05 +01:00
jimt
326d76d501 Merge pull request #39 from maiconio/master
adding categories to atom
2014-05-12 11:07:12 +02:00
maiconio
e6102549be adding categories to atom 2014-05-11 20:48:21 -03:00
jimt
2cc10cc82f Merge pull request #37 from sirsean/parse-time
Time parsing.
2014-03-25 11:06:29 +01:00
Sean Schulte
a93420eed3 go fmt 2014-03-24 22:01:26 -05:00
Sean Schulte
c6a7816435 Back to previous API.
(IE, the previous breaking changes are unbroken.)
2014-03-24 21:58:36 -05:00
Sean Schulte
2c67b94a04 Time parsing.
Rather than just using a string for PubDate, we attempt to parse it.
This includes a couple of crazy non-standard time formats that I've seen
in the wild.

Breaking change: Item.PubDate is no longer a string, it is time.Time.
2014-03-24 21:54:15 -05:00
jimt
2b6dc03ede Merge pull request #34 from dukex/patch-1
Updated README to markdown
2014-01-24 03:16:16 -08:00
jimt
899799b51b Merge pull request #32 from dukex/extensions
Add Extensions Support
2014-01-24 03:15:26 -08:00
Duke
31eb9ba376 Added link to example 2014-01-23 23:07:07 -02:00
Duke
b10f4eab91 Rename README to README.md 2014-01-23 23:05:15 -02:00
Duke
8d08afd360 Update README 2014-01-23 23:03:58 -02:00
Duke
937de70c03 added Extension to channel 2014-01-23 17:37:50 -02:00
Duke
bd84124886 updated getExtentions to don't overwrite root node 2014-01-23 17:37:18 -02:00
Duke
e895d2d708 changed Extensions api 2014-01-23 14:57:26 -02:00