Commit Graph

43 Commits

Author SHA1 Message Date
Paul Petring e2bd4557b0 RssEnclosure.Length remains string to not break the API
code now gofmt formatted
2015-08-08 17:50:08 +02:00
Paul Petring 83d205214a added test case for podcast enclosures for atom and rss 2015-08-01 16:09:32 +02:00
Paul Petring a79072d462 fixed tests for cases without enclosure 2015-08-01 15:48:43 +02:00
Paul Petring 76198fdfb0 fixing string encoding issue in rss enclosure length attribute 2015-07-12 02:49:30 +02:00
Paul Petring 57321cf425 added atom enclosure 2015-05-19 23:09:43 +02:00
Jason Moiron a1baeef20d Merge pull request #17 from StableLib/fixtest
Fix printing wrong output in test.
2015-03-27 01:39:36 -04:00
Dmitry Chestnykh 91a605dfe8 Fix printing wrong output in test. 2015-03-26 14:29:55 +01:00
Jason Moiron 2e133eb352 Create LICENSE
Add MIT license file, Fixes #10, same license as other projects in Gorilla.
2014-07-20 16:41:41 -04:00
Jason Moiron c52c149c4a Merge pull request #11 from ImJasonH/master
Add io.Writer-based feed generation methods
2014-07-20 16:39:35 -04:00
Jason Hall fd92eaecf8 Add io.Writer-based feed generation methods
The current ToXML method returns a string, meaning the content is
buffered into memory before being written to some output. With this
change, XML can be written directly to the output, which may make
a difference with large feeds.

This is a backwards compatible change, as methods are only added.
2014-07-20 15:19:14 -04:00
Kamil Kisiel ced1bd794b Merge pull request #9 from zimmski/master
author can be nil
2014-01-05 23:45:27 -08:00
Markus Zimmermann 639982ed9d author can be nil 2013-12-17 18:39:43 +01:00
Jason Moiron 494e5f5fcf Update README.md 2013-12-03 20:13:06 -05:00
Jason Moiron 7754210b27 remove go 1.0 since the timezone support actually seems to be broken on it, add 1.2 2013-12-03 20:09:54 -05:00
Jason Moiron ad690bbe76 check the error condition of time.Parse 2013-12-03 20:02:53 -05:00
Jason Moiron 06331b20f5 revert time creation back to numeric timezone 2013-12-03 20:00:31 -05:00
Jason Moiron c2c3862c2c fix the timezone for the test value to EST 2013-12-03 19:54:24 -05:00
Jason Moiron ecaffcc6c4 fix tests so that the text name of the timezone will be available everywhere 2013-12-03 14:19:50 -05:00
Kamil Kisiel 68a42d4e1f Add travis.yml 2013-12-01 10:44:58 -08:00
Jason Moiron 09937a5aa6 Merge pull request #6 from Supermighty/master
Update rss date format to RFC822 per the spec.
2013-10-03 16:55:36 -07:00
Jason Moiron 68aeb73a25 Merge pull request #7 from jagregory/entry-xmlns
Add optional xmlns to AtomEntry
2013-10-01 10:10:36 -07:00
James Gregory bbabaefd18 Add optional xmlns to AtomEntry
This allows individual entries to be marshalled to XML with a valid
xmlns. It's optional so entries in a feed don't get an xmlns of
their own.
2013-10-01 18:35:10 +10:00
Supermighty 2bdcfb1f45 Update rss date format to RFC822 per the spec.
http://cyber.law.harvard.edu/rss/rss.html

"All date-times in RSS conform to the Date and Time Specification of RFC 822,
with the exception that the year may be expressed with two characters or four
characters (four preferred)."
2013-09-20 06:25:27 -04:00
Jason Moiron 815ce4be83 Merge pull request #2 from MJDSys/FixMissingRssAuthor
Add the author to the item in an rss feed.
2013-07-09 07:51:31 -07:00
Matthew Dawson 0026358364 Fix the tests to work correctly.
It appears that go's xml package changed the text it would output.  It is
semantically the same, so just update the expected output.
2013-07-07 12:50:18 -04:00
Matthew Dawson c8758ff22d Add the author to the item in an rss feed.
The author was missing from the generated rss feed's items.  This adds it
back, but only uses the name for now.
2013-07-07 12:49:14 -04:00
Jason Moiron c4af75b4d8 remove syndicate from readme.md 2013-01-18 16:31:37 -05:00
Jason Moiron 35a01ac849 rename syndicate -> feeds, paths jmoiron/syndicate -> gorilla/feeds 2013-01-18 16:30:37 -05:00
Jason Moiron 4cfde43c28 use Content by default in atom instead of Summary (via Description), change content to a struct and set Type to html 2013-01-17 14:01:00 -05:00
Jason Moiron 96da93e120 documentation updates for pkgdoc 2013-01-16 22:12:34 -05:00
Jason Moiron 91f48c31c0 space->tab 2013-01-16 22:08:56 -05:00
Jason Moiron 02e5b30cb9 add documentation for pkgdoc 2013-01-16 22:08:09 -05:00
Jason Moiron 852dd01069 add the rest of the atom spec to the atom support, make the output tests actual tests instead of just outputting feeds and inspecting manually, add author back to AtomFeed 2013-01-16 21:58:09 -05:00
Jason Moiron f89ed305d9 add copyright info, add ToXML support for RssFeed & AtomFeed (provided you only want to create those), hide more empty members of atom feed 2013-01-16 21:03:48 -05:00
Jason Moiron 09ecc7cb78 Make RssFeed the channel object, add a lot more fields to the underlying atom implementation 2013-01-16 20:53:51 -05:00
Jason Moiron 6788dd66c9 fix atom entry dates 2013-01-16 03:26:33 -05:00
Jason Moiron 2a10575c4a add namespace stuff to readme 2013-01-16 03:24:22 -05:00
Jason Moiron 711228e7a4 update readme with usage 2013-01-16 03:22:50 -05:00
Jason Moiron 04c746fbf7 add pubdate to rss items 2013-01-16 03:17:24 -05:00
Jason Moiron 9ab624fada add item tests, fix author handling for atom entries 2013-01-16 03:13:24 -05:00
Jason Moiron 7b639e9ad5 initial rss 2.0 support 2013-01-16 01:49:38 -05:00
Jason Moiron cc91ea60d1 fix some simple atom feed stuff and add some simple feed tests 2013-01-15 17:46:06 -05:00
Jason Moiron 4e6bcdd4bb initial commit, general organization and likely broken atom implementation 2013-01-15 17:27:35 -05:00