update dependency - rss to ~1.0

This commit is contained in:
Peter Dave Hello
2014-10-02 19:49:19 +08:00
parent 637c9a24f9
commit 9257be682d
12 changed files with 46 additions and 67 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
language: node_js
node_js:
- 0.8
- 0.10
- 0.11
- "0.10"
- "0.11"
Generated Vendored
+2 -2
View File
@@ -1,6 +1,6 @@
(The MIT License)
Copyright (c) 2011 Dylan Greene <dylang@gmail.com>
Copyright (c) 2011-2014 Dylan Greene <dylang@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+1 -3
View File
@@ -1,6 +1,4 @@
/*
Documentation coming soon.
*/
'use strict';
var XML = require('xml'),
mime = require('mime'),
+1 -5
View File
@@ -31,9 +31,5 @@
"url": "https://github.com/broofa/node-mime/issues"
},
"_id": "mime@1.2.11",
"dist": {
"shasum": "f944b2ee385e0afd62e0b5577562c7ad35190d8d"
},
"_from": "mime@~1.2.11",
"_resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz"
"_from": "mime@^1.2.11"
}
+1 -2
View File
@@ -1,5 +1,4 @@
language: node_js
node_js:
- 0.8
- 0.10
- 0.11
- 0.11
+1 -1
View File
@@ -140,7 +140,7 @@ function resolve(data, indent, indent_count) {
name = keys[0];
values = data[name];
if (values._elem) {
if (values && values._elem) {
values._elem.name = name;
values._elem.icount = indent_count;
values._elem.indent = indent;
+13 -18
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -188,7 +188,7 @@ especially when tests are included.
(The MIT License)
Copyright (c) 2011-2013 Dylan Greene <dylang@gmail.com>
Copyright (c) 2011-2014 Dylan Greene <dylang@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -207,4 +207,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+2
View File
@@ -19,11 +19,13 @@ describe('xml module', function(done) {
it('works with simple options', function(done) {
expect(xml([ { a: {} }])).to.equal('<a/>');
expect(xml([ { a: null }])).to.equal('<a/>');
expect(xml([ { a: [] }])).to.equal('<a></a>');
expect(xml([ { a: -1 }])).to.equal('<a>-1</a>');
expect(xml([ { a: false }])).to.equal('<a>false</a>');
expect(xml([ { a: 'test' }])).to.equal('<a>test</a>');
expect(xml( { a: {} })).to.equal('<a/>');
expect(xml( { a: null })).to.equal('<a/>');
expect(xml( { a: [] })).to.equal('<a></a>');
expect(xml( { a: -1 })).to.equal('<a>-1</a>');
expect(xml( { a: false })).to.equal('<a>false</a>');
+14 -22
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+6 -8
View File
@@ -1,4 +1,4 @@
# RSS for Node [![Build Status](https://secure.travis-ci.org/dylang/node-rss.png)](http://travis-ci.org/dylang/node-rss)
# RSS for Node [![Build Status](https://api.travis-ci.org/dylang/node-rss.svg)](http://travis-ci.org/dylang/node-rss)
[![NPM](https://nodei.co/npm/rss.png?downloads=true)](https://nodei.co/npm/rss/)
@@ -27,7 +27,6 @@ var feed = new RSS(feedOptions);
* `site_url` **url string** Url to the site that the feed is for.
* `image_url` _optional_ **url string* Small image for feed readers to use.
* `docs` _optional_ **url string** Url to documentation on this feed.
* `author` **string** Who owns this feed.
* `managingEditor` _optional_ **string** Who manages content in this feed.
* `webMaster` _optional_ **string** Who manages feed availability and technical support.
* `copyright` _optional_ **string** Copyright information for this feed.
@@ -40,7 +39,7 @@ var feed = new RSS(feedOptions);
### Add items to a feed
An item can be used for a blog entry, project update, log entry, etc. Your RSS feed
an have any number of items. Most feeds use 20 or fewer items.
can have any number of items. Most feeds use 20 or fewer items.
```js
feed.item(itemOptions);
@@ -88,7 +87,6 @@ var feed = new RSS({
site_url: 'http://example.com',
image_url: 'http://example.com/icon.png',
docs: 'http://example.com/rss/docs.html',
author: 'Dylan Greene',
managingEditor: 'Dylan Greene',
webMaster: 'Dylan Greene',
copyright: '2013 Dylan Greene',
@@ -129,9 +127,9 @@ Tests included use Mocha. Use `npm test` to run the tests.
# History
I started this module over two years ago (April 2011) because there weren't any Node modules
for creating RSS. Besides these [25 modules](https://npmjs.org/browse/depended/rss)
I would love to know what other projects are using it.
I started this module *years* ago (April 2011) because there weren't any Node modules
for creating RSS. [Nearly 50 modules](https://npmjs.org/browse/depended/rss)
use RSS, as well as many web sites and the popular [Ghost publishing platform](https://ghost.org/).
# Contributing
@@ -143,7 +141,7 @@ are included.
(The MIT License)
Copyright (c) 2011-2013 Dylan Greene <dylang@gmail.com>
Copyright (c) 2011-2014 Dylan Greene <dylang@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
+1 -1
View File
@@ -19,7 +19,7 @@
"fs-extra": "~0.12",
"glob": "~4",
"lodash": "~2.4",
"rss": "~0.3",
"rss": "~1.0",
"superagent": "~0.19",
"tarball-extract": "~0.0",
"uglify-js": "~2.4",