mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 03:56:19 +00:00
bump version, fix test
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "rss",
|
||||
"version": "0.1.0",
|
||||
"version": "0.2.0",
|
||||
"description": "RSS feed generator. A really simple API to add RSS feeds to any project.",
|
||||
"homepage": "http://github.com/dylang/node-rss",
|
||||
"author": "Dylan Greene <dylang@gmail.com>",
|
||||
@@ -8,7 +8,8 @@
|
||||
"Dylan Greene <dylang@gmail.com>",
|
||||
"Xavier Damman <xdamman@gmail.com>",
|
||||
"Michael R. Lange",
|
||||
"Victor Jonsson"
|
||||
"Victor Jonsson",
|
||||
"Danny Graham"
|
||||
],
|
||||
"repository":
|
||||
{
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
image_url: 'http://example.com/icon.png',
|
||||
docs: 'http://example.com/rss/docs.html',
|
||||
author: 'Dylan Greene',
|
||||
managingEditor: 'Dylan Green',
|
||||
webMaster: 'Dylan Green',
|
||||
copyright: '2013 Dylan Green',
|
||||
managingEditor: 'Dylan Greene',
|
||||
webMaster: 'Dylan Greene',
|
||||
copyright: '2013 Dylan Greene',
|
||||
language: 'en',
|
||||
categories: ['Category 1','Category 2','Category 3'],
|
||||
pubDate: 'May 20, 2012 04:00:00 GMT',
|
||||
|
||||
@@ -170,6 +170,7 @@ module.exports = {
|
||||
});
|
||||
|
||||
var expectedResult = '<?xml version="1.0" encoding="UTF-8"?>\n<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[title]]></title><description><![CDATA[description]]></description><link>http://example.com</link><generator>NodeJS RSS Module</generator><lastBuildDate>' + new Date().toUTCString() +'</lastBuildDate><atom:link href="http://example.com/rss.xml" rel="self" type="application/rss+xml"/>'+
|
||||
'<author><![CDATA[Dylan Greene]]></author>' +
|
||||
'<item><title><![CDATA[item 1]]></title><description><![CDATA[description 1]]></description><link>http://example.com/article1</link><guid isPermaLink="true">http://example.com/article1</guid><dc:creator><![CDATA[Dylan Greene]]></dc:creator><pubDate>Thu, 24 May 2012 04:00:00 GMT</pubDate></item>'+
|
||||
'<item><title><![CDATA[item 2]]></title><description><![CDATA[description 2]]></description><link>http://example.com/article1</link><guid isPermaLink="true">http://example.com/article1</guid><dc:creator><![CDATA[Dylan Greene]]></dc:creator><pubDate>Thu, 24 May 2012 04:00:00 GMT</pubDate><enclosure url="/media/some-file.flv" length="0" type="video/x-flv"/></item>'+
|
||||
'<item><title><![CDATA[item 3]]></title><description><![CDATA[description 3]]></description><link>http://example.com/article1</link><guid isPermaLink="true">http://example.com/article1</guid><dc:creator><![CDATA[Dylan Greene]]></dc:creator><pubDate>Thu, 24 May 2012 04:00:00 GMT</pubDate><enclosure url="/media/image.png" length="16650" type="image/png"/></item>'+
|
||||
|
||||
Reference in New Issue
Block a user