Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request #21 from red-oxide/develop
Browse files Browse the repository at this point in the history
Add to_xml
  • Loading branch information
Chris Palmer committed Apr 1, 2016
2 parents b605730 + aa5db62 commit 25a105f
Show file tree
Hide file tree
Showing 7 changed files with 967 additions and 372 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
sudo: false
language: rust
rust:
- beta
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## feed 1.1.0
+ added to_xml
+ updated quick-xml to 0.1.8
+ updated chrono to 0.2.20

## feed 1.0.5
+ changed println to debug
+ updated curl to 0.2.18
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "feed"
version = "1.0.5"
version = "1.1.0"
authors = ["Chris Palmer <[email protected]"]
repository = "https://github.com/red-oxide/feed"
documentation = "http://red-oxide.github.io/feed"
Expand All @@ -12,6 +12,6 @@ license = "LGPL-3.0"
[dependencies]
url = "0.5.5"
curl = "0.2.18"
quick-xml = "0.1.7"
chrono = "0.2.19"
quick-xml = "0.1.8"
chrono = "0.2.20"
log = "0.3.5"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Library for passing feeds from an URL and retrieving the elements
To include feed as a cargo dependency you have to add it to your Cargo.toml:
```Toml
[dependencies]
feed = "1.0.5"
feed = "1.1.0"
```

## Bugs and feature requests
Expand Down
18 changes: 18 additions & 0 deletions src/errors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,21 @@ pub fn missing_xml_error() -> &'static str {
pub fn item_required_field_error() -> &'static str {
"Either Title or Description must have a value"
}


// xml start tag error
pub fn tag_start_error(tag: &str) -> String {
format!("Error creating start tag for {}", tag)
}


// xml start tag error
pub fn tag_text_error(tag: &str) -> String {
format!("Error creating text for {}", tag)
}


// xml end tag error
pub fn tag_end_error(tag: &str) -> String {
format!("Error creating end tag for {}", tag)
}
Loading

0 comments on commit 25a105f

Please sign in to comment.