Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDATA filtering options, new item addition functions, unit tests, bug fixes #38

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

rv-kip
Copy link

@rv-kip rv-kip commented Dec 20, 2014

  • Optional disabling of CDATA wrapping by field name
  • Adding items by concatenation of existing items or by complete replacement of existing items
  • Associated unit tests
  • Runnable example code examples/simple.js
  • Corresponding readme updates.

This PR supercedes #37, which has some relevant discussion.
This PR is similar to existing PR #28, but allows for finer control over what fields can be skipped for CDATA wrapping.

package.json Outdated
@@ -57,10 +58,10 @@
"dependencies": {
"folderify": "^0.6.0",
"mime-types": "^2.0.3",
"mime": "^1.2.11",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mime-types should be good enough

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I clone (or rm -rf node_modules), npm i, and npm test, I get an error for missing mime module unless mime is in package.json

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above :)

@rv-kip
Copy link
Author

rv-kip commented Dec 21, 2014

This is ready for review.

@rv-kip
Copy link
Author

rv-kip commented Jan 12, 2015

(bump)

@rv-kip
Copy link
Author

rv-kip commented Jan 20, 2015

@dylang, Is there any more info, documentation, or testing you need from me for this PR?

@dylang
Copy link
Owner

dylang commented Jan 21, 2015

Sorry for taking so long with this. I'll try to get to it later this week.

@rv-kip
Copy link
Author

rv-kip commented Jan 21, 2015

Not a problem. Just wanted to make sure you weren't waiting for something from me.

@dylang
Copy link
Owner

dylang commented Feb 8, 2015

The cdata work looks good. I don't like the generic output function name, but at least it's short.

The replace_items and concat_items feel like they should be in a separate PR. Since you've already done the work here there's no need to create a separate PR.

I think a better API would be something like feed.removeItems() and feed.addItems(<array of items>). What do you think?

@rv-kip
Copy link
Author

rv-kip commented Feb 9, 2015

@dylang Your function rename suggestions are fine. Better to change them now than have a legacy support issue.

@rv-kip
Copy link
Author

rv-kip commented Feb 9, 2015

To clarify, should feed.removeItems() remove all existing items?

Kip Gebhardt and others added 2 commits February 10, 2015 14:25
@rv-kip
Copy link
Author

rv-kip commented Feb 12, 2015

@dylang, my latest commit changes the names of the extra functions and adds a unit test for removeAllItems() Ready for review.

@rv-kip
Copy link
Author

rv-kip commented Mar 16, 2015

@dylang, How are we going on this?

@rv-kip
Copy link
Author

rv-kip commented Apr 27, 2015

@dylang... Any progress on this?

@rv-kip
Copy link
Author

rv-kip commented May 29, 2015

@dylang, I've released the rss-braider module that depends on the changes in this PR. I'd prefer to be dependent on your repo and not my fork. Let me know if there's anything I can do to help with merging this PR. 😄
https://www.npmjs.com/package/rss-braider

@rv-kip rv-kip closed this Feb 27, 2018
@rv-kip rv-kip reopened this Feb 27, 2018
@rv-kip
Copy link
Author

rv-kip commented Feb 27, 2018

It seems like the Travis failure is related to npm3. This env has an npm config of

...
  "before_install": "npm -g i npm@3",
...

@rv-kip
Copy link
Author

rv-kip commented Jun 27, 2018

close/open to trigger Travis

@rv-kip rv-kip closed this Jun 27, 2018
@rv-kip rv-kip reopened this Jun 27, 2018
@rajinikumar
Copy link

@dylang, Could you please reivew the @rv-kip changes.

@rajinikumar
Copy link

@dylang Please review @rv-kip changes. because he done the changes few years back.

@dylang dylang requested a review from ErisDS July 16, 2018 14:37
@mattymess
Copy link

Any movement on this? Would love to see it get merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants