32 Commits

Author SHA1 Message Date
davy wybiral 6f6e20dd39 fix JSONFeed Hubs (#74)
* fix JSONFeed Hubs

* Add JSONHub test

* fixed test output
2019-07-26 16:58:42 -07:00
Jesse Donat ce4bf005ad Corrects the test 2018-08-18 10:58:06 -07:00
Kamil Kisiel 5f6928813b Add Sort function to Feed.
Fixes #54 and #55
2018-08-17 23:01:44 -07:00
Vabd 6edcbcd2d5 Update tests accordingly 2018-03-21 09:35:59 -07:00
Vabd 390b6ca98e Fix test + add test case for content 2018-03-21 09:35:59 -07:00
Gabriel Simmer 4b936b5221 [feature] Support feed item images (#41)
* Add support for podcast-centered tags
* Adding proper support for Enclosure and and Image tags, which didn't seem to generate properly (might have been a bug on my end but I'm not sure).
* Enclosure.Length from string to int
* Revert change from string to int for Enclosure length
* Accidently changed err == to != for enclosure & author
* Update README to reflect fork goals
* List of tags to implement
* fix RSS image when no Image is mentioned in the Feed
* do not assume that a Link with a field Type is an Enclosure
* expected tests
* better handling of enclosures
* fix package
* Fixes as requested
* Fix travis build error
2017-11-07 20:59:58 -08:00
Kevin Stock e9747d9577 Adds support for JSON Feed Version 1
JSON Feed Version 1 specification: https://jsonfeed.org/version/1
2017-06-04 14:48:21 -07:00
Volker e91436642a Make Author example and test vet compliant
Using the example from the documentation will result in a warning for
unkeyed composite literals during a 'go vet' run
2016-02-06 20:07:22 -05:00
Matt Silverlock 30e5c6fc6d Merge pull request #28 from netroby/master
[bug] Change RSS time format to RFC1123Z for W3C validator
2015-11-23 12:50:53 +08:00
ZhiFeng Hu 0b6cae5672 Fixed rss test
Signed-off-by: ZhiFeng Hu <hufeng1987@gmail.com>
2015-11-22 18:03:57 +08:00
Matt Silverlock ed5ab67a18 [fmt] gofmt'ed structs in test. 2015-11-22 16:59:23 +08:00
Kamil Kisiel 625d173520 Add tests for formatting directives in descriptions.
Fixes #18
2015-08-10 22:56:21 -07:00
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
Dmitry Chestnykh 91a605dfe8 Fix printing wrong output in test. 2015-03-26 14:29:55 +01: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
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
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
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 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 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 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